"Workbench has not been created yet" in E4Application
Hallo,<br />
<br />
I try to view a report in an eclipse 4 based Application (org.eclipse.e4.ui.workbench.swt.E4Application).<br />
<br />
When I start the application, the viewer loads but then shows an error:<br />
"org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.<br />
at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1107..."<br />
<br />
In the eclipse concole the following errors show up:<br />
<br />
"!MESSAGE An error occurred while automatically activating bundle org.eclipse.birt.report.designer.ui (131).<br />
!STACK 0<br />
org.osgi.framework.BundleException: Exception in org.eclipse.birt.report.designer.ui.ReportPlugin.start() of bundle org.eclipse.birt.report.designer.ui.<br />
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)<br />
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)<br />
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)<br />
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)..."<br />
<br />
and:<br />
<br />
"Caused by: java.lang.IllegalStateException: Workbench has not been created yet.<br />
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)<br />
at org.eclipse.birt.report.designer.ui.ReportPlugin.start(ReportPlugin.java:304)<br />
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711..."<br />
<br />
I start the viewer by:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>Browser browser = new Browser(parent, SWT.None);
WebViewer.display(path, WebViewer.HTML, browser,"frameset");</pre>
<br />
Where path is pointing at a .rptdesign file which runs fine in the Birt designer preview (also in Eclipse 4).<br />
<br />
I'm really new to BIRT so please excuse if that is a trivial question. <br />
<br />
Thanks for your Help!<br />
<br />
mystikall
<br />
I try to view a report in an eclipse 4 based Application (org.eclipse.e4.ui.workbench.swt.E4Application).<br />
<br />
When I start the application, the viewer loads but then shows an error:<br />
"org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.<br />
at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1107..."<br />
<br />
In the eclipse concole the following errors show up:<br />
<br />
"!MESSAGE An error occurred while automatically activating bundle org.eclipse.birt.report.designer.ui (131).<br />
!STACK 0<br />
org.osgi.framework.BundleException: Exception in org.eclipse.birt.report.designer.ui.ReportPlugin.start() of bundle org.eclipse.birt.report.designer.ui.<br />
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)<br />
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)<br />
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)<br />
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)..."<br />
<br />
and:<br />
<br />
"Caused by: java.lang.IllegalStateException: Workbench has not been created yet.<br />
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)<br />
at org.eclipse.birt.report.designer.ui.ReportPlugin.start(ReportPlugin.java:304)<br />
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711..."<br />
<br />
I start the viewer by:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>Browser browser = new Browser(parent, SWT.None);
WebViewer.display(path, WebViewer.HTML, browser,"frameset");</pre>
<br />
Where path is pointing at a .rptdesign file which runs fine in the Birt designer preview (also in Eclipse 4).<br />
<br />
I'm really new to BIRT so please excuse if that is a trivial question. <br />
<br />
Thanks for your Help!<br />
<br />
mystikall
0
Comments
-
Hi Jason,
I installed the everything from the eclipse update manager in the section "Business Intelligence, Reporting and Charting" and added the complete lib of the BIRT reporting engine to the build path.
Am I missing something?
Thanks for your advice! :-)
Regards
mystikall0 -
<blockquote class="ipsBlockquote" data-author="mystikall" data-cid="92167" data-time="1324280146">
<div>
<p>Hi, I solved the problem. There were really some plugins missing. Thanks!</p>
</div>
</blockquote>
<p>Hi!</p>
<p> </p>
<p>I have exactly the same problem. What was your solution? Because in E4Application is imposible to use Platform.getWorkbench(). I'm using eclipse Neon.1</p>
<p> </p>
<p>Thanks for your help!</p>0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 153 General Questions
- 146 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 83 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 178 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories