Skip to Content
avatar image
Former Member

Exceptions while generating reports


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

find below the errors messages displayed


Can't connect to CRXI window server using ' as the value of the DISPLAY variable'

and for some other reports we are getting



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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 04, 2008 at 02:35 PM

    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 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.


    Ted Ueda

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2008 at 06:05 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.


      Ted Ueda