- This topic has 1 reply, 2 voices, and was last updated 19 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
Edward J. NewtonMemberI’m using Eclipse 3.0.1, MyEclipse 3.8.2 (Windows), and J2sdk1.4.1.
Whenever I try to envoke the MyEclipse Struts Editor, either by double-clicking on the struts-config.xml file or by selecting that file and using the context menu to ‘Open with…’ I get two error dialogs in succession:
1. Unable to create part
2. An error has occurred when activating this viewThe Error log contains the following. Any assistance would be greatly appreciated:
!ENTRY org.eclipse.core.runtime 4 2 Dec 05, 2004 20:12:19.337
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
!STACK 0
java.lang.NullPointerException
at org.eclipse.gef.ui.actions.ActionBarContributor.setActiveEditor(ActionBarContributor.java:135)
at com.genuitec.eclipse.struts.editor.multipage.MultiPageActionContributor.setActivePage(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorActionBarContributor.setActiveEditor(MultiPageEditorActionBarContributor.java:49)
at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:297)
at org.eclipse.ui.internal.WorkbenchPage$2.run(WorkbenchPage.java:476)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.ui.internal.WorkbenchPage.activatePart(WorkbenchPage.java:468)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2722)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:457)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2258)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2177)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2169)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2156)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2151)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2134)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:258)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:251)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:166)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Riyad KallaMember1. Unable to create part
This is always a huge indicator of a plugin version conflict. It is most commen when people try and run MyEclipse on unsupported versions of Eclipse or when they have a conflicting version of a plugin installed along side the MyEclipse version of the library (almost always GEF).
java.lang.NullPointerException
at org.eclipse.gef.ui.actions.ActionBarContributor.setActiveEditor(ActionBarContributor.java:135)This seems like its definately a GEF conflict. Check your <Eclipse install dir>\plugins directory, do you have GEF anywhere in there? Most likely installed because of the VE plugins? Shut down Eclipse and try and move the GEF plugins somewhere else temporarily (c:\temp) then restart Eclipse and retry your action. Did it work?
If not, have you ever messed with or tried manually modifying the plugins under your <MyEclipse install dir>\eclipse\plugins directory? MyEclipse requires those libraries be consistent with what we shipped, so a manual upgrade of a plugin here could also mess things up.
-
AuthorPosts