Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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 7

    Tried 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?

    #29871

    Usually 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…

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.