cancel
Showing results for 
Search instead for 
Did you mean: 

Exceptions while generating reports

Former Member
0 Kudos

Hi,

We are facing a problem while exporting the reports in PDF/RTF format.

find below the errors messages displayed

Error

Can't connect to CRXI window server using 'WNCSUSHCLIN0110.ncsbe.eu.jnj.com:0.0 as the value of the DISPLAY variable'

and for some other reports we are getting

Error

java.lang.NoClassDefFoundError

is displayed.

Note that the report server is deployed on Weblogic 8.1.6 as a web application on clustered environment.

Please suggest a solution to solve this problem.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

What happens if you set the Java System property java.awt.headless=true?

On the command-line for the Java JVM options for your Web App Server, it would be -Djava.awt.headless=true.

What's causing this issue is the following:

Crystal delegates drawing to the Java JVM AWT libraries.

Java JVM AWT libraries delegates drawing to X Windows.

A X Windows Server needs a Client to connect to.

You point to the Client using the environment variable DISPLAY.

The X client WNCSUSHCLIN0110.ncsbe.eu.jnj.com:0.0 is refusing connection from your Java Web App.

The Java JVM option java.awt.headless=true makes the Java JVM AWT library not use X Windows, but internal routines for drawing.

Sincerely,

Ted Ueda

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ted,

Thanks for your prompt reply.

Will try this solution and get back to you.

One more query for you.

Does deploying the report web application out of clustered environment solve this problem without modifying the JVM options?

Thanks in advance

Edited by: Sai Balakrishnan on Sep 5, 2008 3:39 PM

ted_ueda
Employee
Employee
0 Kudos

If you're using the Java Reporting Component SDK, then that won't support Web Farms or Gardens.

If you're clusterning, you'll have to enforce session affinity such that requests and postbacks go back to the same member of the cluster.

This is a separate issue from headless, which is specific to drawing images using Sun AWT.

Sincerely,

Ted Ueda