Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Please solve this : java.awt.Headless Exception

843806Jun 30 2007 — edited Jul 2 2007
Hi Guys

When i call my program from servlet to bean (Swing component) then this exception will be thrown [It was not occur in local but occured only in onLine)

Please solve the problem

Please i am in a trouble so, pls solve and help me

and the exception is
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
java.awt.Window.<init>(Window.java:310)
java.awt.Frame.<init>(Frame.java:419)
java.awt.Frame.<init>(Frame.java:384)
javax.swing.JFrame.<init>(JFrame.java:150)
com.maan.Mail.DAO.JTableSwingpdf.<init>(JTableSwingpdf.java:144)
com.maan.Mail.controller.SendingQuote.doPost(SendingQuote.java:85)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


Regards
muthu2007

Message was edited by:
muthu2007
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2007
Added on Jun 30 2007
13 comments
718 views