Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject Error while using PJA

ksdaya

Location : India
Member since : Jul 1, 2003
Messages : 2
 Jul 1, 2003 at 11:01 AM
Hi All,

We are using JBoss3.0.3, Tomcat4.0.3, JDK1.4, and JReports Enterprise server5.1 with PJA to generate reports. And, for most of the reports, we get the exception mentioned below:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:223)
at java.awt.Window.(Window.java:267)
at java.awt.Frame.(Frame.java:398)
at java.awt.Frame.(Frame.java:363)
at jet.bean.JRRunViewer.getFrame(jet/bean/JRRunViewer)
at jet.bean.JRRunViewer.$gq(jet/bean/JRRunViewer)
at jet.bean.JRRunViewer.runReport(jet/bean/JRRunViewer)
at jet.bean.JRRunViewer.setLoadReport(jet/bean/JRRunViewer)
at jet.bean.JRRunViewer.readExternal(jet/bean/JRRunViewer)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.Hashtable.readObject(Hashtable.java:837)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy13.generateReport(Unknown Source)
at com.cadmus.rpm.ui.report.ReportAction.performAction(Unknown Source)
at com.cadmus.rpm.ui.util.RPMBaseAction.perform(Unknown Source)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:536)





The classpath has the following:
exec /usr/local/java/jdk1.4.1/jre/bin/java -Xbootclasspath/a:/usr/local/java/jdk1.4.1/jre/lib/rt.jar:/usr/local/java/pja_2.4/lib/pja.jar:/usr/local/java/jdk1.4.1/jre/lib/i18n.jar -Duser.home=/usr/local/java/pja_2.4 -Dinstall.root=/usr/local/java/JREntServer -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava2d.font.usePlatformFont=false -Djava.awt.fonts=/usr/local/java/jdk1.4.1/jre/lib/fonts:/usr/local/java/JREntServer/font -Dreporthome="/usr/local/java/JREntServer" jet.server.JREntServer "$@"

Is there any other jar file which has to be set in the classpath?

Regards,
Dayanand.

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Jul 1, 2003 at 1:20 PM
What version of PJA did you try ?
With JDK 1.4.1 you should try PJA 2.5 available at http://www.eteks.com/pja/en/#Download

By the way, repeating /usr/local/java/jdk1.4.1/jre/lib/rt.jar in "-Xbootclasspath/a:/usr/local/java/jdk1.4.1/jre/lib/rt.jar:/usr/local/java/pja_2.4/lib/pja.jar:/usr/local/java/jdk1.4.1/jre/lib/i18n.jar" is useless as -Xbootclasspath/a means "append to bootclasspath the following archives" and /usr/local/java/jdk1.4.1/jre/lib/rt.jar is already in bootclasspath !
---
Manu (moderator/modérateur)

ksdaya

Location : India
Member since : Jul 1, 2003
Messages : 2
 Jul 1, 2003 at 2:35 PM
Hi,

We are using PJA 2.4 - will try using PJA 2.5 Beta.

Can you please tell me what the error generated actually is?! Which class was not found? Is this related to JDK / X11 / PJA?!

Regards,
Dayanand.


Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation