Free Support Forum - aspose.com

Crazy Exception While creating PPTX using Aspose Slides

Error|easycut| [ com.aspose.slides.c.a.e.ab ] exceptionclass com.aspose.slides.c.a.e.ab: exception —> java.io.IOException: Negative seek offset
— End of inner exception stack trace —
com.aspose.slides.c.b.a.c.c.do(Unknown Source)
com.aspose.slides.c.b.a.c.c.if(Unknown Source)
com.aspose.slides.c.b.a.c.c.do(Unknown Source)
com.aspose.slides.c.a.e.z.seek(Unknown Source)
com.aspose.slides.PresentationEx.int(Unknown Source)
com.aspose.slides.PresentationEx.if(Unknown Source)
com.aspose.slides.PresentationEx.(Unknown Source)
com.aspose.slides.PresentationEx.(Unknown Source)
org.mvp.powerpoint.PresentationCreation.createPresentation(PresentationCreation.java:62)
org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:248)
org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:212)
javafx.concurrent.Task$TaskCallable.call(Task.java:1259)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)
java.lang.Thread.run(Thread.java:722)
at com.aspose.slides.c.b.a.c.c.do(Unknown Source)
at com.aspose.slides.c.b.a.c.c.if(Unknown Source)
at com.aspose.slides.c.b.a.c.c.do(Unknown Source)
at com.aspose.slides.c.a.e.z.seek(Unknown Source)
at com.aspose.slides.PresentationEx.int(Unknown Source)
at com.aspose.slides.PresentationEx.if(Unknown Source)
at com.aspose.slides.PresentationEx.(Unknown Source)
at com.aspose.slides.PresentationEx.(Unknown Source)
at org.mvp.powerpoint.PresentationCreation.createPresentation(PresentationCreation.java:62)
at org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:248)
at org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:212)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1259)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Negative seek offset
at java.io.RandomAccessFile.seek(Native Method)
… 15 more

04-24-2013T02-07-34|Error|easycut| [ com.aspose.slides.c.a.e.ab ] exceptionclass com.aspose.slides.c.a.e.ab: exception —> java.io.IOException: Negative seek offset
— End of inner exception stack trace —
com.aspose.slides.c.b.a.c.c.do(Unknown Source)
com.aspose.slides.c.b.a.c.c.if(Unknown Source)
com.aspose.slides.c.b.a.c.c.do(Unknown Source)
com.aspose.slides.c.a.e.z.seek(Unknown Source)
com.aspose.slides.PresentationEx.int(Unknown Source)
com.aspose.slides.PresentationEx.if(Unknown Source)
com.aspose.slides.PresentationEx.(Unknown Source)
com.aspose.slides.PresentationEx.(Unknown Source)
org.mvp.powerpoint.PresentationCreation.createPresentation(PresentationCreation.java:62)
org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:248)
org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:212)
javafx.concurrent.Task$TaskCallable.call(Task.java:1259)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)
java.lang.Thread.run(Thread.java:722)
at com.aspose.slides.c.b.a.c.c.do(Unknown Source)
at com.aspose.slides.c.b.a.c.c.if(Unknown Source)
at com.aspose.slides.c.b.a.c.c.do(Unknown Source)
at com.aspose.slides.c.a.e.z.seek(Unknown Source)
at com.aspose.slides.PresentationEx.int(Unknown Source)
at com.aspose.slides.PresentationEx.if(Unknown Source)
at com.aspose.slides.PresentationEx.(Unknown Source)
at com.aspose.slides.PresentationEx.(Unknown Source)
at org.mvp.powerpoint.PresentationCreation.createPresentation(PresentationCreation.java:62)
at org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:248)
at org.ism.mvp.view.controller.ISMPPTController$4.call(ISMPPTController.java:212)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1259)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Negative seek offset
at java.io.RandomAccessFile.seek(Native Method)
… 15 more

I have this error only on Mac not on Windows.

Hi Mohit,


Thanks for inquiring Aspose.Slides.

I have tried to observe the issue shared. Can you please share the sample presentation along with sample code with us. Please also share that which version of Aspose.Slides for Java you have used. Please try using Aspose.Slides for Java 7.2.0 on your end if you are using some older version.

Many Thanks,