HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Error generating PDF with Java 1.7
- This topic has 1 reply, 2 voices, and was last updated May 11, 2016
19:27:05 by PD4ML.
-
AuthorPosts
-
March 31, 2016 at 05:32#27071
Hello
I have upgraded to jre1.7.0_91 for running the application. With this upgrade the PDF generation with PD4ML is failing. I am getting the below error in console –
java.lang.InternalError.
java.lang.InternalError
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:85)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at sun.awt.windows.WToolkit.getFontMetrics(WToolkit.java:596)
at org.zefer.b.d.(Unknown Source)
at org.zefer.c.i.super(Unknown Source)
at org.zefer.d.c.m.╪00000(Unknown Source)
at org.zefer.d.c.s.(Unknown Source)
at org.zefer.d.c.n.╪╓0000(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)Caused By: java.lang.ClassNotFoundException: sun.awt.X11FontManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:278)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at sun.awt.windows.WToolkit.getFontMetrics(WToolkit.java:596)
at org.zefer.b.d.(Unknown Source)
at org.zefer.c.i.super(Unknown Source)
at org.zefer.d.c.m.╪00000(Unknown Source)
at org.zefer.d.c.s.(Unknown Source)
at org.zefer.d.c.n.╪╓0000(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)The same code was working with jre1.6.0_26. Please help me identify the issue.
PD4ML version being used – Pro 3.2.0
OS – Windows 7Tried installing java 1.7.0_91 and using it in compilation as well, but still facing the same issue. Will upgrading to latest PD4ML version help?
May 11, 2016 at 19:27#29871Usually it is a usual issue on UNIX/Linux environments. In order to solve it you need to run your application with -Djava.awt.headless=true JVM command line parameter.
I wonder how you achieved it on Win7…
-
AuthorPosts
The forum ‘General questions / FAQ’ is closed to new topics and replies.