Unhandled exception caught in event loop. [message #257386] |
Thu, 01 July 2004 04:51  |
Eclipse User |
|
|
|
Hi,
I have a plug-in B which extends from plug-in A.
In the plug-in B I have also extended the popupMenus.
As part of my project I have certain classes that are jarred into a file
called ParserControl.jar. This jar is included in the plug-in B project.
I have implemented the IObjectDelegate interface in a class to invoke the
context menu. In the run method, I am trying to create an object of
ParserControl class. This is when I get this message
Unhandled exception caught in event loop.
Reason:
com/misys/phoenix/util/process/ParserControl
Could anyone let me know what causes this problem and how to solve this
please?
Thanks
Srikanth
|
|
|
|
|
|
|
Re: Unhandled exception caught in event loop. [message #257555 is a reply to message #257536] |
Thu, 01 July 2004 13:22  |
Eclipse User |
|
|
|
You have included it in the build path but have you included it in the
runtime path?
in your plugin.xml of B:
<runtime>
<library name="external.jar">
<export name="*"/>
</library>
</runtime>
Darins
"Srikanth" <chakras1@misys.com> wrote in message
news:cc1aj8$a05$1@eclipse.org...
> Darin,
> Yes I have given the entry in the requires section.
> This class "com/misys/phoenix/util/process/ParserControl" is not part of
> the parent plug-in but an external class. This is present in a jar file
> that is included in the build path of plug-in B.
>
> I have included this even in the system class path.
>
> Yet I receive the same error.
> Darin Swanson wrote:
>
> > It would appear that you have not set up your plugin requirements
properly.
> > In the plugin.xml for plugin B do you have that it requires plugin A?
> > Something like this in the plugin.xml of plugin B:
> > <requires>
> > <import plugin="A"/>
> > </requires>
>
> > HTH
> > Darins
>
> > "Srikanth" <chakras1@misys.com> wrote in message
> > news:cc1999$724$1@eclipse.org...
> > > Hi thanks for the reply
> > > my error log shows this
> > >
> > > java.lang.NoClassDefFoundError:
> > > com/misys/phoenix/util/process/ParserControl
> > > at
> > >
> >
com.misys.phoenix.tools.functions.Generation.initialise(Gene ration.java:167)
> > > at
> > >
> >
com.misys.phoenix.tools.functions.FunctionActionDelegate.run (FunctionActionD
> > elegate.java:66)
> > > at
> > org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
> > > at
> > >
> >
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> > ContributionItem.java:456)
> > > at
> > >
> >
org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionCont
> > ributionItem.java:403)
> > > at
> > >
> >
org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionI
> > tem.java:397)
> > > at
> > >
> >
org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(A
> > ctionContributionItem.java:72)
> > > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> > > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> > > at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> > > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> > > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> > > at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> > > at
> > >
> >
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> > a:858)
> > > at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> > > 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:324)
> > > at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> > > at org.eclipse.core.launcher.Main.run(Main.java:747)
> > > at org.eclipse.core.launcher.Main.main(Main.java:583)
> > >
> > >
> > > Generation.initialise is the method that is creating the ParserControl
> > > object.
> > >
> > > I am creating the object of Generation class in the run method....
> > >
> > > Srikanth
> > >
> > > Darin Swanson wrote:
> > >
> > > > Anything in your .log file?
> > > > Window>Show View>Other>PDE Runtime>Error Log
> > >
> > > > I would take a guess that you are getting a ClassCastException. You
> > could
> > > > set an Exception breakpoint for this exception and debug the
problem.
> > >
> > > > HTH
> > > > Darins
> > >
> > > > "Srikanth" <chakras1@misys.com> wrote in message
> > > > news:cc0j9p$v1u$1@eclipse.org...
> > > > > Hi,
> > > > > I have a plug-in B which extends from plug-in A.
> > > > > In the plug-in B I have also extended the popupMenus.
> > > > >
> > > > > As part of my project I have certain classes that are jarred into
a
> > file
> > > > > called ParserControl.jar. This jar is included in the plug-in B
> > project.
> > > > >
> > > > > I have implemented the IObjectDelegate interface in a class to
invoke
> > the
> > > > > context menu. In the run method, I am trying to create an object
of
> > > > > ParserControl class. This is when I get this message
> > > > >
> > > > > Unhandled exception caught in event loop.
> > > > > Reason:
> > > > > com/misys/phoenix/util/process/ParserControl
> > > > >
> > > > > Could anyone let me know what causes this problem and how to solve
> > this
> > > > > please?
> > > > > Thanks
> > > > >
> > > > > Srikanth
> > > > >
> > >
> > >
>
>
|
|
|
Re: Unhandled exception caught in event loop. [message #257571 is a reply to message #257555] |
Thu, 01 July 2004 13:15  |
Eclipse User |
|
|
|
Thanks Darin,
That was the problem. I put it there and now it is working fine.
Thanks again
Srikanth
Darin Swanson wrote:
> You have included it in the build path but have you included it in the
> runtime path?
> in your plugin.xml of B:
> <runtime>
> <library name="external.jar">
> <export name="*"/>
> </library>
> </runtime>
> Darins
> "Srikanth" <chakras1@misys.com> wrote in message
> news:cc1aj8$a05$1@eclipse.org...
> > Darin,
> > Yes I have given the entry in the requires section.
> > This class "com/misys/phoenix/util/process/ParserControl" is not part of
> > the parent plug-in but an external class. This is present in a jar file
> > that is included in the build path of plug-in B.
> >
> > I have included this even in the system class path.
> >
> > Yet I receive the same error.
> > Darin Swanson wrote:
> >
> > > It would appear that you have not set up your plugin requirements
> properly.
> > > In the plugin.xml for plugin B do you have that it requires plugin A?
> > > Something like this in the plugin.xml of plugin B:
> > > <requires>
> > > <import plugin="A"/>
> > > </requires>
> >
> > > HTH
> > > Darins
> >
> > > "Srikanth" <chakras1@misys.com> wrote in message
> > > news:cc1999$724$1@eclipse.org...
> > > > Hi thanks for the reply
> > > > my error log shows this
> > > >
> > > > java.lang.NoClassDefFoundError:
> > > > com/misys/phoenix/util/process/ParserControl
> > > > at
> > > >
> > >
> com.misys.phoenix.tools.functions.Generation.initialise(Gene ration.java:167)
> > > > at
> > > >
> > >
> com.misys.phoenix.tools.functions.FunctionActionDelegate.run (FunctionActionD
> > > elegate.java:66)
> > > > at
> > > org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
> > > > at
> > > >
> > >
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> > > ContributionItem.java:456)
> > > > at
> > > >
> > >
> org.eclipse.jface.action.ActionContributionItem.handleWidget Event(ActionCont
> > > ributionItem.java:403)
> > > > at
> > > >
> > >
> org.eclipse.jface.action.ActionContributionItem.access$0(Act ionContributionI
> > > tem.java:397)
> > > > at
> > > >
> > >
> org.eclipse.jface.action.ActionContributionItem$ActionListen er.handleEvent(A
> > > ctionContributionItem.java:72)
> > > > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> > > > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> > > > at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> > > > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> > > > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> > > > at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> > > > at
> > > >
> > >
> org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> > > a:858)
> > > > at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> > > > 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:324)
> > > > at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> > > > at org.eclipse.core.launcher.Main.run(Main.java:747)
> > > > at org.eclipse.core.launcher.Main.main(Main.java:583)
> > > >
> > > >
> > > > Generation.initialise is the method that is creating the ParserControl
> > > > object.
> > > >
> > > > I am creating the object of Generation class in the run method....
> > > >
> > > > Srikanth
> > > >
> > > > Darin Swanson wrote:
> > > >
> > > > > Anything in your .log file?
> > > > > Window>Show View>Other>PDE Runtime>Error Log
> > > >
> > > > > I would take a guess that you are getting a ClassCastException. You
> > > could
> > > > > set an Exception breakpoint for this exception and debug the
> problem.
> > > >
> > > > > HTH
> > > > > Darins
> > > >
> > > > > "Srikanth" <chakras1@misys.com> wrote in message
> > > > > news:cc0j9p$v1u$1@eclipse.org...
> > > > > > Hi,
> > > > > > I have a plug-in B which extends from plug-in A.
> > > > > > In the plug-in B I have also extended the popupMenus.
> > > > > >
> > > > > > As part of my project I have certain classes that are jarred into
> a
> > > file
> > > > > > called ParserControl.jar. This jar is included in the plug-in B
> > > project.
> > > > > >
> > > > > > I have implemented the IObjectDelegate interface in a class to
> invoke
> > > the
> > > > > > context menu. In the run method, I am trying to create an object
> of
> > > > > > ParserControl class. This is when I get this message
> > > > > >
> > > > > > Unhandled exception caught in event loop.
> > > > > > Reason:
> > > > > > com/misys/phoenix/util/process/ParserControl
> > > > > >
> > > > > > Could anyone let me know what causes this problem and how to solve
> > > this
> > > > > > please?
> > > > > > Thanks
> > > > > >
> > > > > > Srikanth
> > > > > >
> > > >
> > > >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.04558 seconds