on 09-04-2008 3:06 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.