Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.(org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.)
org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report. [message #1219278] Tue, 03 December 2013 01:30 Go to next message
sudhansu bal is currently offline sudhansu bal
Messages: 3
Registered: December 2013
Junior Member
Hi All,

I am trying to run the report viewer on embedded Jetty server.
The index.jsp page is showing well.
But when I click on the View Example link it is giving an error as follows

org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2377)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:277)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:86)
at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1325)
at org.eclipse.birt.report.service.BirtViewerReportService.runReport(BirtViewerReportService.java:158)
at org.eclipse.birt.report.service.actionhandler.BirtRunReportActionHandler.__execute(BirtRunReportActionHandler.java:81)
at org.eclipse.birt.report.service.actionhandler.BirtGetPageActionHandler.__checkDocumentExists(BirtGetPageActionHandler.java:58)
at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.prepareParameters(AbstractGetPageActionHandler.java:118)
at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:103)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPage(BirtDocumentProcessor.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:680)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.VerifyError: (class: org/eclipse/birt/report/engine/executor/DataItemExecutor, method: execute signature: ()Lorg/eclipse/birt/report/engine/content/IContent;) Incompatible argument to function
at org.eclipse.birt.report.engine.executor.ExecutorManager.getItemExecutor(ExecutorManager.java:195)
at org.eclipse.birt.report.engine.executor.ExecutorManager$ExecutorFactory.visitDataItem(ExecutorManager.java:306)
at org.eclipse.birt.report.engine.ir.DataItemDesign.accept(DataItemDesign.java:67)
at org.eclipse.birt.report.engine.executor.ExecutorManager$ExecutorFactory.createExecutor(ExecutorManager.java:290)
at org.eclipse.birt.report.engine.executor.ExecutorManager.createExecutor(ExecutorManager.java:227)
at org.eclipse.birt.report.engine.executor.CellExecutor.getNextChild(CellExecutor.java:97)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.getNextChild(WrappedReportItemExecutor.java:66)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.getNextChild(WrappedReportItemExecutor.java:66)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:64)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
at org.eclipse.birt.report.engine.layout.html.HTMLRepeatHeaderLM.layoutChildren(HTMLRepeatHeaderLM.java:46)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:258)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
... 56 more


Please tell me where I am doing wrong.

Thanks
Sudhansu
Re: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report. [message #1219581 is a reply to message #1219278] Wed, 04 December 2013 13:05 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1560
Registered: July 2009
Senior Member

Can you let me know the steps you used to deploy to Jetty? I'll give it a try. I've not tried it before. This is the server used internally in BIRT. Maybe looking at the source would help.

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Re: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report. [message #1221898 is a reply to message #1219581] Wed, 18 December 2013 11:43 Go to previous messageGo to next message
Valentin Mone is currently offline Valentin Mone
Messages: 2
Registered: December 2013
Junior Member
Hello everybody,

I'm stuck with same issue. I have a POJO dataset set up, the actual POJO used is called Row and it's a List implementation (extends ArrayList). I've attached the report design file, but here is snippet of the PojoQuery:

<PojoQuery appContextKey="POJO_DATASET" dataSetClass="com.report.core.model.Row">
    <ColumnMapping index="1" name="Group" odaDataType="String">
        <Method name="get">
	     <ConstantParameter value="0" type="int"/>
	</Method>
   </ColumnMapping>
   <ColumnMapping index="2" name="Product" odaDataType="String">
       	<Method name="get">
       	     <ConstantParameter value="1" type="int"/>
        </Method>
   </ColumnMapping>
</PojoQuery>


I've reduced the report to only 2 columns for simplicity, the idea is that I get Group info from index 0, and Product from index 1.
I too use Jetty as an embedded webserver, but don't think it's related.

2013-12-18 15:27:18,173 [qtp558529042-17 - /generateReport] ERROR com.tora.report.core.engine.impl.birt.BirtReportGenerator - Error occured while trying to generate report 
org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
	at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2377)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:191)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
......
Caused by: java.lang.VerifyError: (class: org/eclipse/birt/report/engine/executor/DataItemExecutor, method: execute signature: ()Lorg/eclipse/birt/report/engine/content/IContent;) Incompatible argument to function
	at org.eclipse.birt.report.engine.executor.ExecutorManager.getItemExecutor(ExecutorManager.java:195)
	at org.eclipse.birt.report.engine.executor.ExecutorManager$ExecutorFactory.visitDataItem(ExecutorManager.java:306)
	at org.eclipse.birt.report.engine.ir.DataItemDesign.accept(DataItemDesign.java:67)
	at org.eclipse.birt.report.engine.executor.ExecutorManager$ExecutorFactory.createExecutor(ExecutorManager.java:290)
	at org.eclipse.birt.report.engine.executor.ExecutorManager.createExecutor(ExecutorManager.java:227)
	at org.eclipse.birt.report.engine.executor.CellExecutor.getNextChild(CellExecutor.java:97)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.getNextChild(WrappedReportItemExecutor.java:66)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.getNextChild(WrappedReportItemExecutor.java:66)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:64)
	.....


Michael, here is how I use Jetty:

public static void main(final String[] args) throws Exception {
        final Server server = new Server(8081);
        final WebAppContext context = new WebAppContext();
        context.setContextPath("/");
        context.setWar("/home/usr/report-engine-web/target/report-engine-web-1.0.war");
        context.setServer(server);
        server.setHandler(context);
 
        server.start();
        server.join();
    }


If anyone can shed some light upon this, possible reasons for this Exception, I would greatly appreciate it. Thanks.
Re: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report. [message #1222021 is a reply to message #1221898] Thu, 19 December 2013 07:46 Go to previous message
Valentin Mone is currently offline Valentin Mone
Messages: 2
Registered: December 2013
Junior Member
I've solved the problem with a re-import of the maven project in eclipse. The build path contained jars from target folder, instead of local M2_REPO and some how this affected the result of the run. I came to this solution after I saw that same test on Jenkins was passing, but not on my local machine.

[Updated on: Thu, 19 December 2013 07:46]

Report message to a moderator

Previous Topic:Setting up BIRT report viewer 4.2.2.
Next Topic:Determine Rendered Font Size on Output
Goto Forum:
  


Current Time: Thu Aug 21 10:10:13 EDT 2014

Powered by FUDForum. Page generated in 0.01511 seconds