Hello,
Sometimes when creating powerpoint, my service throws the following exception:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031)
at com.aspose.slides.Presentation.(SourceFile:49)
the exception only occures sometimes.
is this a bug?
I’m not sure but probably there is something inside java runtime because line 49 is very simple:
Graphics2D m_textMeasureGraphics = (Graphics2D) new BufferedImage(
16, 16, BufferedImage.TYPE_INT_ARGB).getGraphics();