Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Need help for a simple report in a RCP app(Problem running a report inside an Eclipse RCP app)
Need help for a simple report in a RCP app [message #637249] Thu, 04 November 2010 13:38 Go to next message
No real name is currently offline No real name
Messages: 14
Registered: October 2009
Junior Member
Hi all,
I'm trying a simple report inside an Eclipse RCP application.

I don't need a DB because the contents will be taken from java objects.
So I created a Script Data Source and a linked DataSet following the instructions in
http://www.vogella.de/articles/EclipseBIRT/article.html

I've put the 'rptdesign' file and all the java classes inside a new plug-in and I added it inside the Run Configuration

in the file selecting the dataset the 'open' method is:
-----------------------
count = 0;
gsh = new Packages.de.vogella.birt.stocks.daomock.StockDaoMock();
stock = gsh.getStockValues("Java"); // parameter not useful now, I know
-----------------------
the 'fetch' one:
-----------------------
if(count < stock.size()){
row["columnProjectName"] = stock.get(count).getProjectName();
row["columnDate"] = stock.get(count).getDate();
row["columnOpen"] = stock.get(count).getOpen();
count++;
return true;
}
return false;
-----------------------

The code in my ViewPart (having ):
-----------------------
Bundle bundle = Platform.getBundle("MyBundle.pkg");
path = new URL(bundle.getLocation()).getPath();
path = path .substring(6); //"file:/" 0 bis 5
path = path .replace("/", "\\");
path = path + "reports\\stock_report.rptdesign";
Browser browser = new Browser(parent, SWT.NONE);
WebViewer.display(path, WebViewer.HTML, browser, "frameset"); // it's deprecated but should works
-----------------------

In the file "rptdesign" I just dropped the DataSet from the left menu "Data Explorer"

If I check in the Preview tab, everything works.

If I create an action who call my view...
IViewPart partSql = window.getActivePage().showView("de.vogella.birt.stocks.view ");
... and run it inside the RCP application I have these 2 errors:

IN THE ECLIPSE FRAME:
############################################################ ######

org.eclipse.birt.report.engine.api.EngineException
at org.eclipse.birt.report.engine.executor.ExecutionContext.add Exception(ExecutionContext.java:1215)
at org.eclipse.birt.report.engine.executor.ExecutionContext.add Exception(ExecutionContext.java:1167)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(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(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.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
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:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:380)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:181)
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:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http Connection.java:880)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 213)
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:520)
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.(M odelDteApiAdapter.java:176)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.( AbstractDataEngine.java:107)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.(DteDa taEngine.java:122)
at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine .(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


------------------------------------------------------------ --------------------

org.eclipse.birt.report.engine.api.EngineException
at org.eclipse.birt.report.engine.executor.ExecutionContext.add Exception(ExecutionContext.java:1215)
at org.eclipse.birt.report.engine.executor.ExecutionContext.add Exception(ExecutionContext.java:1167)
at org.eclipse.birt.report.engine.executor.ExecutionContext.ope nDataEngine(ExecutionContext.java:848)
at org.eclipse.birt.report.engine.executor.ExecutionContext.get DataEngine(ExecutionContext.java:865)
at org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:123)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.emitter.Rep ortEmitterExecutor.execute(ReportEmitterExecutor.java:77)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplciateReportExecutor.execute(SuppressDuplciateReportExec utor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:61)
at org.eclipse.birt.report.engine.presentation.ReportDocumentBu ilder.build(ReportDocumentBuilder.java:234)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:252)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(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(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.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
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:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:380)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:181)
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:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http Connection.java:880)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 213)
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:520)
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.(M odelDteApiAdapter.java:176)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.( AbstractDataEngine.java:107)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.(DteDa taEngine.java:122)
at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine .(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)
... 64 more

############################################################ ######
IN THE CONSOLE VIEW

GRAVE: An error happened while running the report. Cause:
java.lang.NullPointerException
at org.eclipse.birt.report.engine.executor.ReportExecutor.execu te(ReportExecutor.java:123)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.emitter.Rep ortEmitterExecutor.execute(ReportEmitterExecutor.java:77)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplciateReportExecutor.execute(SuppressDuplciateReportExec utor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:61)
at org.eclipse.birt.report.engine.presentation.ReportDocumentBu ilder.build(ReportDocumentBuilder.java:234)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:252)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(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(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.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
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:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:380)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:181)
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:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http Connection.java:880)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 213)
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:520)
############################################################ ######


What's wrong ? Neutral

I'm using Eclipse 3.5.2, with Birt 2.5 (took from http://wiki.eclipse.org/BIRT_Update_Site_URL)
The file rcpdesign is reached correctly... but inside the WebViewer.display everything explodes!

Thanks in advance,

Lero
Re: Need help for a simple report in a RCP app [message #637259 is a reply to message #637249] Thu, 04 November 2010 13:48 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Take a look at this example:
http://www.birt-exchange.org/org/devshare/designing-birt-rep orts/889-rcp-app-with-birt-and-scripted-datasource/

Jason

On 11/4/2010 1:38 PM, lero@email.it wrote:
> Hi all, I'm trying a simple report inside an Eclipse RCP application.
>
> I don't need a DB because the contents will be taken from java objects.
> So I created a Script Data Source and a linked DataSet following the
> instructions in
> http://www.vogella.de/articles/EclipseBIRT/article.html
>
> I've put the 'rptdesign' file and all the java classes inside a new
> plug-in and I added it inside the Run Configuration
>
> in the file selecting the dataset the 'open' method is:
> -----------------------
> count = 0;
> gsh = new Packages.de.vogella.birt.stocks.daomock.StockDaoMock(); stock
> = gsh.getStockValues("Java"); // parameter not useful now, I know
> -----------------------
> the 'fetch' one:
> -----------------------
> if(count < stock.size()){
> row["columnProjectName"] = stock.get(count).getProjectName();
> row["columnDate"] = stock.get(count).getDate();
> row["columnOpen"] = stock.get(count).getOpen();
> count++;
> return true;
> }
> return false;
> -----------------------
>
> The code in my ViewPart (having ):
> -----------------------
> Bundle bundle = Platform.getBundle("MyBundle.pkg");
> path = new URL(bundle.getLocation()).getPath();
> path = path .substring(6); //"file:/" 0 bis 5
> path = path .replace("/", "\\");
> path = path + "reports\\stock_report.rptdesign";
> Browser browser = new Browser(parent, SWT.NONE);
> WebViewer.display(path, WebViewer.HTML, browser, "frameset"); // it's
> deprecated but should works
> -----------------------
>
> In the file "rptdesign" I just dropped the DataSet from the left menu
> "Data Explorer"
>
> If I check in the Preview tab, everything works.
>
> If I create an action who call my view...
> IViewPart partSql =
> window.getActivePage().showView("de.vogella.birt.stocks.view ");
> ... and run it inside the RCP application I have these 2 errors:
>
> IN THE ECLIPSE FRAME:
> ############################################################ ######
>
> org.eclipse.birt.report.engine.api.EngineException
> at org.eclipse.birt.report.engine.executor.ExecutionContext.add
> Exception(ExecutionContext.java:1215)
> at org.eclipse.birt.report.engine.executor.ExecutionContext.add
> Exception(ExecutionContext.java:1167)
> 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(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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(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(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.handleRequest(ServletRegistration.java:90)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:111)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:59)
> 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:502)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
> er.java:380)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
> er.java:181)
> 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:324)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:535)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http
> Connection.java:880)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 213)
> 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:520)
> 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.(M
> odelDteApiAdapter.java:176)
> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.(
> AbstractDataEngine.java:107)
> at org.eclipse.birt.report.engine.data.dte.DteDataEngine.(DteDa
> taEngine.java:122)
> at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine
> .(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
>
>
> ------------------------------------------------------------
> --------------------
>
> org.eclipse.birt.report.engine.api.EngineException
> at org.eclipse.birt.report.engine.executor.ExecutionContext.add
> Exception(ExecutionContext.java:1215)
> at org.eclipse.birt.report.engine.executor.ExecutionContext.add
> Exception(ExecutionContext.java:1167)
> at org.eclipse.birt.report.engine.executor.ExecutionContext.ope
> nDataEngine(ExecutionContext.java:848)
> at org.eclipse.birt.report.engine.executor.ExecutionContext.get
> DataEngine(ExecutionContext.java:865)
> at org.eclipse.birt.report.engine.executor.ReportExecutor.execu
> te(ReportExecutor.java:123)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportExecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.emitter.Rep
> ortEmitterExecutor.execute(ReportEmitterExecutor.java:77)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportExecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.dup.Suppres
> sDuplciateReportExecutor.execute(SuppressDuplciateReportExec utor.java:42)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportExecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.l18n.Locali
> zedReportExecutor.execute(LocalizedReportExecutor.java:61)
> at org.eclipse.birt.report.engine.presentation.ReportDocumentBu
> ilder.build(ReportDocumentBuilder.java:234)
> at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:252)
> 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(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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(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(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.handleRequest(ServletRegistration.java:90)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:111)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:59)
> 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:502)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
> er.java:380)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
> er.java:181)
> 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:324)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:535)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http
> Connection.java:880)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 213)
> 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:520)
> 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.(M
> odelDteApiAdapter.java:176)
> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.(
> AbstractDataEngine.java:107)
> at org.eclipse.birt.report.engine.data.dte.DteDataEngine.(DteDa
> taEngine.java:122)
> at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine
> .(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)
> ... 64 more
>
> ############################################################ ######
> IN THE CONSOLE VIEW
>
> GRAVE: An error happened while running the report. Cause:
> java.lang.NullPointerException
> at org.eclipse.birt.report.engine.executor.ReportExecutor.execu
> te(ReportExecutor.java:123)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportExecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.emitter.Rep
> ortEmitterExecutor.execute(ReportEmitterExecutor.java:77)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportExecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.dup.Suppres
> sDuplciateReportExecutor.execute(SuppressDuplciateReportExec utor.java:42)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportExecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.l18n.Locali
> zedReportExecutor.execute(LocalizedReportExecutor.java:61)
> at org.eclipse.birt.report.engine.presentation.ReportDocumentBu
> ilder.build(ReportDocumentBuilder.java:234)
> at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTas k.java:252)
> 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(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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(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(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.handleRequest(ServletRegistration.java:90)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:111)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:59)
> 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:502)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
> er.java:380)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
> er.java:181)
> 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:324)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:535)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http
> Connection.java:880)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 213)
> 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:520)
> ############################################################ ######
>
>
> What's wrong ? :|
>
> I'm using Eclipse 3.5.2, with Birt 2.5 (took from
> http://wiki.eclipse.org/BIRT_Update_Site_URL)
> The file rcpdesign is reached correctly... but inside the
> WebViewer.display everything explodes!
>
> Thanks in advance,
>
> Lero
Re: Need help for a simple report in a RCP app [message #637366 is a reply to message #637259] Fri, 05 November 2010 05:09 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 14
Registered: October 2009
Junior Member
Thank you Jason,
Unfortunately it gives me exactly the same error:
http://palau.altervista.org/sameError.png

Now it's clear that it's just a problem of libraries in the "plugins" folder.
Which version of Bird I have to use? I'm using Galileo (Eclipse 3.5.2) and Birt 2.5 (took from http://wiki.eclipse.org/BIRT_Update_Site_URL)
I can't use Galileo 3.6 because of restrictions of the current project.

Thanks again,

Lero
Re: Need help for a simple report in a RCP app [message #637461 is a reply to message #637366] Fri, 05 November 2010 11:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Lero,

Any chance you can try this with BIRT 2.6.1? I remember there being a
bug in the script context with version 2.5.

Jason

On 11/5/2010 5:09 AM, lero@email.it wrote:
> Thank you Jason,
> Unfortunately it gives me exactly the same error:
> http://palau.altervista.org/sameError.png
>
> Now it's clear that it's just a problem of libraries in the "plugins"
> folder.
> Which version of Bird I have to use? I'm using Galileo (Eclipse 3.5.2)
> and Birt 2.5 (took from http://wiki.eclipse.org/BIRT_Update_Site_URL)
> I can't use Galileo 3.6 because of restrictions of the current project.
>
> Thanks again,
>
> Lero
Re: Need help for a simple report in a RCP app [message #637477 is a reply to message #637461] Fri, 05 November 2010 13:26 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 14
Registered: October 2009
Junior Member
Here (http://wiki.eclipse.org/BIRT_Update_Site_URL)
BIRT 2.6.1 seems to be compatible just with Helios.
Isn't true?

Anyway I uninstalled the old BIRT to try to install the 2.6.1 version.
A message appear. It says that my platform is not compatible and also the package com.ibm.icu.util (4.2) is required.
I downloaded icu4j-4_2_1_1.jar
Maybe I should try putting that jar in the plugins platform?

Any other idea? Neutral

Thanks,

Lero
Re: Need help for a simple report in a RCP app [message #637489 is a reply to message #637477] Fri, 05 November 2010 15:00 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Lero,

2.6.1 does require Helios. I went back and modified the example I
posted earlier:
http://www.birt-exchange.org/org/devshare/designing-birt-rep orts/889-rcp-app-with-birt-and-scripted-datasource/

Can you re-download and try again with 2.5. I looked at the launch
config and a few required plugins were missing.

Jason

On 11/5/2010 1:26 PM, lero@email.it wrote:
> Here (http://wiki.eclipse.org/BIRT_Update_Site_URL)
> BIRT 2.6.1 seems to be compatible just with Helios.
> Isn't true?
>
> Anyway I uninstalled the old BIRT to try to install the 2.6.1 version.
> A message appear. It says that my platform is not compatible and also
> the package com.ibm.icu.util (4.2) is required.
> I downloaded icu4j-4_2_1_1.jar
> Maybe I should try putting that jar in the plugins platform?
>
> Any other idea? :|
>
> Thanks,
>
> Lero
Re: Need help for a simple report in a RCP app [message #637687 is a reply to message #637489] Mon, 08 November 2010 05:58 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 14
Registered: October 2009
Junior Member
I tried again. In Eclipse Galileo using Birt 2.5 I get the same errors and I have no problem of dependency.
Inside "run configuration" I just click the project, add all the required plugin and validate without problems.

Can you tell me which required plugins were missing in your configuration (Eclipse Galileo + Birt 2.5)?

Thanks,

Lero
Re: Need help for a simple report in a RCP app [message #637708 is a reply to message #637687] Mon, 08 November 2010 08:41 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 14
Registered: October 2009
Junior Member
SOLVED!
I just selected in the "run configuration" all the "*birt" plugins.
It means that selecting just the project and "add required plugins", there's something still missing.

Screenshot of my Birt plugins:
http://palau.altervista.org/plugin.png
(Eclipse 3.4 with Birt 2.5.2)

Lero

P.S. It's not a clean solution 'cause now I select also plugins not used by the application.
Re: Need help for a simple report in a RCP app [message #637733 is a reply to message #637687] Mon, 08 November 2010 10:21 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

In my launch config I had 163 plugins used. If you look at the
RCP Viewer Example.launch file in the launchconfig directory you will
see all the plugins I used. The key is selected_target_plugins.

Jason

On 11/8/2010 5:58 AM, lero@email.it wrote:
> I tried again. In Eclipse Galileo using Birt 2.5 I get the same errors
> and I have no problem of dependency.
> Inside "run configuration" I just click the project, add all the
> required plugin and validate without problems.
>
> Can you tell me which required plugins were missing in your
> configuration (Eclipse Galileo + Birt 2.5)?
>
> Thanks,
>
> Lero
Re: Need help for a simple report in a RCP app [message #637734 is a reply to message #637733] Mon, 08 November 2010 10:22 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

BTW I used the BIRT all in one download so I had all the birt plugins
available in my workspace.

Jason

On 11/8/2010 10:21 AM, Jason Weathersby wrote:
> In my launch config I had 163 plugins used. If you look at the
> RCP Viewer Example.launch file in the launchconfig directory you will
> see all the plugins I used. The key is selected_target_plugins.
>
> Jason
>
> On 11/8/2010 5:58 AM, lero@email.it wrote:
>> I tried again. In Eclipse Galileo using Birt 2.5 I get the same errors
>> and I have no problem of dependency.
>> Inside "run configuration" I just click the project, add all the
>> required plugin and validate without problems.
>>
>> Can you tell me which required plugins were missing in your
>> configuration (Eclipse Galileo + Birt 2.5)?
>>
>> Thanks,
>>
>> Lero
>
Previous Topic:Pagebreak problems
Next Topic:Spring Batch & BIRT
Goto Forum:
  


Current Time: Mon Jul 28 12:44:30 EDT 2014

Powered by FUDForum. Page generated in 0.04860 seconds