xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mehdi houshmand <med1...@gmail.com>
Subject Re: Error with X11GraphicsEnvironment
Date Thu, 28 Oct 2010 07:29:25 GMT
Hi Venkateswara,

I presume you're using a GUI, thus the need for X11? The issue is that
you're trying to connect to "localhost:0.0", translated that means
"host : port# . sessionid", what exactly are you trying to do? Could
you send the command you're using?

Thanks

Mehdi

On 28 October 2010 08:12, Venkateswara Grandhi
<venkateswara_grandhi@semanticspace.com> wrote:
> 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(RendererFactory.java:313)
>
>         at
> org.apache.fop.render.RendererFactory.tryIFDocumentHandlerMaker(RendererFactory.java:290)
>
>         at
> org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:270)
>
>         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.java: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(RendererFactory.java:313)
>
>         at
> org.apache.fop.render.RendererFactory.tryIFDocumentHandlerMaker(RendererFactory.java:290)
>
>         at
> org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:270)
>
>         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.java: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.
>
>
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message