000030638 - RSA VIA L&G / IMG / Aveksa - Error Could not initialize class sun.awt.X11GraphicsEnvironment when running reports

Document created by RSA Customer Support Employee on Jun 14, 2016
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000030638
Applies ToRSA Product Set: Identity Management and Governance
RSA Product/Service Type: Enterprise Software
RSA Version/Condition: 6.9.1
 
IssueThe error Could not initialize class sun.awt.X11GraphicsEnvironment is displayed in the administrative console and the logs when attempting to run reports.
Here is a sample from the aveksaServer.log
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.154 ERROR (Thread-65) [SystemErr] Exception in thread "Thread-65">
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.155 ERROR (Thread-65) [SystemErr] java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.156 ERROR (Thread-65) [SystemErr]     at java.lang.Class.forName0(Native Method)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.156 ERROR (Thread-65) [SystemErr]     at java.lang.Class.forName(Class.java:171)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.157 ERROR (Thread-65) [SystemErr]     at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.157 ERROR (Thread-65) [SystemErr]     at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.157 ERROR (Thread-65) [SystemErr]     at java.lang.Class.forName0(Native Method)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.158 ERROR (Thread-65) [SystemErr]     at java.lang.Class.forName(Class.java:171)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.158 ERROR (Thread-65) [SystemErr]     at java.awt.Toolkit$2.run(Toolkit.java:834)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.159 ERROR (Thread-65) [SystemErr]     at java.security.AccessController.doPrivileged(Native Method)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.159 ERROR (Thread-65) [SystemErr]     at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.160 ERROR (Thread-65) [SystemErr]     at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:122)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.160 ERROR (Thread-65) [SystemErr]     at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1554)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.161 ERROR (Thread-65) [SystemErr]     at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.161 ERROR (Thread-65) [SystemErr]     at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1589)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.161 ERROR (Thread-65) [SystemErr]     at javax.swing.UIManager.setLookAndFeel(UIManager.java:514)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.162 ERROR (Thread-65) [SystemErr]     at javax.swing.UIManager.setLookAndFeel(UIManager.java:554)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.162 ERROR (Thread-65) [SystemErr]     at com.workpoint.gui.common.WorkPointLAF.A(Unknown Source)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.163 ERROR (Thread-65) [SystemErr]     at com.workpoint.gui.common.WorkPointLAF.A(Unknown Source)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.163 ERROR (Thread-65) [SystemErr]     at com.workpoint.gui.common.WorkPointLAF.setUIDefaults(Unknown Source)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.164 ERROR (Thread-65) [SystemErr]     at com.workpoint.gui.external.WpImageUtils.<clinit>(Unknown Source)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.164 ERROR (Thread-65) [SystemErr]     at com.aveksa.server.workflow.WorkflowServiceProvider.refreshProcessImage(WorkflowServiceProvider.java:1732)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.164 ERROR (Thread-65) [SystemErr]     at com.aveksa.server.workflow.WorkflowServiceProvider.getProcessImageFromNative(WorkflowServiceProvider.java:1656)>
<Jun 10, 2015 9:57:28 PM UTC> <Notice> <Stdout> <BEA-000000> <06/10/2015 21:57:28.165 ERROR (Thread-65) [SystemErr]     at com.aveksa.server.workflow.WorkflowEventListener$ProcessRefreshThread.run(WorkflowEventListener.java:268)>
CauseThis error is caused by the underlying reporting framework attempting to leverage local X11 classes that would typically be used to render locally.
Since the report is not displayed in an X11 environment but in a browser this call is not needed.
The error is typically thrown when a JDK is used that does not have the full set of classes that are available in the Sun/Oracle JDK.  For this particular instance the error is benign because the report does not need to be rendered in X11.
WorkaroundTo work around this issue add the following Java Option to the startup arguments for the aveksa server:
-Djava.awt.headless=true
This tells the server that the Linux server that is hosting the application will not be rendering X11 consoles.

Attachments

    Outcomes