Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Change Mylyn.tasks.ui.jar cause Unhandled event loop exception
Change Mylyn.tasks.ui.jar cause Unhandled event loop exception [message #1403029] Sun, 20 July 2014 08:41 Go to next message
gu ruihang is currently offline gu ruihangFriend
Messages: 1
Registered: July 2014
Junior Member
I want to develop a project based on Mylyn. Just add a simple button in Mylyn task editor ui. So what i need to do is change some codes in org.eclipse.mylyn.tasks.ui.jar.

In my project, i add a plugin udf.HybridBRClassifier into org.eclipse.mylyn.tasks.ui.jar's dependecies. when i run as debug application, its useful. but when i export changed org.eclipse.mylyn.tasks.ui.jar as jar file and exchange the source jar in eclipse/plugins/ and run eclipse, it throws Unhandled event loop exception.

here is details:
java.lang.NoClassDefFoundError: udf/HybridBRClassifier/Model/CommunicatingInformation
at extpackages.HybridBRClassifier.ui.PredictUi.PredictingTask(PredictUi.java:86)
at extpackages.HybridBRClassifier.ui.PredictUi.MouseupFunction(PredictUi.java:38)
at extpackages.HybridBRClassifier.ui.PredictUi.access$0(PredictUi.java:34)
at extpackages.HybridBRClassifier.ui.PredictUi$1.mouseUp(PredictUi.java:30)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.ClassNotFoundException: udf.HybridBRClassifier.Model.CommunicatingInformation cannot be found by org.eclipse.mylyn.tasks.ui_3.12.0.v20140521-2340
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:423)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 32 more


i have already add plugin udf.HybridBRClassifier into dependencies, so i don't think the problem is here.
the plugin udf.HybridBRClassifier itself is ok because i write another plugin dependent on udf.HybridBRClassifier and it can run rightly.
Re: Change Mylyn.tasks.ui.jar cause Unhandled event loop exception [message #1403756 is a reply to message #1403029] Fri, 25 July 2014 23:55 Go to previous message
Sam Davis is currently offline Sam DavisFriend
Messages: 50
Registered: July 2012
Member
Hi,

If you just want to add a button to the task editor toolbar, you don't need to modify tasks.ui at all. You can just use the menus extension point from your own plugin:

<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:org.eclipse.mylyn.tasks.ui.editors.task.toolbar.header?after=additions">
<command commandId="..."
label="..."
icon="..."
>
</command>
</menuContribution>
</extension>


Cheers,
Sam
Previous Topic:Mylyn 3.12 is now available
Next Topic:github connector and problems with labels and other attributes
Goto Forum:
  


Current Time: Wed May 27 20:07:51 GMT 2015

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

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