Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Failed to load design in BIRT 2.6.2 runtime
Failed to load design in BIRT 2.6.2 runtime [message #832351] Thu, 29 March 2012 23:35 Go to previous message
Lax Lloyd is currently offline Lax Lloyd
Messages: 7
Registered: March 2012
Junior Member
We have number of eclipse BIRT 2.3.1 reports running fine in Production since 2008. Same reports fail in run time after upgrade to v2.6.2.

In runtime we invoke the custom ReportAdapter which extends DataSourceEventAdapter via Event handler class.

Code Snippet:
reportContext.getAppContext().put(
"org.eclipse.birt.report.data.oda.xml.inputStream",
//"org.eclipse.datatools.enablement.oda.xml.inputStream",
//new ByteArrayInputStream((ReportDefender.encoder().decode(new String(getBytesFromFile(xml)))).getBytes()));
new ByteArrayInputStream(getBytesFromFile(xml)));
reportContext.getAppContext().put("org.eclipse.birt.report.data.oda.xml.closeInputStream", new Boolean(true));

Existing Environment:
BIRT Runtime - 2.6.2, Sample WebViewer, JDK 1.5
Report DataSource XML

And the DataSet is build dynamically via eventhandler class. We are getting the below errors;

On Browser:
Table (id = 53):
- Can not load the report query: 53. Errors occurred when generating the report document for the report element with ID 53.
Error.ReportQueryLoadingError2 ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: Can not load the report query: 53. Errors occurred when generating the report document for the report element with ID 53.
at org.eclipse.birt.report.engine.data.dte.DataPresentationEngine.doExecuteQuery(DataPresentationEngine.java:164)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:265)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1890)
at org.eclipse.birt.report.engine.internal.document.v4.ReportItemExecutor.executeQuery(ReportItemExecutor.java:412)
at org.eclipse.birt.report.engine.internal.document.v4.TableItemExecutor.doExecute(TableItemExecutor.java:72)
at org.eclipse.birt.report.engine.internal.document.v4.ReportItemExecutor.execute(ReportItemExecutor.java:294)
at org.eclipse.birt.report.engine.internal.document.v4.ContainerExecutor.prepareChildExecutor(ContainerExecutor.java:226)

On Birt logs

Mar 29, 2012 2:20:34 PM org.eclipse.birt.report.engine.script.internal.ScriptExecutor
WARNING: Unhandled exception when executing script.
org.eclipse.birt.report.engine.api.EngineException: Unhandled exception when executing script.
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:162)
at org.eclipse.birt.report.engine.script.internal.ReportScriptExecutor.handleInitialize(ReportScriptExecutor.java:53)
at org.eclipse.birt.report.engine.api.impl.EngineTask.loadDesign(EngineTask.java:1766)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:216)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)
at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1315)
....
Caused by: java.lang.ClassCastException: com.idl.maistro.report.adapter.ReportAdapter incompatible with org.eclipse.birt.report.engine.api.script.eventhandler.IReportEventHandler
at org.eclipse.birt.report.engine.script.internal.ReportScriptExecutor.handleInitialize(ReportScriptExecutor.java:46)
...
Mar 29, 2012 2:20:36 PM org.eclipse.birt.data.engine.odaconsumer.ConnectionManager openConnection
SEVERE: Unable to open connection.
org.eclipse.datatools.connectivity.oda.OdaException: Some connection properties are missing.
at org.eclipse.datatools.enablement.oda.xml.util.XMLSourceFromPath.<init>(XMLSourceFromPath.java:35)
at org.eclipse.datatools.enablement.oda.xml.util.XMLSourceFromPath.<init>(XMLSourceFromPath.java:42)
at org.eclipse.datatools.enablement.oda.xml.impl.Connection.open(Connection.java:87)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:250)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:165)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:224)

Attached the XML, XSD, Report Design and CSS

Thanks in advance
  • Attachment: Report.zip
    (Size: 14.02KB, Downloaded 53 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Use external browser to preview reports on case-by-case basis
Next Topic:BIRT and Buckminster
Goto Forum:
  


Current Time: Fri May 24 16:29:43 EDT 2013

Powered by FUDForum. Page generated in 0.06056 seconds