RE: [Wlug] Newbie to mailing list- Issue with the generation of graphs in redhat 6.2
Hi Tim, Thanks for the reply. The version of JDK differ the version I'm having issues with is 1.3.1_01 and the ones the code is running successfully is 1.3.0_02, however the graphs were being produced before. The following is the Weblogic log which I'd appreciate if you can look at and tell what could be the issue in your view: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58) at java.awt.Window.<init>(Window.java:189) at java.awt.Frame.<init>(Frame.java:315) at java.awt.Frame.<init>(Frame.java:262) at com.rivenet.graphingaction.Graphit.runGraph2D(Unknown Source) at com.rivenet.reporting.InformalFundingComparisonGraph.makeGraph(Unknown Source) at jsp_servlet._plan._Model_controller._jspService(_Model_controller.java:356) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708) at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135) I've done some reading and feel that awt uses X-windows and I think that might be broken. I'd appreciate your comments and suggestions. Thanks, Peram
From: "Keller, Tim" <Tim.Keller@stratus.com> Reply-To: wlug@mail.wlug.org To: "'wlug@mail.wlug.org'" <wlug@mail.wlug.org> Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation of graphs in redhat 6.2 Date: Tue, 29 Oct 2002 14:45:42 -0500
Peram,
I'll ask an obvious question... You've verified that both machines running the same version of the java run time environment?
Also, does the entire applet fail or does it just fail to display the graph. If so, you might have to insert some code to catch exceptions... Possibly some library has gotten mangled...
Hope that helps, Tim.
-----Original Message----- From: Sudhaker P [mailto:perams27@hotmail.com] Sent: Tuesday, October 29, 2002 14:35 PM To: wlug@mail.wlug.org Subject: [Wlug] Newbie to mailing list- Issue with the generation of graphs in redhat 6.2
Hi , I've a program that generates graphs with Java 1.3.1_01. The same program is
able to generate graphs on a machine with RH 6.2 kernel 2.4.16 but it fails to generate graphs on a machine with RH 6.2 kernel 2.4.7-10 on which it used
to generate before. I've installed KDE and gd thinking that something may broken in the OS on the jpegs generation part. But that doesn't seem to help. I'd appreciate if any of you gurus can guide me in this issue with your comments and suggestions.
Thanks,
Peram
_________________________________________________________________ Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp
Peram, the top of the stack indicates that the java class loader can not find a particular class needed by java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment() Looking quickly at the javadocs for this - GraphicsEnvirpnment refers to the rendering target of the Graphics2D object. Most likely this method expects to find a target - meaning not only a configured X server - but a running X-server??? Was the X server running on the other machine when you weblogic server was running? If so start X on the other machine, then start weblogic and see what happens. If it is not that - then the problem is that one of the native X windows libraries is missing. If you figure out which java_vm binary is being executed (probably $JAVA_HOME/jre/bin/i386/native_threads/java_vm, then runn ldd against it to see what libraries it relies on - and it will also tell you which it can not find - the two X libraries it is looking for are most likely libX11 and LibXt - make sure both are installed. If you already solved the problem - I would be interested in hearing what it is. One last thought - Have you looked at the servlet code - specifically the makeGraph() method? That is the last method in your code I can see on the stack (the rest are awt stuff) to see if there is any references to a display target? On Tuesday 29 October 2002 17:03, Sudhaker P wrote:
Hi Tim, Thanks for the reply. The version of JDK differ the version I'm having issues with is 1.3.1_01 and the ones the code is running successfully is 1.3.0_02, however the graphs were being produced before. The following is the Weblogic log which I'd appreciate if you can look at and tell what could be the issue in your view: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen t.java:58) at java.awt.Window.<init>(Window.java:189) at java.awt.Frame.<init>(Frame.java:315) at java.awt.Frame.<init>(Frame.java:262) at com.rivenet.graphingaction.Graphit.runGraph2D(Unknown Source) at com.rivenet.reporting.InformalFundingComparisonGraph.makeGraph(Unknown Source) at jsp_servlet._plan._Model_controller._jspService(_Model_controller.java:356) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav a:123) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm pl.java:761) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm pl.java:708) at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContex tManager.java:252) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
I've done some reading and feel that awt uses X-windows and I think that might be broken.
I'd appreciate your comments and suggestions.
Thanks,
Peram
From: "Keller, Tim" <Tim.Keller@stratus.com>
Reply-To: wlug@mail.wlug.org To: "'wlug@mail.wlug.org'" <wlug@mail.wlug.org> Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation of graphs in redhat 6.2 Date: Tue, 29 Oct 2002 14:45:42 -0500
Peram,
I'll ask an obvious question... You've verified that both machines running the same version of the java run time environment?
Also, does the entire applet fail or does it just fail to display the graph. If so, you might have to insert some code to catch exceptions... Possibly some library has gotten mangled...
Hope that helps, Tim.
-----Original Message-----
From: Sudhaker P [mailto:perams27@hotmail.com]
Sent: Tuesday, October 29, 2002 14:35 PM To: wlug@mail.wlug.org Subject: [Wlug] Newbie to mailing list- Issue with the generation of graphs in redhat 6.2
Hi , I've a program that generates graphs with Java 1.3.1_01. The same program is
able to generate graphs on a machine with RH 6.2 kernel 2.4.16 but it fails to generate graphs on a machine with RH 6.2 kernel 2.4.7-10 on which it used
to generate before. I've installed KDE and gd thinking that something may broken in the OS on the jpegs generation part. But that doesn't seem to help. I'd appreciate if any of you gurus can guide me in this issue with your comments and suggestions.
Thanks,
Peram
_________________________________________________________________ Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
participants (2)
-
Sudhaker P
-
Tom Guilderson