Home
Analytics
birt transaction timeout?
lavond
hello forum,
i have an application which generates at least one report. If more reports should be generated the method "execute" will be called in a loop.
Only the values of the parameters are variable.
Caller method:
1.
2. ...
3. for (CatalogData catalogData : ridMap.values()) {
4. ReportBean.executeWordReport(param1, param2, "doc", "c:/report_output/" + catalogData.getCatalogName());
5. System.out.println("nex Report...");
6. }
7. ...
The method which will be called:
1.
2. public static synchronized String execute(long param1, String param2, String outputFormat, String outputFormat) {
3. IReportRunnable design = null;
4. String ret = null;
5.
6. //Open the report template
7. String s = ReportBean.class.getResource("/template/html_report.rptdesign").toString();
8. design = getBirtEngine().openReportDesign(s);
9. System.out.println("2. open report design");
10.
11. IRunAndRenderTask task = birtEngine.createRunAndRenderTask(design);
12. task.setParameterValue("brandCode_rp", brandCode);
13. task.setParameterValue("materialCategoryID_rp", materialCategoryID);
14. task.validateParameters();
15.
16. HTMLRenderOption options = new HTMLRenderOption();
17. options.setOutputFileName(outputFileName);
18. options.setOutputFormat(outputFormat);
19. options.setHtmlRtLFlag(false);
20. options.setEmbeddable(false);
21.
22. task.setRenderOption(options);
23.
24. System.out.println("3. run report");
25. task.run();
26. System.out.println("4. close report");
27. task.close();
28. }
The first report will always generated without any problems. But if i try to generate the second report, nothing happened -> the application server (JBoss) stops and the gui get no response. I have to kill the eclipse/java process.
The curious thing is, this issue occurs after the generation of the first report.
And also in the birt log is no error:
23.03.2010 16:33:05 org.eclipse.birt.data.engine.impl.DataEngineImpl shutdown
FEINER: ENTRY
23.03.2010 16:33:05 org.eclipse.birt.data.engine.odaconsumer close
FEINER: ENTRY
23.03.2010 16:33:05 org.eclipse.birt.report.data.oda.jdbc.Connection close
FEIN: Connection closed.
23.03.2010 16:33:05 org.eclipse.birt.data.engine.odaconsumer close
FEINER: RETURN
23.03.2010 16:33:05 org.eclipse.birt.data.engine.odaconsumer close
FEINER: ENTRY
23.03.2010 16:33:05 org.eclipse.birt.report.data.oda.jdbc.Connection close
FEIN: Connection closed.
23.03.2010 16:33:05 org.eclipse.birt.data.engine.odaconsumer close
FEINER: RETURN
23.03.2010 16:33:06 org.eclipse.birt.data.engine.impl.DataEngineImpl shutdown
FEIN: Data engine shuts down
23.03.2010 16:33:09 org.eclipse.birt.data.engine.impl.DataEngineImpl shutdown
FEINER: RETURN
i get the following warning:
...
09:34:42,278 INFO [STDOUT] 4. close report
09:34:42,294 INFO [STDOUT] nex Report...
09:34:45,341 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TransactionReaper_18] - TransactionReaper::check timeout for TX a0d3507:860:4ba9cc70:81 in state RUN
09:34:45,372 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id a0d3507:860:4ba9cc70:81 invoked while multiple threads active within it.
09:34:45,372 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action a0d3507:860:4ba9cc70:81 aborting with 1 threads active!
09:34:45,372 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TransactionReaper_7] - TransactionReaper::doCancellations worker Thread[Thread-12,5,jboss] successfully canceled TX a0d3507:860:4ba9cc70:81
Is it possible that the transaction get an timeout or something like that?
Find more posts tagged with
Comments
There are no comments yet