Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » I can't get the viewer to show the report
icon5.gif  I can't get the viewer to show the report [message #553959] Thu, 19 August 2010 14:16 Go to next message
Alexandra Niculai is currently offline Alexandra Niculai
Messages: 84
Registered: July 2009
Member
Hi

I'm writing an RCP application that should show a report on a certain command. The reporting thing, where I created a report and set the data sets and classes to retrieve the data list is in a separate plugin that I added to the RCP application.
This application works when I user the default target platform.
The problem is that I need to use a custom target platform, but the viewer can't show the report when I use the custom target platform.
It throws:
Aug 19, 2010 4:02:02 PM org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Aug 19, 2010 4:02:09 PM org.eclipse.birt.report.engine.api.impl.RunTask doRun
SEVERE: An error happened while running the report. Cause:
org.eclipse.birt.report.engine.api.EngineException: cant create data engine
	at org.eclipse.birt.report.engine.executor.ExecutionContext.openDataEngine(ExecutionContext.java:848)
	at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:220)
	at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)
	at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1307)
	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:119)
	at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:104)
	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(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	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:939)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.eclipse.birt.core.exception.BirtException
	at org.eclipse.birt.core.script.ScriptContext.getScriptEngine(ScriptContext.java:225)
	at org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.<init>(ModelDteApiAdapter.java:176)
	at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.<init>(AbstractDataEngine.java:107)
	at org.eclipse.birt.report.engine.data.dte.DteDataEngine.<init>(DteDataEngine.java:122)
	at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.<init>(DataGenerationEngine.java:42)
	at org.eclipse.birt.report.engine.data.DataEngineFactory.createDataEngine(DataEngineFactory.java:85)
	at org.eclipse.birt.report.engine.executor.ExecutionContext.openDataEngine(ExecutionContext.java:843)
	... 55 more

My target platform contains the delta.pack, the Eclipse RCP SDK and all the plugins and features from the BIRT all in one.
org.apache.axis is in the run configuration(for some reason I can't add it in the product dependencies), and tha javax.mail and javax.activation are in the product dependencies and in the run configuration, too.
I hit the "add required plugins" in the product dependencies and also in the run configuration, but the problem persists.

Can anyone please help me with this?

Greetings
Alexandra.
I
Re: I can't get the viewer to show the report [message #553993 is a reply to message #553959] Thu, 19 August 2010 15:22 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Is your app similar to this:
http://www.birt-exchange.org/org/devshare/designing-birt-rep orts/889-rcp-app-with-birt-and-scripted-datasource/

Jason

On 8/19/2010 10:16 AM, Alexandra Niculai wrote:
> Hi
>
> I'm writing an RCP application that should show a report on a certain
> command. The reporting thing, where I created a report and set the data
> sets and classes to retrieve the data list is in a separate plugin that
> I added to the RCP application.
> This application works when I user the default target platform.
> The problem is that I need to use a custom target platform, but the
> viewer can't show the report when I use the custom target platform.
> It throws:
>
> Aug 19, 2010 4:02:02 PM org.apache.axis.utils.JavaUtils
> isAttachmentSupported
> WARNING: Unable to find required classes (javax.activation.DataHandler
> and javax.mail.internet.MimeMultipart). Attachment support is disabled.
> Aug 19, 2010 4:02:09 PM org.eclipse.birt.report.engine.api.impl.RunTask
> doRun
> SEVERE: An error happened while running the report. Cause:
> org.eclipse.birt.report.engine.api.EngineException: cant create data engine
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.ope nDataEngine(ExecutionContext.java:848)
>
> at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:220)
> at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask. java:85)
> at
> org.eclipse.birt.report.service.ReportEngineService.runRepor t(ReportEngineService.java:1307)
>
> at
> org.eclipse.birt.report.service.BirtViewerReportService.runR eport(BirtViewerReportService.java:158)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtRunReportA ctionHandler.__execute(BirtRunReportActionHandler.java:81)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtGetPageAct ionHandler.__checkDocumentExists(BirtGetPageActionHandler.ja va:58)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.prepareParameters(AbstractGetPageActionHandle r.java:119)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(AbstractGetPageActionHandler.java:1 04)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
>
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(AbstractBaseDocumentProcessor .java:47)
>
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(AbstractBaseComponentProcessor .java:143)
>
> at
> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(BirtDocumentProcessor.java:87)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(AbstractBaseComponentProcessor.java: 112)
>
> at
> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
>
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
>
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.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(AxisServle t.java:699)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
>
> at
> org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
>
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:60)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
>
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(Http Connection.java:939)
>
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
>
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
>
> Caused by: org.eclipse.birt.core.exception.BirtException
> at
> org.eclipse.birt.core.script.ScriptContext.getScriptEngine(S criptContext.java:225)
>
> at
> org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.<init >(ModelDteApiAdapter.java:176)
>
> at
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.<init >(AbstractDataEngine.java:107)
>
> at
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.<init >(DteDataEngine.java:122)
>
> at
> org.eclipse.birt.report.engine.data.dte.DataGenerationEngine . <init>(DataGenerationEngine.java:42)
>
> at
> org.eclipse.birt.report.engine.data.DataEngineFactory.create DataEngine(DataEngineFactory.java:85)
>
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.ope nDataEngine(ExecutionContext.java:843)
>
> ... 55 more
>
> My target platform contains the delta.pack, the Eclipse RCP SDK and all
> the plugins and features from the BIRT all in one.
> org.apache.axis is in the run configuration(for some reason I can't add
> it in the product dependencies), and tha javax.mail and javax.activation
> are in the product dependencies and in the run configuration, too.
> I hit the "add required plugins" in the product dependencies and also in
> the run configuration, but the problem persists.
>
> Can anyone please help me with this?
>
> Greetings
> Alexandra. I
Re: I can't get the viewer to show the report [message #554139 is a reply to message #553993] Fri, 20 August 2010 09:44 Go to previous messageGo to next message
Alexandra Niculai is currently offline Alexandra Niculai
Messages: 84
Registered: July 2009
Member
I'm not sure. It looks almost the same, but I couldn't get that plugin started. The fetch and the open are in the script.
Here is the example I used:
http://www.vogella.de/articles/EclipseBIRT/ar01s09.html

Alexandra.

Re: I can't get the viewer to show the report [message #554235 is a reply to message #554139] Fri, 20 August 2010 17:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Alexandra,

When you say you could not get the plugin started are you referring to
may sample or your example. Any chance you can send me your target
platform config? jasonweathersby at windstream dot net

Jason

On 8/20/2010 5:44 AM, Alexandra Niculai wrote:
> I'm not sure. It looks almost the same, but I couldn't get that plugin
> started. The fetch and the open are in the script.
> Here is the example I used:
> http://www.vogella.de/articles/EclipseBIRT/ar01s09.html
>
> Alexandra.
>
>
Re: I can't get the viewer to show the report [message #554729 is a reply to message #554235] Tue, 24 August 2010 09:31 Go to previous messageGo to next message
Alexandra Niculai is currently offline Alexandra Niculai
Messages: 84
Registered: July 2009
Member
It's this sample that I couldn't get started:
http://www.birt-exchange.org/org/devshare/designing-birt-rep orts/889-rcp-app-with-birt-and-scripted-datasource/

P.S.: Jason, the target configuration has been sent.
Re: I can't get the viewer to show the report [message #554858 is a reply to message #554729] Tue, 24 August 2010 14:18 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I did not get the email with the target.

Jason

On 8/24/2010 5:31 AM, Alexandra Niculai wrote:
> It's this sample that I couldn't get started:
> http://www.birt-exchange.org/org/devshare/designing-birt-rep
> orts/889-rcp-app-with-birt-and-scripted-datasource/
>
> P.S.: Jason, the target configuration has been sent.
Re: I can't get the viewer to show the report [message #555048 is a reply to message #554858] Wed, 25 August 2010 09:48 Go to previous messageGo to next message
Alexandra Niculai is currently offline Alexandra Niculai
Messages: 84
Registered: July 2009
Member
Hi

I sent it again.

Greetings
Alexandra.
Re: I can't get the viewer to show the report [message #555186 is a reply to message #555048] Wed, 25 August 2010 18:12 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I just sent you a reply

On 8/25/2010 5:48 AM, Alexandra Niculai wrote:
> Hi
>
> I sent it again.
>
> Greetings
> Alexandra.
Previous Topic:Building standalone RCP designer from sources
Next Topic:Character Encoding Setting option in BIRT
Goto Forum:
  


Current Time: Tue Sep 16 07:29:09 GMT 2014

Powered by FUDForum. Page generated in 0.01988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software