problem when using JasperManager.fillReport()

By: peter - pxiao
problem when using JasperManager.fillReport()
2003-07-31 23:54
Hi all,

I am using jasper 0.4.6. I have problem when runing JasperManager.fillReport(JasperReport, params, Connection) under linux 8. But when I try to running under windows, it works fine(without any
error) with the same binary code.. can somebody help pls(any ideas?)!

Exception message from linux:

2003-08-01 16:23:09,865 ERROR [org.jboss.web.localhost.Engine] ----- Root Cause -----
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
at dori.jasper.engine.fill.JRBaseFiller.<clinit>(
at dori.jasper.engine.fill.JRFiller.fillReport(
at dori.jasper.engine.JasperFillManager.fillReport(
at dori.jasper.engine.JasperManager.fillReport(



By: elmar weber - elmar_weber
RE: problem when using JasperManager.fillRepo
2003-08-01 01:19

this is a (common) problem with console applications under linux, either there is no active graphical display, or it has not been set for the java console app.

1. you set it manually, take a look at the following url of the apache project [1] on how to do it, or search via google [2] for your exception.

2. you use the headless parameter (thats that I've done to do some image manipulation in a servlet).
By using this option, you ensure that java emulates or knows that there is now active xserver:

I wrote:

export CATALINA_OPTS="-Djava.awt.headless=true"

in the startup scripts of the tomcat server.

You seem to use JBoss, write something similiar in the startup script of it.


2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 10 months ago

0 Answers:

No answers yet