Bug#407018: fop: fails to run when no X server present.

Kuno Woudt kuno at cope.nl
Mon Jan 15 16:28:37 UTC 2007


Package: fop
Version: 1:0.20.5-5
Severity: normal


When trying to run /usr/bin/fop on a server which currently has no X
server running, it fails with the following error message:

Exception in thread "main" 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>(X11GraphicsEnvironment.java:125)

My current work-around is to add 

export JAVA_OPTS=-Djava.awt.headless=true

to the /usr/bin/fop script.  But it would be nice if this worked
out-of-the-box on debian.

Thanks.

-- Kuno.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fop depends on:
ii  j2re1.4 [java2-run 1.4.0.99beta-1        Blackdown Java(TM) 2 Runtime Envir
ii  java-common        0.22                  Base of all Java packages
ii  libavalon-framewor 4.1.2-2.1             Common framework for Java server a
ii  libbatik-java      1.5.1-1               xml.apache.org SVG Library
ii  libbsf-java        1:2.3.0+cvs20050308-2 Bean Scripting Framework to suppor
ii  liblogkit-java     1.2.2-2               Lightweight and fast designed logg
ii  libxalan2-java     2.6.0-1               XSL Transformations (XSLT) process
ii  libxerces2-java    2.6.2-2               Validating XML parser for Java wit

-- no debconf information




More information about the pkg-java-maintainers mailing list