How To Prevent Exception "java.awt.Headlessexception" From Happening in Java EE containers (Doc ID 358466.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version 9.0.4.0.0 to 10.1.3.5.0 [Release AS10g to AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 27-Oct-2016***

Goal

How can the following error be avoided when running a graphical application deployed to OC4J?

java.awt.HeadlessException
 at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
 at java.awt.Window.<init>(Window.java:274)
 at java.awt.Frame.<init>(Frame.java:401)
 at java.awt.Frame.<init>(Frame.java:366)
 at javaside.Rbl.jspChart.init(jspChart.java:189)
 at javaside.Rbl.jspChart.init(jspChart.java:180)



Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms