Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

headless exception

300 views
Skip to first unread message

James Hevener

unread,
Aug 5, 2005, 1:45:19 PM8/5/05
to
We recently began to move an application from our development environment to
our change environment. Two different AS400 systems where the data and
procedures live.

We have a x86 Linux box that is our actual WAS6 sp.02 system. Now trying to
access the application - we are seeing "Headless Exception" in the JVM log
and our application no longer works.

From a system administrators point of view, I am trying to understand this
error message - and what are possible causes. Am I reading this correctly
that the application is headless - as something has failed to build the
information it needs in order to do a display?

See a snippet below. Thanks in advance, Jim

at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)

[8/5/05 11:16:53:938 EDT] 00000030 LocalTranCoor E WLTC0017E: Resources
rolled back due to setRollbackOnly() being called.
[8/5/05 11:16:53:939 EDT] 00000030 WebApp E SRVE0026E: [Servlet
Error]-[/test2.jsp]: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:150)
at java.awt.Window.<init>(Window.java:311)
at java.awt.Frame.<init>(Frame.java:431)
at java.awt.Frame.<init>(Frame.java:396)
at
com.ibm.as400.access.ToolboxSignonHandler.displayMessage(ToolboxSignonHandler.java:336)
at
com.ibm.as400.access.ToolboxSignonHandler.displayMessage(ToolboxSignonHandler.java:323)
at
com.ibm.as400.access.ToolboxSignonHandler.passwordIncorrect(ToolboxSignonHandler.java:136)
at com.ibm.as400.access.AS400.promptSignon(AS400.java:2183)
at com.ibm.as400.access.AS400.signon(AS400.java:3336)
at com.ibm.as400.access.AS400.connectService(AS400.java:853)


Ken Hygh

unread,
Aug 5, 2005, 7:27:06 PM8/5/05
to
James Hevener wrote:

>We recently began to move an application from our development environment to
>our change environment. Two different AS400 systems where the data and
>procedures live.
>
>We have a x86 Linux box that is our actual WAS6 sp.02 system. Now trying to
>access the application - we are seeing "Headless Exception" in the JVM log
>and our application no longer works.
>
>From a system administrators point of view, I am trying to understand this
>error message - and what are possible causes. Am I reading this correctly
>that the application is headless - as something has failed to build the
>information it needs in order to do a display?
>
>See a snippet below. Thanks in advance, Jim
>
> at
>com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)
>
>[8/5/05 11:16:53:938 EDT] 00000030 LocalTranCoor E WLTC0017E: Resources
>rolled back due to setRollbackOnly() being called.
>[8/5/05 11:16:53:939 EDT] 00000030 WebApp E SRVE0026E: [Servlet
>Error]-[/test2.jsp]: java.awt.HeadlessException
> at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:150)
>
>

This means that the XWindows libraries are not installed on the machine
where the tests are being run, and something in your application is
trying to build graphics.

Ken

Damon Youmans

unread,
Aug 9, 2005, 11:51:21 AM8/9/05
to
I have run into this for applications the generate graphics on a Linux
server. To fix use this generic JVM argument: -Djava.awt.headless=true

James Hevener

unread,
Aug 10, 2005, 4:17:57 PM8/10/05
to
Interesting. This application actually never displays anything on the Linux
server where it lives. We did find a library that we were missing on our
application configuration, I am just confused as to why this library was not
needed previously - and that library "ANALYZE" lives on our AS400.

The application is hosted on SuSE Linux Enterprise 9 sp2. Running WAS6 Base
sp.02.

The AS400 holds Stored Procedures, libraries, and DB2.

"Damon Youmans" <dyou...@guideone.com> wrote in message
news:ddajdp$5j88$1...@news.boulder.ibm.com...

Lukasz Szelag

unread,
Aug 10, 2005, 5:01:35 PM8/10/05
to
The application not need to display anything; it can just use graphics
API. We encountered the same problem when using jasperreports to
generate reports (java.awt.headless=true fixed it).

0 new messages