Sounds like an OS issue, what is the value for the DISPLAY environmental variable ?

 

Have you changed user id ?  the xterminal  belongs to a given user, if you switch you user id, you will no longer be able to connect.

The next time it happens, try the command xhost +, this will disable all security checking, it will prove if the issue is a permissions problem.

 

 

Note using the xhost command in this way, is a bit like not having a password on your login account.

 

D.

-----Original Message-----
From: Paul Gabare [mailto:[EMAIL PROTECTED]]
Sent
:
09 October 2003 11:28
To:
[EMAIL PROTECTED]
Subject: Can't connect to X11 ... sometimes

 

Hello,

I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet context on Unix or Linux (Jdk 1.3.1).

Generally it works fine, but sometimes (on the same server) I get the following exception :

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:54)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:115)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)

at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)

at org.apache.fop.svg.PDFGraphics2D.<init>(Unknown Source)

at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(UnknownSource)

at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)

at org.apache.fop.svg.SVGArea.render(Unknown Source)

at org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown Source)

...

Any idea ?

Thanks in advance

Eric

 


Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail



***********************************************************************************
This email, its content and any attachments is PRIVATE AND
CONFIDENTIAL to TANDBERG Television. If received in error please
notify the sender and destroy the original message and attachments.

www.tandbergtv.com
***********************************************************************************

Reply via email to