Bug 121381 - Can't open mylar task view - NoClassDefFoundError
Summary: Can't open mylar task view - NoClassDefFoundError
Status: RESOLVED DUPLICATE of bug 121326
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 0.4   Edit
Hardware: PC Windows XP
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 05:23 EST by Brett Connor CLA
Modified: 2005-12-20 11:35 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Connor CLA 2005-12-19 05:23:33 EST
I've just installed 0.4.6, and now I can't open the mylar tasks view.
I initially installed through the update manager. I noticed that this left 0.4.4 and 0.4.6 installed so I disabled and removed both versions, restarting eclipse each time. I then installed 0.4.6 through the update manager. Still the same effect. Selecting Windows->Show View->Mylar tasks view gives this exception in the error log, and no task view:

Error 2005-12-19 10:12:25.937 java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
	at org.eclipse.mylar.tasklist.ui.actions.TaskActivateAction.<init>(TaskActivateAction.java:37)
	at org.eclipse.mylar.tasklist.ui.views.TaskListView.<init>(TaskListView.java:174)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:162)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:232)
	at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:99)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:267)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:180)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
	at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1655)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:930)
	at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:913)
	at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3148)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3145)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3123)
	at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:146)
	at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:102)
	at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:70)
	at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:113)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
	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.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)

eclipse.buildId=I20050627-1435
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments:  -os win32 -ws win32 -arch x86 -clean -data c:/devel/axxia3

I have a few plugings, the most major are MyEclipseIDE, also Oxygen XML editor.


Opening a java class gives me another error in a dialog, says:

Please report the following error by folling the bugs link at: https://eclipse.org/mylar

Reason:

Mylar Java plugin initialization failed

Is there a way I can go back to 0.4.4?
Comment 1 Brett Connor CLA 2005-12-19 05:30:10 EST
Oops, just changed the summary, wasn't classnotfound it is NoClassDefFoundError. Everything I do now pulls up the same error referring to various Mylar classes such as org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: org/eclipse/mylar/ui/actions/AbstractApplyMylarAction) so it looks more like Mylar simply failed to install I guess, though nothing suggesting this appeared in the log during / after install, until I tried to do something.
Comment 2 Mik Kersten CLA 2005-12-19 11:08:31 EST
Yes, it's annoying that Eclipse fails to inform of unsuccesful installs, and this is almost certainly a failed install (e.g. a 3.2 version into 3.1).  Could you please try following these instructions:

http://eclipse.org/mylar/doc/faq.php#install-failure

Archived releases of Mylar can be found by using an update site with the version in the path, like the example below (I'll make this more clear on the download page):

download.eclipse.org/technology/mylar/update-site/0.4.4/e3.2 (for Eclipse 3.2)

I hope that you don't have to move back to 0.4.4, so if the install still fails please send me your .metadata/.log file.  Let me know how it goes.
Comment 3 Mik Kersten CLA 2005-12-19 11:27:27 EST
Also, please consider backing up your tasklist.xml file before doing the next upgrade, although your tasks should simply reappear once Mylar is installed correctly: http://eclipse.org/mylar/doc/faq.php#tasklist-blank
Comment 4 Brett Connor CLA 2005-12-19 14:43:56 EST
I've repeated the re-installation sequence using the same download site http://download.eclipse.org/technology/mylar/update-site/e3.1, this time it seems good. It installed a different version this time - 0.4.6.1 vs 0.4.6 thismorning. As far as I can tell that's the only difference. Is this something you would expect? Anyhow it seems shiny so far. Thanks!
Comment 5 Mik Kersten CLA 2005-12-20 11:35:57 EST
Yes, sorry I meant to update this report after I realized what it was but was traveling yesterday.  This fix went into 0.4.6.1, and was the main reason for putting out 0.4.6.1.  It was a race condition during plug-in initialization that could cause startup failure.  Glad that it works for you now.

*** This bug has been marked as a duplicate of 121326 ***