Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
BIRT vs Actuate Unhandled Exception Issue
UtahJerry
I have a report that runs without a problem from BIRT 2.3.2 V20081010 but fails with an 'unhandled Exception error in script' when running from Actuate 10 2.3.2 V20081204 and the Actuate BIRT Viewer. I have not been able to locate the issue. Does anyone have a tip on where to look or how to isolate the issue? All I get is a pop-up error message immediately after responding to the parameters prompt.
Find more posts tagged with
Comments
UtahJerry
Here is the info from the tomcat log:
Dec 3, 2009 12:33:28 PM com.actuate.reportapi.engine.ReportGenerationTaskBase logException
SEVERE: Report generation failed. Cause: Unhandled exception when executing script. null com.actuate.reportapi.enginemanager.JREMException: Report generation failed. Cause: Unhandled exception when executing script.
at com.actuate.reportapi.engine.birt.BirtUtil.checkTaskError(Unknown Source)
at com.actuate.reportapi.engine.birt.ReportGenerationTask.generateReport(Unknown Source)
at com.actuate.reportapi.engine.ReportGenerationTaskBase.doTask(Unknown Source)
at com.actuate.reportapi.engine.Task.execute(Unknown Source)
at com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 3, 2009 12:33:28 PM com.actuate.reportapi.engine.ReportGenerationTaskBase doTask
WARNING: An error occurred when generating report.
com.actuate.reportapi.enginemanager.JREMException: Report generation failed. Cause: Unhandled exception when executing script.
at com.actuate.reportapi.engine.birt.BirtUtil.checkTaskError(Unknown Source)
at com.actuate.reportapi.engine.birt.ReportGenerationTask.generateReport(Unknown Source)
at com.actuate.reportapi.engine.ReportGenerationTaskBase.doTask(Unknown Source)
at com.actuate.reportapi.engine.Task.execute(Unknown Source)
at com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 3, 2009 12:33:28 PM com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable run
WARNING: Report generation failed. Cause: Unhandled exception when executing script.
com.actuate.reportapi.enginemanager.JREMException: Report generation failed. Cause: Unhandled exception when executing script.
at com.actuate.reportapi.engine.birt.BirtUtil.checkTaskError(Unknown Source)
at com.actuate.reportapi.engine.birt.ReportGenerationTask.generateReport(Unknown Source)
at com.actuate.reportapi.engine.ReportGenerationTaskBase.doTask(Unknown Source)
at com.actuate.reportapi.engine.Task.execute(Unknown Source)
at com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 3, 2009 12:33:28 PM com.actuate.activeportal.actions.AcSubmitJobAction executeReport
SEVERE: Report Execution failed: Information Console generate report failed.
Dec 3, 2009 12:33:28 PM com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable run
WARNING: An error occurred when executing the task.
Task :TaskID: 52797
Task type: Report generation
Task state: Finished
Task startup time:
Task expireation time:
User name: anonymous
Request type:
Request ID:
Volume name:
authid:
serverURI:
MaxDuration:0
com.actuate.reportapi.enginemanager.JREMException: Report generation failed. Cause: Unhandled exception when executing script.
at com.actuate.reportapi.engine.birt.BirtUtil.checkTaskError(Unknown Source)
at com.actuate.reportapi.engine.birt.ReportGenerationTask.generateReport(Unknown Source)
at com.actuate.reportapi.engine.ReportGenerationTaskBase.doTask(Unknown Source)
at com.actuate.reportapi.engine.Task.execute(Unknown Source)
at com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 3, 2009 12:33:28 PM com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable run
WARNING: [Ljava.lang.StackTraceElement;
@b00278
mwilliams
Hi jasheets,
Is that the entire error stack? This error occurs in the Actuate designer too? Or just in the deployed viewer?
UtahJerry
It was happening in both the designer and the viewer and I just located the issue. I had a variable that was defined in the 'OnRender' method that worked ok in the Eclipse BIRT Designer, but not in the Actuate designer. I moved it to the 'Initialize' method and it is now working correctly in both the designer and viewer. Thanks for taking a look.
mwilliams
Always glad to help if I can. Glad it was a pretty painless issue.
kumar.kashish21
<p>I am using Actuate BIRT Pro for creating a report. I am dragging the data set from the outline to the required place. But an exception is occuring while I am viewing my report as pdf, HTML or any other type. Without using the data sets the report is being displayed properly without any errors.</p>
<p> </p>
<p><strong>Message: </strong></p>
<p>An error occurred when executing the task.</p>
<div>Task :TaskID: 4</div>
<div>Task type: Report generation</div>
<div>Task state: Finished</div>
<div>Task startup time: Thu Jul 31 11:41:01 IST 2014</div>
<div>User name: anonymous</div>
<div>Request type: </div>
<div>Request ID: </div>
<div>Volume name: </div>
<div>authid:</div>
<div>serverURI:</div>
<div>MaxDuration:0</div>
<div> </div>
<div><strong>Exception Stack Trace:</strong></div>
<div>com.actuate.reportapi.enginemanager.JREMException: Report generation failed. Cause: Error happened while running the report.</div>
<div>at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2393)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:280)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:115)</div>
<div>at com.actuate.reportapi.engine.birt.ReportGenerationTask.runTask(ReportGenerationTask.java:1094)</div>
<div>at com.actuate.reportapi.engine.birt.ReportGenerationTask.generateReport(ReportGenerationTask.java:206)</div>
<div>at com.actuate.reportapi.engine.ReportGenerationTaskBase.doTask(ReportGenerationTaskBase.java:157)</div>
<div>at com.actuate.reportapi.engine.Task.execute(Task.java:318)</div>
<div>at com.actuate.reportapi.enginemanager.ThreadPool$ControlRunnable.run(ThreadPool.java:808)</div>
<div>at java.lang.Thread.run(Thread.java:744)</div>
<div>Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.</div>
<div>... 9 more</div>
<div>Caused by: java.lang.NoSuchMethodError: org.eclipse.datatools.connectivity.oda.spec.QuerySpecification.getBaseQuery()Lorg/eclipse/datatools/connectivity/oda/spec/BaseQuery;</div>
<div>at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare(DataSourceQuery.java:287)</div>
<div>at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.prepareOdiQuery(PreparedOdaDSQuery.java:621)</div>
<div>at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:349)</div>
<div>at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:463)</div>
<div>at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQueryResults(PreparedDataSourceQuery.java:190)</div>
<div>at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:178)</div>
<div>at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:179)</div>
<div>at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:651)</div>
<div>at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:152)</div>
<div>at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:83)</div>
<div>at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:275)</div>
<div>at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1947)</div>
<div>at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)</div>
<div>at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute(DataItemExecutor.java:75)</div>
<div>at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)</div>
<div>at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)</div>
<div>at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)</div>
<div>at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)</div>
<div>at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLRepeatHeaderLM.layoutChildren(HTMLRepeatHeaderLM.java:46)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)</div>
<div>at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:249)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:272)</div>
<div>... 7 more</div>
<div> </div>
<div><strong>Message:</strong></div>
<div>[Ljava.lang.StackTraceElement;
@184ed13<
;/div>
<div> </div>
<div><strong>Exception Stack Trace:</strong></div>
<div>An exception stack trace is not available.</div>
Sai krishna
<p>Hello Michael, </p>
<p> </p>
<p>I too got such type of error. What is meant by "Cause: {0}" in the error given below:</p>
<p> </p>
<div>com.actuate.reportapi.enginemanager.JREMException: Report generation failed. Cause: {0}</div>
<div>at java.math.BigDecimal.<init>(BigDecimal.java:494)</div>
<div>at java.math.BigDecimal.<init>(BigDecimal.java:383)</div>
<div>at java.math.BigDecimal.<init>(BigDecimal.java:806)</div>
<div>at org.eclipse.birt.core.data.DataTypeUtil.toBigDecimal(DataTypeUtil.java:369)</div>
<div>at org.eclipse.birt.core.data.DataTypeUtil.convert(DataTypeUtil.java:106)</div>
<div>at org.eclipse.birt.data.engine.expression.ExprEvaluateUtil.evaluateExpression(ExprEvaluateUtil.java:84)</div>
<div>at org.eclipse.birt.data.engine.impl.BindingColumnsEvalUtil.evaluateValue(BindingColumnsEvalUtil.java:201)</div>
<div>at org.eclipse.birt.data.engine.impl.BindingColumnsEvalUtil.getColumnsValue(BindingColumnsEvalUtil.java:161)</div>
<div>at org.eclipse.birt.data.engine.impl.ResultIterator.prepareCurrentRow(ResultIterator.java:789)</div>
<div>at org.eclipse.birt.data.engine.impl.ResultIterator.nextRow(ResultIterator.java:537)</div>
<div>at org.eclipse.birt.data.engine.impl.ResultIterator.next(ResultIterator.java:485)</div>
<div>at org.eclipse.birt.data.engine.impl.ResultIterator.close(ResultIterator.java:1001)</div>
<div>at org.eclipse.birt.data.engine.impl.ResultIterator$1.dataEngineShutdown(ResultIterator.java:220)</div>
<div>at org.eclipse.birt.data.engine.impl.DataEngineImpl.shutdown(DataEngineImpl.java:577)</div>
<div>at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.shutdown(DataRequestSessionImpl.java:529)</div>
<div>at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.shutdown(AbstractDataEngine.java:368)</div>
<div>at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.shutdown(DataGenerationEngine.java:154)</div>
<div>at org.eclipse.birt.report.engine.executor.ExecutionContext.close(ExecutionContext.java:491)</div>
<div>at org.eclipse.birt.report.engine.api.impl.EngineTask.close(EngineTask.java:1726)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RunTask.close(RunTask.java:347)</div>
<div>at com.actuate.reportapi.engine.birt.ReportGenerationTask.closeTask(ReportGenerationTask.java:290)</div>
<div>at com.actuate.reportapi.engine.birt.ReportGenerationTask.generateReport(ReportGenerationTask.java:280)</div>
<div>at com.actuate.reportapi.engine.ReportGenerationTaskBase.doTask(ReportGenerationTaskBase.java:153)</div>
<div>at com.actuate.reportapi.engine.Task.execute(Task.java:325)</div>
<div>at com.actuate.reportapi.enginemanager.ControlRunnable.runTask(ControlRunnable.java:84)</div>
<div>at com.actuate.reportapi.enginemanager.ControlRunnable.run(ControlRunnable.java:38)</div>
<div>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</div>
<div>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</div>
<div>at java.lang.Thread.run(Thread.java:745)</div>
<div>Caused by: java.lang.NumberFormatException</div>
<div>... 29 more</div>
<div> </div>
<div>Thanks in Advance!</div>
<div>Sai Krishna</div>