Free Support Forum - aspose.com

Need help Error while trying to insert image

My report job fails with this exception…please suggest what i need to do

20:21:28.063 SMS [DealerReport0] ERROR com.snapon.sbs.nxd.sms.DealerJobHandler - EXCEPTION in job DealerReportJob [contractId=105757, language=pl]
java.lang.IllegalArgumentException: imageBytes
at com.aspose.words.DocumentBuilder.insertImage(Unknown Source) ~[Aspose.Words.jdk16.jar:13.7.0.0]
at com.aspose.words.DocumentBuilder.insertImage(Unknown Source) ~[Aspose.Words.jdk16.jar:13.7.0.0]
at com.snapon.sbs.nxd.sms.DealerReportWriter.createPDF(DealerReportWriter.java:256) ~[gm-nxd-app-core-0.0.1-SNAPSHOT.jar:?]
at com.snapon.sbs.nxd.sms.DealerJobHandler.process(DealerJobHandler.java:87) [gm-nxd-app-core-0.0.1-SNAPSHOT.jar:?]
at com.snapon.sbs.nxd.sms.DealerJobHandler.run(DealerJobHandler.java:209) [gm-nxd-app-core-0.0.1-SNAPSHOT.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]

@Aruna98,

To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your input Word document
  • Image file
  • Please create a standalone simplified Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start further investigation into your above issue and provide you more information. Thanks for your cooperation.