I'm getting an immediate java.awt.HeadlessException thrown by the BinaryPartAbstractImage.createImagePart method when I try to insert an image into a docx file. My project is a web based application that includes a reporting module that creates a docx file from database records. The stack trace indicates the problem is
Caused by: java.awt.HeadlessException
at sun.awt.HeadlessToolkit.getScreenResolution(Unknown Source)
at org.apache.xmlgraphics.image.loader.impl.DefaultImageContext.<init>(DefaultImageContext.java:37)
at org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage.<clinit>(BinaryPartAbstractImage.java:133)
... 60 more
I have no problem running the AddImage.java file from the samples package as a ...

News of Plutext