we have solved the problem by setting the systemproperty java.awt.headless

System.setProperty ("java.awt.headless", "true");


thmarx wrote:

Hello everybody.

We use fop.0.20.5 to produce pdf files at our linux server. It works most times. But after some times we got the following error message:

[WARNING] table-layout=auto is not supported, using fixed!
Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified

java.lang.InternalError: Can't connect to X11 window server using 'localhost:0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:126)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)


at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:70)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit$2.run(Toolkit.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at java.awt.SystemColor.updateSystemColors(SystemColor.java:417)
at java.awt.SystemColor.<clinit>(SystemColor.java:409)
at org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27)


at org.apache.batik.css.value.ColorFactory.<init>(ColorFactory.java:75)
at org.apache.batik.css.value.CommonValueFactoryMap.<init>(CommonValueFactoryMap.java:39)


at org.apache.batik.css.svg.SVGValueFactoryMap.<init>(SVGValueFactoryMap.java:39)

at org.apache.batik.css.svg.SVGValueFactoryMap.<init>(SVGValueFactoryMap.java:32)

at org.apache.batik.dom.svg.SVGDOMImplementation.<init>(SVGDOMImplementation.java:88)

at org.apache.batik.dom.svg.SVGDOMImplementation.<clinit>(SVGDOMImplementation.java:76)

at org.apache.batik.dom.svg.SAXSVGDocumentFactory.<init>(SAXSVGDocumentFactory.java:66)

at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown Source)
at org.apache.fop.image.analyser.SVGReader.verifySignature(Unknown Source)
at org.apache.fop.image.analyser.ImageReaderFactory.Make(Unknown Source)
at org.apache.fop.image.FopImageFactory.Make(Unknown Source)
at org.apache.fop.fo.flow.ExternalGraphic.layout(Unknown Source)
at org.apache.fop.fo.flow.TableCell.layout(Unknown Source)
at org.apache.fop.fo.flow.TableRow.layout(Unknown Source)
at org.apache.fop.fo.flow.TableBody.layout(Unknown Source)
at org.apache.fop.fo.flow.Table.layout(Unknown Source)
at org.apache.fop.fo.flow.Block.layout(Block.java:256)
at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.fop.apps.Driver.render(Unknown Source)
at org.apache.fop.apps.Driver.run(Unknown Source)



we don't use any svg graphics and a x-server is installed on the system.

Does anyone know why the error occurs only sometimes and what we can do?


greets thmarx


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to