Integrating Designer into RCP [message #798190] |
Tue, 14 February 2012 11:12 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
Hello!
i successfully integrated the viewer into my rcp IDE,
but now i need to integrate the designer too (and i have to set a default template for it)
i was searching the web for examples or solutions but wasnt able to find anything (not on google nor on any birt page)
if anyone can help me with this...
NOTE: i already installed the designer into my rcp but i do not want the users to use this unconfigured designer - therefore i have rtpdesigns with already defined data sets etc...
any help wellcome!
[Updated on: Wed, 15 February 2012 09:59] Report message to a moderator
|
|
|
Re: Error happened while running the report [message #798464 is a reply to message #798190] |
Tue, 14 February 2012 18:23 |
|
It looks like you are missing some runtime plugins from your RCP app.
Which ones from the birt framework do you currently have in?
Jason
On 2/14/2012 6:12 AM, Ludwig Moser wrote:
> Hello!
>
> i wrote some code to generate data sources from POJO and generate an
> empty rptdesign file.
>
> i store this file on hdd after generation.
>
> when i open this file in the designer and go to preview everything works
> fine (shows me an empty page)
>
> whenever i try to open this in my RCP with my code loading the
> rptdesign, i run into the following exception:
>
> Quote:
>> org.eclipse.birt.report.service.api.ReportServiceException: Error
>> happened while running the report.
>> at
>> org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1107)
>>
>> at
>> org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1326)
>>
>> 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(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.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:317)
>>
>> 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:322)
>> 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.report.engine.api.EngineException: Error
>> happened while running the report.
>> at
>> org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
>> at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)
>> at
>> org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1317)
>>
>> ... 52 more
>> Caused by: org.eclipse.birt.report.engine.api.EngineException: Cant
>> create data engine.
>> at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.openDataEngine(ExecutionContext.java:887)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:228)
>> ... 54 more
>> Caused by: org.eclipse.birt.core.exception.CoreException: No such
>> script extension : javascript.
>> at
>> org.eclipse.birt.core.script.ScriptContext.getScriptEngine(ScriptContext.java:227)
>>
>> at
>> org.eclipse.birt.report.engine.adapter.ModelDteApiAdapter.(ModelDteApiAdapter.java:178)
>>
>> at
>> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.(AbstractDataEngine.java:109)
>>
>> at
>> org.eclipse.birt.report.engine.data.dte.DteDataEngine.(DteDataEngine.java:122)
>>
>> at
>> org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.(DataGenerationEngine.java:44)
>>
>> at
>> org.eclipse.birt.report.engine.data.DataEngineFactory.createDataEngine(DataEngineFactory.java:85)
>>
>> at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.openDataEngine(ExecutionContext.java:882)
>>
>> ... 55 more
>
>
> anyone got an idea what this means? (except that the creation of the
> report failed, which is obvious
>
> this is the code from my view:
>
> public void createPartControl(Composite parent) {
> String report = "";
> try {
> Bundle bundle = Platform.getBundle("my.package.here");
> URL url = FileLocator.find(bundle, new Path(
> getReport()), null);
> report = FileLocator.toFileURL(url).getPath();
> } catch (MalformedURLException me) {
> System.out.println("Error in URL " + me.getStackTrace());
> } catch (IOException e) {
> e.printStackTrace();
> }
>
> Browser browser = new Browser(parent, SWT.NONE);
> // Use the filename of your report
> HashMap<String, Object> myparms = new HashMap<String, Object>();
> HashMap<String, String> emitmap = new HashMap<String, String>();
>
> myparms.put("SERVLET_NAME_KEY", "frameset");
> myparms.put("FORMAT_KEY", "html");
> //myparms.put("RESOURCE_FOLDER_KEY", "c:/myresources");
> myparms.put("ALLOW_PAGE", "false");
> myparms.put("SHOW_PARAMETER_PAGE", "false");
> //Report Parameters
> emitmap.put("Top Count", "6");
> emitmap.put("Top Percentage", "15");
> myparms.put("EMITTER_OPTIONS_KEY", emitmap);
> //myparms.put("MAX_ROWS_KEY", "500");
> WebViewer.display(report, browser, myparms);
> }
>
|
|
|
Re: Error happened while running the report [message #798832 is a reply to message #798464] |
Wed, 15 February 2012 06:06 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
although i thought my problem was solved (thats why i changed title and content of this thread instead of creating a new topic - sorry i should not do that...)
the only thing i did was installing the plugins for eclipse then run the code.
(obviously nothing was wokring)
i added requred libraries to the rcp by adding the required plug.ins to my product.
and its still not working although 8 plug ins from birt are included (same exception as above)
org.eclipse.birt.core
org.eclipse.birt.data
org.eclipse.birt.data.aggregation
org.eclipse.birt.report.data.adapter
org.eclipse.birt.report.engine
org.eclipse.birt.report.engine.dataextraction
org.eclipse.birt.report.model
org.eclipse.birt.report.viewer
sorry for updating this post that often, but it's driving me crazy.
i now added all OPTIONAL libraries too. over all my includes jumped from 61 to 152!
and still i run into an exception:
Quote:
org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1107)
at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1326)
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(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.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:317)
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.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:282)
at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:85)
at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1317)
... 52 more
Caused by: java.lang.NoClassDefFoundError: com/lowagie/text/FontFactory
at org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$1.run(FontMappingManagerFactory.java:214)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory.registerJavaFonts(FontMappingManagerFactory.java:207)
at org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory.(FontMappingManagerFactory.java:148)
at org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory.getInstance(FontMappingManagerFactory.java:83)
at org.eclipse.birt.report.engine.nLayout.LayoutContext.getFontManager(LayoutContext.java:355)
at org.eclipse.birt.report.engine.nLayout.area.impl.TextAreaLayout.(TextAreaLayout.java:76)
at org.eclipse.birt.report.engine.nLayout.area.impl.BlockTextArea.layout(BlockTextArea.java:65)
at org.eclipse.birt.report.engine.nLayout.LayoutEngine.startContent(LayoutEngine.java:538)
at org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter.startText(ContentEmitterAdapter.java:147)
at org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter.startLabel(ContentEmitterAdapter.java:153)
at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.startContent(ContentEmitterUtil.java:65)
at org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBuffer.startContent(HTMLPageBuffer.java:116)
at org.eclipse.birt.report.engine.layout.html.buffer.TableBreakBuffer.startContent(TableBreakBuffer.java:287)
at org.eclipse.birt.report.engine.layout.html.HTMLLeafItemLM.start(HTMLLeafItemLM.java:67)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:139)
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:249)
at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:260)
... 54 more
Caused by: java.lang.ClassNotFoundException: com.lowagie.text.FontFactory
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 75 more
after updating the includes in my runtime configruation (added 10 more plugins) so i now have 100 PLUGINS more than before?!
i finally get a NEW exception:
Quote:
org.eclipse.birt.report.service.api.ReportServiceException: The output format html is not supported.
at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1107)
at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1553)
at org.eclipse.birt.report.service.BirtViewerReportService.getPage(BirtViewerReportService.java:204)
at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.doExecution(AbstractGetPageActionHandler.java:238)
at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:105)
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.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:317)
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:322)
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.report.engine.api.UnsupportedFormatException: The output format html is not supported.
at org.eclipse.birt.report.engine.api.impl.EngineTask.setupRenderOption(EngineTask.java:1941)
at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:544)
at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:294)
at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1547)
... 50 more
noted that BEFORE i started all over with my project i had the SAME source code and the engine RENDERED the stuff as HTML (now i get the exception its not possible as HTML?)
ok, after adding ALL plugins from birt - now i got over 400 plugins - its working.
but obviously thats overkill for what i actually do with the report...
PS: i think you replied to an old version of this thread (the problem was resolved so i took the thread and changed topic and content before anyone replied.)
[Updated on: Wed, 15 February 2012 11:07] Report message to a moderator
|
|
|
Re: Error happened while running the report [message #799252 is a reply to message #798832] |
Wed, 15 February 2012 16:54 |
|
I posted two example RCP apps on birt exchange. One used the Report
Engine API and the other used the Viewer in plugin format. I did post a
product configuration file for the viewer rcp app
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/1194-eclipse-product-configuration-file-for-webviewer-in-rcp/
You should be able to start with this to reduce the plugins.
Jason
On 2/15/2012 1:06 AM, Ludwig Moser wrote:
> the only thing i did was installing the plugins for eclipse then run the
> code.
> first it broke. in the meantime i added all required libraries to the
> rcp by manually adding all birt libraries to the required settins (did
> not help - so i removed it again)
> then i tried to edit run configuration -> plugins -> add required plug-ins.
> (before i did that i had like 60 plugins, now i got 152!! but its
> working now)
> i also noticed that there are additional entries in my menu (search and
> run)
> so i need to find out which stuff got added, that adds those menus
> (1:100 that i find it)
|
|
|
|
Re: Error happened while running the report [message #800182 is a reply to message #799671] |
Thu, 16 February 2012 19:48 |
|
Once you have created the report why not save it into the workspace?
Jason
On 2/16/2012 1:54 AM, Ludwig Moser wrote:
> i already had a look on that project file (i really try to get that
> working without help - even if it does not seem so)
> the viewer and the report engine are working fine, the problem was the
> designer not showing up.
>
> to summarize what i do:
> i generate a rptdesign from my classes including full dataSource and
> dataSets (i even define where i get the list of objects from)
> this generated design should be then launched in the designer so the
> user got a fully configured dataSource&Set so he only has to create the
> report rather than fighting with where he gets its data from.
>
> 1) the viewer is running and i am able to open any report i want
> 2) i already finished 90% of the .rptdesign generation (only some minor
> things are missing)
> 3) opening the designer with the given rptdesign file outside of the
> workspace is killing me
|
|
|
Re: Error happened while running the report [message #800497 is a reply to message #800182] |
Fri, 17 February 2012 06:29 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
thats what i did yesterday evening.
but its still throwing up this nullpointer
when i boot up my RCP i have parameters:
Quote:
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -console -debug de -data @noDefault
then in code i set the workspace to be located at:
Application.start :
// add '-data @user.home/MyApplication' to launching arguments in PRODUCT
// has same effect?
// add ' -data @noDefault' to args
try {
// fetch the Location that we will be modifying
Location instanceLoc = Platform.getInstanceLocation();
System.out.println("setting Workspace folder to: "
+ Constants.getConfigFolder());
instanceLoc.set(
new URL("file", null, Constants
.getConfigFolder()), false);
} catch (Exception err) {
err.printStackTrace();
}
System.out.println("Platform.getInstanceLocation() = "
+ Platform.getInstanceLocation().getURL().toString());
this resolves to the correct folder (which gets logged into console)
for reporting i do save the report in the given folder above and append "/Reports/generated.rptdesign"
the file is in correct space.
Quote:
org.eclipse.birt.report.designer.ui.ReportPerspective
!ENTRY
org.eclipse.ui
4
4
2012-02-17 07:26:01.849
!MESSAGE
Reference item edit not found for action birtPage
getAdapter() org.eclipse.core.resources.IFile
!ENTRY
org.eclipse.ui
!MESSAGE
Unable to create editor ID org.eclipse.birt.report.designer.ui.editors.ReportEditor: An unexpected exception was thrown.
!STACK
java.lang.NullPointerException at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.addPages(MultiPageReportEditor.java:377) at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348) at org.eclipse.birt.report.designer.ui.editors.ReportEditorProxy.createPartControl(ReportEditorProxy.java:138) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756) at views.birt.DesignerView.openReportDesigner(DesignerView.java:171) at views.birt.DesignerView$2.widgetSelected(DesignerView.java:71) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at application.Application.start(Application.java:47) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
!ENTRY
org.eclipse.ui
!MESSAGE
Ignored attempt to add saveable that was already registered
!STACK
org.eclipse.core.runtime.AssertionFailedException: unknown saveable: org.eclipse.ui.internal.DefaultSaveable@1c19dcb from part: org.eclipse.ui.internal.ErrorEditorPart@1c19dcb at org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesList.java:187) at org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList.java:117) at org.eclipse.ui.internal.SaveablesList.addModels(SaveablesList.java:289) at org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList.java:695) at org.eclipse.ui.internal.PartList.partOpened(PartList.java:234) at org.eclipse.ui.internal.PartList.access$0(PartList.java:210) at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:40) at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:375) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:610) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756) at views.birt.DesignerView.openReportDesigner(DesignerView.java:171) at views.birt.DesignerView$2.widgetSelected(DesignerView.java:71) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at application.Application.start(Application.java:47) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
the designer should pop up now
i noticed that the settings for views (size and position) are not saved either (probably something wrong with workspace??)
HINT: i have eclipse installed on D:\ and workspace shall reside in user directory on C:\
[Updated on: Fri, 17 February 2012 06:32] Report message to a moderator
|
|
|
Re: Error happened while running the report [message #800529 is a reply to message #800497] |
Fri, 17 February 2012 07:25 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
okay, my next try now was:
creating a filedialog popping it up with filter on *.rptdesign and as path the directory where the report resides (funny part is that although the path is set, it does not point to this directory!
when i click on open i get another nullpointer.
Quote:
java.lang.NullPointerException
at org.eclipse.birt.report.designer.internal.ui.ide.adapters.IDEFileReportProvider.getInputPath(IDEFileReportProvider.java:450)
at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.init(MultiPageReportEditor.java:332)
at org.eclipse.birt.report.designer.ui.editors.ReportEditorProxy.init(ReportEditorProxy.java:124)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
when i navigate to the file using the resource explorer it opens the file perfectly! (with the warning of an unsuppoerted content type)
[Updated on: Fri, 17 February 2012 07:26] Report message to a moderator
|
|
|
Re: Error happened while running the report [message #800991 is a reply to message #800529] |
Fri, 17 February 2012 19:48 |
|
You may want to look at the PublishTemplateWizard class in the
org.eclipse.birt.report.designer.internal.ui.wizards package to see how
the designer opens a file. Take a look at setDesignFile method. You
also may want to look at the UIUtil class in the
org.eclipse.birt.report.designer.internal.ui.util package.
Specifically look at UIUtil.getProjectFolder( ); and getProjectFolder(
IEditorInput input )
public static String getProjectFolder( IEditorInput input )
{
Object fileAdapter = input.getAdapter( IFile.class );
IFile file = null;
if ( fileAdapter != null )
file = (IFile) fileAdapter;
if ( file != null && file.getProject( ) != null )
{
return file.getProject( ).getLocation( ).toOSString( );
}
if ( input instanceof IPathEditorInput )
{
File fileSystemFile = ( (IPathEditorInput) input ).getPath( )
.toFile( );
return fileSystemFile.getParent( );
}
return null;
}
Jason
On 2/17/2012 2:25 AM, Ludwig Moser wrote:
> okay, my next try now was:
> creating a filedialog popping it up with filter on *.rptdesign and as
> path the directory where the report resides (funny part is that although
> the path is set, it does not point to this directory!
>
> when i click on open i get another nullpointer.
> Quote:
>> java.lang.NullPointerException
>> at
>> org.eclipse.birt.report.designer.internal.ui.ide.adapters.IDEFileReportProvider.getInputPath(IDEFileReportProvider.java:450)
>>
>> at
>> org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.init(MultiPageReportEditor.java:332)
>>
>> at
>> org.eclipse.birt.report.designer.ui.editors.ReportEditorProxy.init(ReportEditorProxy.java:124)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
>>
>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
>> at
>> org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
>>
>> at
>> org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
>>
>> at
>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
>>
>> at
>> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
>>
>> at
>> org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
>>
>> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
>> at
>> org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
>>
>> at
>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
>>
>> at
>> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
>> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
>
>
> when i navigate to the file using the resource explorer it opens the
> file perfectly!
|
|
|
|
Re: Error happened while running the report [message #804398 is a reply to message #804134] |
Wed, 22 February 2012 15:21 |
|
Is there anyway you could send me the app in email and I could try to
debug it?
Jason
On 2/22/2012 3:38 AM, Ludwig Moser wrote:
> i wonder its so 'complicated' to simply open a file (whether in
> workspace or not)
> i mean birt is a great piece of code and manages such a wide range of
> things...
> thats why i wonder noone ever tried what i try to do???
>
> so opening the VIEWER with my generated report is now working.
> opening the DESIGNER with my generated report fails.
>
>
> ReportDesignHandle newHandle = SessionHandleAdapter.getInstance()
> .getSessionHandle()
> .openDesign(fileName);
>
>
> i validate that my given file is a vaild report and for testing i even
> log that out.
>
> boolean isReportDesignFile =
> ReportPlugin.getDefault().isReportDesignFile(getReportFileName());
> System.out.println("given file is a valid report design file? :
> "+isReportDesignFile);
>
> which results in this output:
> Quote:
>> given file is a valid report design file? : true
>
> so the file is found and valid.
>
> as the code you pointed me to is internal i guess it should bring me an
> idea how to solve my problem.
>
> as mentioned before opening the file through file dialog does not work
> either (correct folder now)
>
> public void openFileDialog(Composite parent) {
> FileDialog dialog = new FileDialog(parent.getShell(), SWT.OPEN);
> dialog.setFilterExtensions(new String[] { "*.rptdesign" });
> System.out.println("setting filterPath to: "
> + BioConstants.getReportsFolder());
> dialog.setFilterPath(BioConstants.getReportsFolder());
> String name = dialog.open();
> if (name == null)
> return;
> File f = new File(name);
> IFile iFile = getIFileFromURI(f.toURI());
> SwitchPerspective.to(birtReportPerspective);
> IWorkbenchPage page = getActivePage();
>
> try {
> page.openEditor(new org.eclipse.ui.part.FileEditorInput(iFile),
> "org.eclipse.birt.report.designer.ui.editors.ReportEditor");
> } catch (PartInitException e) {
> e.printStackTrace();
> }
> }
>
>
> opening the file via resource explorer (which shows me D: as root) tells
> me there is no content type connected (birt did not register .rptdesign
> files??? why?)
>
> i really need to solve this...
> thanks in advance!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.42883 seconds