Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Invoking the web viewer
Invoking the web viewer [message #368644] Wed, 17 June 2009 11:18 Go to next message
Sushant Dusad is currently offline Sushant DusadFriend
Messages: 25
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C9EF6B.730E83C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,
I want to invoke the BIRT Web Viewer from my Plugin which will be =
deployed in an BIRT RCP on a menu item click.
I tried with=20
WebViewer.display(ReportHelper.getFileName(), WebViewer.HTM, =
WebViewer.VIEWER_PREVIEW);
but i am getting teh following stack trace.
I have added the org.eclipse.birt.report.viewer plugin in my plugin =
dependencies.

!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError: =
org/eclipse/birt/report/viewer/utilities/WebViewer
at =
com.sample.birt.reporting.run.actions.RunReportActionDelegat e.run(RunRepo=
rtActionDelegate.java:29)
at =
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
at =
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.ja=
va:229)
at =
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Act=
ionContributionItem.java:583)
at =
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributi=
onItem.java:500)
at =
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContr=
ibutionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at =
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:2=
88)
at =
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:48=
8)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at =
org.eclipse.birt.report.designer.ui.rcp.DesignerApplication. run(DesignerA=
pplication.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39)
at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at =
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hodWithExcept=
ion(EclipseAppContainer.java:574)
at =
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.ja=
va:195)
at =
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicati=
on(EclipseAppLauncher.java:110)
at =
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Eclips=
eAppLauncher.java:79)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:3=
86)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:1=
79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39)
at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Any pointers on this would be helpful.


------=_NextPart_000_000E_01C9EF6B.730E83C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16809" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; I want to invoke the BIRT =
Web Viewer=20
from my Plugin which will be deployed in an BIRT RCP on a menu item=20
click.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; I tried with </FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2>&nbsp;&nbsp;&nbsp;=20
WebViewer.<I>display</I>(ReportHelper.<I>getFileName</I >(),=20
WebViewer.</FONT><I><FONT color=3D#0000c0 size=3D2>HTM</I></FONT><FONT =
size=3D2>,=20
WebViewer.</FONT><I><FONT color=3D#0000c0 =
size=3D2>VIEWER_PREVIEW</I></FONT><FONT=20
size=3D2>);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; but i am getting teh =
following stack=20
trace.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have added the =
org.eclipse.birt.report.viewer=20
plugin in my plugin dependencies.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>!MESSAGE Unhandled event loop =
exception<BR>!STACK=20
0<BR>java.lang.NoClassDefFoundError:=20
org/eclipse/birt/report/viewer/utilities/WebViewer<BR>&nbsp;at=20
com.sample.birt.reporting.run.actions.RunReportActionDelegat e.run(RunRepo=
rtActionDelegate.java:29)<BR>&nbsp;at=20
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251) <=
BR>&nbsp;at=20
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.ja=
va:229)<BR>&nbsp;at=20
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Act=
ionContributionItem.java:583)<BR>&nbsp;at=20
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributi=
onItem.java:500)<BR>&nbsp;at=20
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContr=
ibutionItem.java:411)<BR>&nbsp;at=20
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84) <BR>&nbsp=
;at=20
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)<BR >&nbsp;at=20
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823) <BR>&=
nbsp;at=20
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422) <BR>&nb=
sp;at=20
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382) <BR>&n=
bsp;at=20
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) <BR>&nbsp;at =

org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98) <BR>&nbsp;=
at=20
org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)<BR >&nbsp;at=20
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:2=
88)<BR>&nbsp;at=20
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:48=
8)<BR>&nbsp;at=20
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149) <BR>&=
nbsp;at=20
org.eclipse.birt.report.designer.ui.rcp.DesignerApplication. run(DesignerA=
pplication.java:38)<BR>&nbsp;at=20
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR>&nbsp;at=20
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39)<BR>&nbsp;at=20
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl.java:25)<BR>&nbsp;at=20
java.lang.reflect.Method.invoke(Method.java:585)<BR>&nbsp;at=20
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hodWithExcept=
ion(EclipseAppContainer.java:574)<BR>&nbsp;at=20
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.ja=
va:195)<BR>&nbsp;at=20
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicati=
on(EclipseAppLauncher.java:110)<BR>&nbsp;at=20
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Eclips=
eAppLauncher.java:79)<BR>&nbsp;at=20
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:3=
86)<BR>&nbsp;at=20
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:1=
79)<BR>&nbsp;at=20
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR>&nbsp;at=20
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39)<BR>&nbsp;at=20
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl.java:25)<BR>&nbsp;at=20
java.lang.reflect.Method.invoke(Method.java:585)<BR>&nbsp;at=20
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549) <BR>&nbsp=
;at=20
org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)<BR >&nbsp;at=20
org.eclipse.equinox.launcher.Main.run(Main.java:1236)</FONT ></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any pointers on this would be =
helpful.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000E_01C9EF6B.730E83C0--
Re: Invoking the web viewer [message #368651 is a reply to message #368644] Wed, 17 June 2009 14:00 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.windstream.net

Sushant,

When you run it is the viewer plugin in your target? You will need to
make sure you have several of the birt plugins in your target as well.
I just posted on another thread this link:
http://www.birt-exchange.org/devshare/deploying-birt-reports /792-eclipsecon-2009-integrating-birt/#description
It has several rcp examples. Each example has a target configuration
that shows which plugins are required.

Jason

Sushant Dusad wrote:
> Hi All,
> I want to invoke the BIRT Web Viewer from my Plugin which will be
> deployed in an BIRT RCP on a menu item click.
> I tried with
> WebViewer./display/(ReportHelper./getFileName/(), WebViewer./HTM/,
> WebViewer./VIEWER_PREVIEW/);
> but i am getting teh following stack trace.
> I have added the org.eclipse.birt.report.viewer plugin in my plugin
> dependencies.
>
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.NoClassDefFoundError:
> org/eclipse/birt/report/viewer/utilities/WebViewer
> at
> com.sample.birt.reporting.run.actions.RunReportActionDelegat e.run(RunReportActionDelegate.java:29)
> at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
> at
> org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.birt.report.designer.ui.rcp.DesignerApplication. run(DesignerApplication.java:38)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hodWithException(EclipseAppContainer.java:574)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:195)
> 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(EclipseS tarter.java:386)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>
> Any pointers on this would be helpful.
>
>
Previous Topic:[Standalone] Partially retrace a chart.
Next Topic:How to format row output into columns/grid?
Goto Forum:
  


Current Time: Fri Apr 26 16:51:19 GMT 2024

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

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

Back to the top