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

Free Support Forum - aspose.com

java.lang.NoSuchFieldException: state if license not set

If there is a typo when setting the license file, or if it is not set at all, the following stack trace appears for each page of the PPTX file:

java.lang.NoSuchFieldException: state
at java.lang.Class.getField(Unknown Source)
at com.aspose.slides.obfuscated.bhx.do(SourceFile:19)
at com.aspose.slides.Canvas.do(SourceFile:300)
at com.aspose.slides.obfuscated.akr.drawString(SourceFile:324)
at com.aspose.slides.pptx.SlideEx.do(SourceFile:304)
at com.aspose.slides.pptx.SlideEx.saveToAps(SourceFile:342)
at com.aspose.slides.obfuscated.akv.do(SourceFile:86)
at com.aspose.slides.pptx.PresentationEx.save(SourceFile:1821)
at com.aspose.slides.pptx.PresentationEx.save(SourceFile:1766)

This is when using Aspose Slides 2.5.0

Hi Barbara,


I have observed the stack trace shared by you but regret to share that I have not been able to understand the issue completely. Kindly share some more details along with the code snippet that you are using on your end to reproduce the issue.

Many Thanks,