bhaarathm
|
Posted: 09/29/2004, 9:52 PM |
|
Hi,
I have a problem relate to jasper report, i have tried some solutions but i 'm still not solve this problem.
It's a web application, i used Jboss 3.2.3, tomcat 5.0 integrate in jboss. In EJBs, first i call to DAO layer to get datasource, parameters.
then i call to jasper report function: JasperFillManager.fillReportToStream(jasperreport,outputstream, parameters, datasource),
If the data source is small, the method call is ok. But with huge datasource, i am seeing this problem of Thread Interruption.
"The report filling thread was interrupted"!!!
---------------------------------------------------------------------------------------
I just do not understand why the Thread was interrupted and by whom…” is it by the container “ . To give you more context, the jasper code was invoked within a stateless session bean and that bean has transaction timout set to 600. Does the Container managed transaction timeout has anything to do with this Thread Interruption ? . My initial guess is not...maybe i might be wrong.
-----------------------------------------------------------------------------------------
Have you had experience with this problem? Could you share with me?
Pls see the printstackstrace for details.
19:58:20,311 ERROR [STDERR] dori.jasper.engine.JRException: The report filling t
hread was interrupted.
19:58:20,311 ERROR [STDERR] at dori.jasper.engine.fill.JRFiller.fillReport(J
RFiller.java:163)
19:58:20,311 ERROR [STDERR] at dori.jasper.engine.JasperFillManager.fillRepo
rt(JasperFillManager.java:350)
19:58:20,311 ERROR [STDERR] at dori.jasper.engine.JasperFillManager.fillRepo
rtToFile(JasperFillManager.java:271)
19:58:20,311 ERROR [STDERR] at dori.jasper.engine.JasperFillManager.fillRepo
rtToFile(JasperFillManager.java:257)
19:58:20,311 ERROR [STDERR] at com.dlv.inmpp.system.ReportManager.generateRe
port(ReportManager.java:56)
19:58:20,311 ERROR [STDERR] at com.dlv.inmpp.online.ejb.rpt.RAEJB.ra002a(RAE
JB.java:3453)
19:58:20,311 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
19:58:20,311 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
19:58:20,311 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:58:20,311 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3
24)
19:58:20,311 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$Conta
inerInterceptor.invoke(Stateles...
|
|
|
bon
|
Posted: 11/08/2004, 4:18 AM |
|
This could have happened simply because your Jasper report which usually takes longer time to fill the o/p is being interrupted by an event.
Catch this.
|
|
|
|