xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkateswara Grandhi" <venkateswara_gran...@semanticspace.com>
Subject Error with X11GraphicsEnvironment
Date Thu, 28 Oct 2010 07:12:55 GMT
Hello,

 

I am using Apache FOP to generate a PDF as per my requirement.

 

I have written a program to convert an XML data into PDF. This was working
fine on my local machine, Windows XP sp2.

 

When I roll out my code to my DEV server, Linux devsrv1  2.6.9-55.ELsmp #1
SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux. I am facing the
following exception :

 

java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment

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

        at java.lang.Class.forName(Class.java(Compiled Code))

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

        at java.awt.Font.initializeFont(Font.java:333)

        at java.awt.Font.<init>(Font.java:368)

        at
org.apache.xmlgraphics.java2d.GraphicContext.<init>(GraphicContext.java:113)

        at
org.apache.fop.render.intermediate.IFGraphicContext.<init>(IFGraphicContext.
java:42)

        at
org.apache.fop.render.intermediate.IFRenderer.<init>(IFRenderer.java:128)

        at
org.apache.fop.render.RendererFactory.createRendererForDocumentHandler(Rende
rerFactory.java:313)

        at
org.apache.fop.render.RendererFactory.tryIFDocumentHandlerMaker(RendererFact
ory.java:290)

        at
org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:27
0)

        at
org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:69)

        at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)

        at
org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:102)

        at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.j
ava:359)

        at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:105)

        at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)

        at org.apache.fop.apps.Fop.<init>(Fop.java:79)

        at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)

        at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:248)

 

After I try to start my x server on my dev server it gives the following:

 

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

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

        at java.lang.Class.forName(Class.java(Compiled Code))

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

        at java.awt.Font.initializeFont(Font.java:333)

        at java.awt.Font.<init>(Font.java:368)

        at
org.apache.xmlgraphics.java2d.GraphicContext.<init>(GraphicContext.java:113)

        at
org.apache.fop.render.intermediate.IFGraphicContext.<init>(IFGraphicContext.
java:42)

        at
org.apache.fop.render.intermediate.IFRenderer.<init>(IFRenderer.java:128)

        at
org.apache.fop.render.RendererFactory.createRendererForDocumentHandler(Rende
rerFactory.java:313)

        at
org.apache.fop.render.RendererFactory.tryIFDocumentHandlerMaker(RendererFact
ory.java:290)

        at
org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:27
0)

        at
org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:69)

        at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)

        at
org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:102)

        at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.j
ava:359)

        at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:105)

        at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)

        at org.apache.fop.apps.Fop.<init>(Fop.java:79)

        at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)

        at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:248)

 

 

Can you please support me with suggestion or can you forward me with some
references where I can overcome these errors.

 

Thanks In Advance.

 

Regards,

Venkateswara Gupta Grandhi.

+91-9440787450.

 

 

 

 


Mime
View raw message