PDA

View Full Version : Some problem with JFreeReport 0.7.4



Anonymous
08-12-2002, 05:57 AM
I'm using JFreeReport 0.7.4 in an UNIX-AIX platform with WebSphere 4 and
jdk 1.3.1.
We launch some printing with Acrobat plugin.
Sometimes we've one internal error HTTP 500 and in the traces we find
this message:

Servlet Error: com/jrefinery/report/Band:
java.lang.NoClassDefFoundError: com/jrefinery/report/Band
at com.jrefinery.report.io.FontFactory.init(FontFactory.java:61)
at com.jrefinery.report.io.FontFactory.<init>(FontFactory.java:53)
at
com.jrefinery.report.io.ReportDefinitionContentHandler.createFontFactory(ReportDefinitionContentHandler.java:176)

at
com.jrefinery.report.io.ReportDefinitionContentHandler.<init>(ReportDefinitionContentHandler.java:111)

at
fr.cnamts.tocsin.commun.ActionImprimerTocsin.performAction(ActionImprimerTocsin.java)

at fr.cnamts.tocsin.ActionTocsin.performTocsin(ActionTocsin.java)
at fr.cnamts.tocsin.ActionTocsin.perform(ActionTocsin.java)
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.doGet(ActionServlet.java:492)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)

at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)

at
com.ibm.servlet.engine.webapp.ServicingServletState.service(StrictLifecycleServlet.java:317)

at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)

at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)

at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)

at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
Code))
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
Code))
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
Code))
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:117)

at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)

at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)

at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)

at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)

at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)

at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)

at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
Code))
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
Code))
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
Code))
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:117)

at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:124)

at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:218)

at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)

at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)

at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)

at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)

at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)

at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled
Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled
Code))
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)

Can you help me ?
Thanks

Anonymous
08-12-2002, 10:13 AM
Hi,

actually, I'm totally clueless what kind of bug could cause this error. Somehow this stacktrace states that om.jrefinery.report.Band is not found, but the classes in the io-package are loaded, and the error does not show up everytime.

Just an idea, could it be that the unused classes (the Band) got Class-GarbageCollected? Do you get this error after longer idle times or does this bug also appear after the server was recently (re)started.

Clueless, but anyway,
have more fun,
said Thomas

Anonymous
08-12-2002, 11:26 AM
I get this error sometimes, just after the server was recently (re)started.

Anonymous
08-14-2002, 05:38 PM
Hi,

after crawling through some google-news, i found many messages containing similiar problems, and somehow it seems that Websphere is very strict about the ClassLoading process.

<cite>Yes, stop messing with the WebSphere JARs - this will give you nothing
but trouble - you should never need to do this.

Next, read the classpath documentation in section 6.4.1 of the
InfoCenter - this is required reading for all WebSphere developers, by
the way.

...
</cite>
The thread stops there, but other mention similiar problems (but unfortunally most messages are left unanswered there) ...

Have more fun,
said Thomas