OPS and jfree charts under unix

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

OPS and jfree charts under unix

Doug Young

 

Hi,

  I have a OPS 3.0 app that uses the jfree charts servlet. I works fine when running on a windows machine but when I take it to our unix server I get a stack trace.

There are two different stack traces I get on looks like a subset of the other, here are bits of the traces

 

----- Root Cause -----

java.lang.NoClassDefFoundError

      at org.jfree.chart.axis.Axis.<init>(Axis.java:180)

      at org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)

      at org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JFreeChartSerializer.java:262)

      at org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor.java:113)

      at org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.java:52)

      at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)

      at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1158)

etc

 

 

 

and

 

 

----- Root Cause -----

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

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

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

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

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

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

      at org.jfree.chart.axis.AxisConstants.<clinit>(AxisConstants.java:67)

      at org.jfree.chart.axis.Axis.<init>(Axis.java:180)

      at org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)

      at org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JFreeChartSerializer.java:262)

      at org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor.java:113)

      at org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.java:52)

      at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)

      at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1158)

etc

 

 Notice how the second one is a superset of the first one.

 

It looks like the jfree chart code is trying to access an XWindows display so I am guessing that I need to configure jfree chart. Is there somewhere in OPS that I can configure jfree chart ?

Does anyone know a quick fix for this or will I need to plough through the jfree chart documentation ?

 

My other question is how can I get two different stack traces ? Is OPS sometimes misreporting the crash ?

 

Thanks

    Doug

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Doug Young.vcf (471 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OPS and jfree charts under unix

Alessandro  Vernet
Administrator
Hi Doug,

This happens when the VM is trying to connect to the X11 server as
some part of the graphics library is used by the chart library.
Starting your VM with this additional argument should solve your
problem:

-Djava.awt.headless=true

With Tomcat, bin/setclasspath.sh is a good place to add this
parameter. You can do this there by setting the JAVA_OPTS environment
variable.

Alex

On 10/14/05, Doug Young <[hidden email]> wrote:

>
>
>
>
>
> Hi,
>
>   I have a OPS 3.0 app that uses the jfree charts servlet. I works fine when
> running on a windows machine but when I take it to our unix server I get a
> stack trace.
>
> There are two different stack traces I get on looks like a subset of the
> other, here are bits of the traces
>
>
>
> ----- Root Cause -----
>
> java.lang.NoClassDefFoundError
>
>       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
>
>       at
> org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
>
>       at
> org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JFreeChartSerializer.java:262)
>
>       at
> org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor.java:113)
>
>       at
> org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.java:52)
>
>       at
> org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
>
>       at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1158)
>
> etc
>
>
>
>
>
>
>
> and
>
>
>
>
>
> ----- Root Cause -----
>
> 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:134)
>
>       at java.lang.Class.forName0(Native Method)
>
>       at java.lang.Class.forName(Class.java:141)
>
>       at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
>
>       at java.awt.Font.initializeFont(Font.java:308)
>
>       at java.awt.Font.<init>(Font.java:344)
>
>       at
> org.jfree.chart.axis.AxisConstants.<clinit>(AxisConstants.java:67)
>
>       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
>
>       at
> org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
>
>       at
> org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JFreeChartSerializer.java:262)
>
>       at
> org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor.java:113)
>
>       at
> org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.java:52)
>
>       at
> org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
>
>       at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1158)
>
> etc
>
>
>
>  Notice how the second one is a superset of the first one.
>
>
>
> It looks like the jfree chart code is trying to access an XWindows display
> so I am guessing that I need to configure jfree chart. Is there somewhere in
> OPS that I can configure jfree chart ?
>
> Does anyone know a quick fix for this or will I need to plough through the
> jfree chart documentation ?
>
>
>
> My other question is how can I get two different stack traces ? Is OPS
> sometimes misreporting the crash ?
>
>
>
> Thanks
>
>     Doug
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: OPS and jfree charts under unix

Doug Young
Alex,
 thanks for that, I will give it a try.

Any idea why I got the two different stack traces ?

regards
        Doug

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
Vernet
Sent: 14 October 2005 21:13
To: [hidden email]
Subject: Re: [ops-users] OPS and jfree charts under unix

Hi Doug,

This happens when the VM is trying to connect to the X11 server as
some part of the graphics library is used by the chart library.
Starting your VM with this additional argument should solve your
problem:

-Djava.awt.headless=true

With Tomcat, bin/setclasspath.sh is a good place to add this
parameter. You can do this there by setting the JAVA_OPTS environment
variable.

Alex

On 10/14/05, Doug Young <[hidden email]> wrote:
>
>
>
>
>
> Hi,
>
>   I have a OPS 3.0 app that uses the jfree charts servlet. I works fine
when

> running on a windows machine but when I take it to our unix server I get a
> stack trace.
>
> There are two different stack traces I get on looks like a subset of the
> other, here are bits of the traces
>
>
>
> ----- Root Cause -----
>
> java.lang.NoClassDefFoundError
>
>       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
>
>       at
> org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
>
>       at
>
org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
reeChartSerializer.java:262)
>
>       at
>
org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
.java:113)
>
>       at
>
org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
java:52)
>
>       at
> org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
>
>       at
>
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
l.java:1158)

>
> etc
>
>
>
>
>
>
>
> and
>
>
>
>
>
> ----- Root Cause -----
>
> 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:134)
>
>       at java.lang.Class.forName0(Native Method)
>
>       at java.lang.Class.forName(Class.java:141)
>
>       at
>
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:62)

>
>       at java.awt.Font.initializeFont(Font.java:308)
>
>       at java.awt.Font.<init>(Font.java:344)
>
>       at
> org.jfree.chart.axis.AxisConstants.<clinit>(AxisConstants.java:67)
>
>       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
>
>       at
> org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
>
>       at
>
org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
reeChartSerializer.java:262)
>
>       at
>
org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
.java:113)
>
>       at
>
org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
java:52)
>
>       at
> org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
>
>       at
>
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
l.java:1158)

>
> etc
>
>
>
>  Notice how the second one is a superset of the first one.
>
>
>
> It looks like the jfree chart code is trying to access an XWindows display
> so I am guessing that I need to configure jfree chart. Is there somewhere
in

> OPS that I can configure jfree chart ?
>
> Does anyone know a quick fix for this or will I need to plough through the
> jfree chart documentation ?
>
>
>
> My other question is how can I get two different stack traces ? Is OPS
> sometimes misreporting the crash ?
>
>
>
> Thanks
>
>     Doug
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Doug Young.vcf (471 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OPS and jfree charts under unix

Alessandro  Vernet
Administrator
Hi Doug,

The first error was a "no class def found". Those are sometimes harder
to track down. Does it disappear when the VM is started with
-Djava.awt.headless=true?

Alex

On 10/17/05, Doug Young <[hidden email]> wrote:

> Alex,
>  thanks for that, I will give it a try.
>
> Any idea why I got the two different stack traces ?
>
> regards
>         Doug
>
>
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
> Vernet
> Sent: 14 October 2005 21:13
> To: [hidden email]
> Subject: Re: [ops-users] OPS and jfree charts under unix
>
> Hi Doug,
>
> This happens when the VM is trying to connect to the X11 server as
> some part of the graphics library is used by the chart library.
> Starting your VM with this additional argument should solve your
> problem:
>
> -Djava.awt.headless=true
>
> With Tomcat, bin/setclasspath.sh is a good place to add this
> parameter. You can do this there by setting the JAVA_OPTS environment
> variable.
>
> Alex
>
> On 10/14/05, Doug Young <[hidden email]> wrote:
> >
> >
> >
> >
> >
> > Hi,
> >
> >   I have a OPS 3.0 app that uses the jfree charts servlet. I works fine
> when
> > running on a windows machine but when I take it to our unix server I get a
> > stack trace.
> >
> > There are two different stack traces I get on looks like a subset of the
> > other, here are bits of the traces
> >
> >
> >
> > ----- Root Cause -----
> >
> > java.lang.NoClassDefFoundError
> >
> >       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
> >
> >       at
> > org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
> >
> >       at
> >
> org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
> reeChartSerializer.java:262)
> >
> >       at
> >
> org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
> .java:113)
> >
> >       at
> >
> org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
> java:52)
> >
> >       at
> > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
> >
> >       at
> >
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
> l.java:1158)
> >
> > etc
> >
> >
> >
> >
> >
> >
> >
> > and
> >
> >
> >
> >
> >
> > ----- Root Cause -----
> >
> > 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:134)
> >
> >       at java.lang.Class.forName0(Native Method)
> >
> >       at java.lang.Class.forName(Class.java:141)
> >
> >       at
> >
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
> .java:62)
> >
> >       at java.awt.Font.initializeFont(Font.java:308)
> >
> >       at java.awt.Font.<init>(Font.java:344)
> >
> >       at
> > org.jfree.chart.axis.AxisConstants.<clinit>(AxisConstants.java:67)
> >
> >       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
> >
> >       at
> > org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
> >
> >       at
> >
> org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
> reeChartSerializer.java:262)
> >
> >       at
> >
> org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
> .java:113)
> >
> >       at
> >
> org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
> java:52)
> >
> >       at
> > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
> >
> >       at
> >
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
> l.java:1158)
> >
> > etc
> >
> >
> >
> >  Notice how the second one is a superset of the first one.
> >
> >
> >
> > It looks like the jfree chart code is trying to access an XWindows display
> > so I am guessing that I need to configure jfree chart. Is there somewhere
> in
> > OPS that I can configure jfree chart ?
> >
> > Does anyone know a quick fix for this or will I need to plough through the
> > jfree chart documentation ?
> >
> >
> >
> > My other question is how can I get two different stack traces ? Is OPS
> > sometimes misreporting the crash ?
> >
> >
> >
> > Thanks
> >
> >     Doug
> >
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email]
> > mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
> >
> >
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: OPS and jfree charts under unix

Doug Young
Hi,
  Yes its fixed with the -Djava.awt.headless=true.

 I was more curious about why sometimes I got the x11 error and sometimes
the class not found. The web app and Ops was the same for both errors.

Its not important as I have the charts working now, just curiosity

thanks
    Doug
 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
Vernet
Sent: 17 October 2005 18:41
To: [hidden email]
Subject: Re: [ops-users] OPS and jfree charts under unix

Hi Doug,

The first error was a "no class def found". Those are sometimes harder
to track down. Does it disappear when the VM is started with
-Djava.awt.headless=true?

Alex

On 10/17/05, Doug Young <[hidden email]> wrote:

> Alex,
>  thanks for that, I will give it a try.
>
> Any idea why I got the two different stack traces ?
>
> regards
>         Doug
>
>
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
> Vernet
> Sent: 14 October 2005 21:13
> To: [hidden email]
> Subject: Re: [ops-users] OPS and jfree charts under unix
>
> Hi Doug,
>
> This happens when the VM is trying to connect to the X11 server as
> some part of the graphics library is used by the chart library.
> Starting your VM with this additional argument should solve your
> problem:
>
> -Djava.awt.headless=true
>
> With Tomcat, bin/setclasspath.sh is a good place to add this
> parameter. You can do this there by setting the JAVA_OPTS environment
> variable.
>
> Alex
>
> On 10/14/05, Doug Young <[hidden email]> wrote:
> >
> >
> >
> >
> >
> > Hi,
> >
> >   I have a OPS 3.0 app that uses the jfree charts servlet. I works fine
> when
> > running on a windows machine but when I take it to our unix server I get
a

> > stack trace.
> >
> > There are two different stack traces I get on looks like a subset of the
> > other, here are bits of the traces
> >
> >
> >
> > ----- Root Cause -----
> >
> > java.lang.NoClassDefFoundError
> >
> >       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
> >
> >       at
> > org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
> >
> >       at
> >
>
org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
> reeChartSerializer.java:262)
> >
> >       at
> >
>
org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
> .java:113)
> >
> >       at
> >
>
org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
> java:52)
> >
> >       at
> > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
> >
> >       at
> >
>
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp

> l.java:1158)
> >
> > etc
> >
> >
> >
> >
> >
> >
> >
> > and
> >
> >
> >
> >
> >
> > ----- Root Cause -----
> >
> > 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:134)
> >
> >       at java.lang.Class.forName0(Native Method)
> >
> >       at java.lang.Class.forName(Class.java:141)
> >
> >       at
> >
>
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment

> .java:62)
> >
> >       at java.awt.Font.initializeFont(Font.java:308)
> >
> >       at java.awt.Font.<init>(Font.java:344)
> >
> >       at
> > org.jfree.chart.axis.AxisConstants.<clinit>(AxisConstants.java:67)
> >
> >       at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
> >
> >       at
> > org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
> >
> >       at
> >
>
org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
> reeChartSerializer.java:262)
> >
> >       at
> >
>
org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
> .java:113)
> >
> >       at
> >
>
org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
> java:52)
> >
> >       at
> > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
> >
> >       at
> >
>
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp

> l.java:1158)
> >
> > etc
> >
> >
> >
> >  Notice how the second one is a superset of the first one.
> >
> >
> >
> > It looks like the jfree chart code is trying to access an XWindows
display
> > so I am guessing that I need to configure jfree chart. Is there
somewhere
> in
> > OPS that I can configure jfree chart ?
> >
> > Does anyone know a quick fix for this or will I need to plough through
the

> > jfree chart documentation ?
> >
> >
> >
> > My other question is how can I get two different stack traces ? Is OPS
> > sometimes misreporting the crash ?
> >
> >
> >
> > Thanks
> >
> >     Doug
> >
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email]
> > mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
> >
> >
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Doug Young.vcf (471 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OPS and jfree charts under unix

Erik Bruchez
Administrator
For some reason, the code path in JFreeChart and/or the VM must be
different in the two cases. So no real explanation here ;-)

-Erik

Doug Young wrote:

> Hi,
>   Yes its fixed with the -Djava.awt.headless=true.
>
>  I was more curious about why sometimes I got the x11 error and sometimes
> the class not found. The web app and Ops was the same for both errors.
>
> Its not important as I have the charts working now, just curiosity
>
> thanks
>     Doug
>  
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
> Vernet
> Sent: 17 October 2005 18:41
> To: [hidden email]
> Subject: Re: [ops-users] OPS and jfree charts under unix
>
> Hi Doug,
>
> The first error was a "no class def found". Those are sometimes harder
> to track down. Does it disappear when the VM is started with
> -Djava.awt.headless=true?
>
> Alex
>
> On 10/17/05, Doug Young <[hidden email]> wrote:
>
>>Alex,
>> thanks for that, I will give it a try.
>>
>>Any idea why I got the two different stack traces ?
>>
>>regards
>>        Doug
>>
>>
>>
>>-----Original Message-----
>>From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
>>Vernet
>>Sent: 14 October 2005 21:13
>>To: [hidden email]
>>Subject: Re: [ops-users] OPS and jfree charts under unix
>>
>>Hi Doug,
>>
>>This happens when the VM is trying to connect to the X11 server as
>>some part of the graphics library is used by the chart library.
>>Starting your VM with this additional argument should solve your
>>problem:
>>
>>-Djava.awt.headless=true
>>
>>With Tomcat, bin/setclasspath.sh is a good place to add this
>>parameter. You can do this there by setting the JAVA_OPTS environment
>>variable.
>>
>>Alex
>>
>>On 10/14/05, Doug Young <[hidden email]> wrote:
>>
>>>
>>>
>>>
>>>
>>>Hi,
>>>
>>>  I have a OPS 3.0 app that uses the jfree charts servlet. I works fine
>>
>>when
>>
>>>running on a windows machine but when I take it to our unix server I get
>
> a
>
>>>stack trace.
>>>
>>>There are two different stack traces I get on looks like a subset of the
>>>other, here are bits of the traces
>>>
>>>
>>>
>>>----- Root Cause -----
>>>
>>>java.lang.NoClassDefFoundError
>>>
>>>      at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
>>>
>>>      at
>>>org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
>>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
>
>>reeChartSerializer.java:262)
>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
>
>>.java:113)
>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
>
>>java:52)
>>
>>>      at
>>>org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
>>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
>
>>l.java:1158)
>>
>>>etc
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>and
>>>
>>>
>>>
>>>
>>>
>>>----- Root Cause -----
>>>
>>>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:134)
>>>
>>>      at java.lang.Class.forName0(Native Method)
>>>
>>>      at java.lang.Class.forName(Class.java:141)
>>>
>>>      at
>>>
>>
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
>
>>.java:62)
>>
>>>      at java.awt.Font.initializeFont(Font.java:308)
>>>
>>>      at java.awt.Font.<init>(Font.java:344)
>>>
>>>      at
>>>org.jfree.chart.axis.AxisConstants.<clinit>(AxisConstants.java:67)
>>>
>>>      at org.jfree.chart.axis.Axis.<init>(Axis.java:180)
>>>
>>>      at
>>>org.jfree.chart.axis.CategoryAxis.<init>(CategoryAxis.java:137)
>>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.serializer.legacy.JFreeChartSerializer.drawChart(JF
>
>>reeChartSerializer.java:262)
>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.JFreeChartProcessor.createChart(JFreeChartProcessor
>
>>.java:113)
>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.JFreeChartProcessor$1.readImpl(JFreeChartProcessor.
>
>>java:52)
>>
>>>      at
>>>org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:975)
>>>
>>>      at
>>>
>>
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
>
>>l.java:1158)
>>
>>>etc
>>>
>>>
>>>
>>> Notice how the second one is a superset of the first one.
>>>
>>>
>>>
>>>It looks like the jfree chart code is trying to access an XWindows
>
> display
>
>>>so I am guessing that I need to configure jfree chart. Is there
>
> somewhere
>
>>in
>>
>>>OPS that I can configure jfree chart ?
>>>
>>>Does anyone know a quick fix for this or will I need to plough through
>
> the
>
>>>jfree chart documentation ?
>>>
>>>
>>>
>>>My other question is how can I get two different stack traces ? Is OPS
>>>sometimes misreporting the crash ?
>>>
>>>
>>>
>>>Thanks
>>>
>>>    Doug
>>>
>>>
>>>
>>>--
>>>You receive this message as a subscriber of the [hidden email]
>>>mailing list.
>>>To unsubscribe: mailto:[hidden email]
>>>For general help: mailto:[hidden email]?subject=help
>>>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>--
>>You receive this message as a subscriber of the [hidden email]
>
> mailing list.
>
>>To unsubscribe: mailto:[hidden email]
>>For general help: mailto:[hidden email]?subject=help
>>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>>
>>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws