We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

java.lang.VerifyError: Bad return type


aspose slides 7.7.0

java version "1.7.0_51"
Java™ SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot™ 64-Bit Server VM (build 24.51-b03, mixed mode)

Problem description:
I tried to convert document from the attachment to pdf with the following code:

protected ByteArrayOutputStream getConvertedContent(InputStream sourceContent) throws Exception {
Presentation doc = new Presentation(sourceContent);
ByteArrayOutputStream pdfStream = new ByteArrayOutputStream();
doc.save(pdfStream, SaveFormat.Pdf);
return pdfStream;

I’ve got:
java.lang.VerifyError: Bad return type
Exception Details:
com/aspose/slides/pf4dd765c/pf4dd765c/pbdb106a0/pa2137a2a/a.char(Lcom/aspose/slides/pf4dd765c/pbdb106a0/cd;)Ljavax/imageio/ImageWriter; @37: areturn
Type ‘com/aspose/ms/imagecodecs/png/i’ (current frame, stack[0]) is not assignable to ‘javax/imageio/ImageWriter’ (from method signature)
Current Frame:
bci: @37
flags: { }
locals: { ‘com/aspose/slides/pf4dd765c/pbdb106a0/cd’ }
stack: { ‘com/aspose/ms/imagecodecs/png/i’ }
0000000: b200 912a b600 c799 000c bb00 4759 01b7
0000010: 00b5 b0b2 008a 2ab6 00c7 9900 0cbb 004f
0000020: 5901 b700 bdb0 b200 9a2a b600 c799 000c
0000030: bb00 4d59 01b7 00bb b0b2 0098 2ab6 00c7
0000040: 9900 0cbb 0049 5901 b700 b7b0 b200 a92a
0000050: b600 c799 000c bb00 5159 01b7 00bf b0b2
0000060: 008b 2ab6 00c7 9900 0cbb 004b 5901 b700
0000070: b9b0 01b0
Stackmap Table:

at com.aspose.slides.pf4dd765c.pbdb106a0.pa2137a2a.pa2137a2a.ae.if(Unknown Source)
at com.aspose.slides.pbdb106a0.pa5e0ff62.s.(Unknown Source)
at com.aspose.slides.pbdb106a0.p883e881b.a.if(Unknown Source)
at com.aspose.slides.pbdb106a0.p883e881b.a.do(Unknown Source)
at com.aspose.slides.pbdb106a0.p883e881b.a.do(Unknown Source)

How to fix this issue?

Thank you in advance for the answer,

Hi Martin,

I have worked with the presentation file shared by you in Windows 7 x64 environment using Aspose.Slides for Java 8.5.0. I have not been able to observe the issue specified. Can you please try using the suggested version on your end and share with us if there is any issue incurring on your end.

Many Thanks,

From where can I download

com.aspose.shared:html.dom.core:1.0.11?<div>(it is not part of the zip file)</div><div><br></div><div>Regards</div><div>Martin</div>

Hi Martin,

I have observed the requirement shared and like to share that you only need Aspose.Slides for Java 8.5.0 jar file included in your project. There is nothing else required. Can you please clarify the issue on your end.

Many Thanks,
gradle dependencies configuration:
dependencies {
dependencies {
compile 'com.aspose:slides:8.5.0'
compile 'com.aspose:cells:7.5.3'
compile 'com.aspose:words:14.4.1'
compile 'com.aspose:pdf:4.1.2'

gradle refresh returns:

Gradle 'trunk' project refresh failed:
Could not resolve all dependencies for configuration ':....'.
Could not find com.aspose.shared:html.dom.core:1.0.11.
Required by:
...> com.aspose:slides:8.5.0

pom.xml in the slides jar file contains com.aspose.shared:html.dom.core:1.0.11 dependency.


I can confirm that issue is resolved in slides 8.5.0

Hi Martin,

That is appreciable that things have worked on your end with latest version. Please share if I may help you further in this regard.

Many Thanks,