Community
Participate
Working Groups
Build ID: I20090202-1535 Steps To Reproduce: 1. Execute New->Class in any package 2. Enter some class name 3. Click OK -> Wizard won't close / class is not created -> Error log reports NPE More information: Never seen that before.. Restarted the workbench but behaviour is stable. Creating an Interface results in the the same problems. Here's the error log: eclipse.buildId=I20090202-1535 java.version=1.7.0-ea java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments: -os win32 -ws win32 -arch x86 -data D:\Develop\workspace-releng -clean -console Error Thu Feb 12 15:16:30 CET 2009 Unhandled event loop exception java.lang.NullPointerException at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateContextRegistry(JavaPlugin.java:796) at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateStore(JavaPlugin.java:844) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.warnAboutTypeCommentDeprecation(NewElementWizard.java:145) at org.eclipse.jdt.internal.ui.wizards.NewClassCreationWizard.performFinish(NewClassCreationWizard.java:74) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:625) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228) 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.java:3875) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3470) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:135) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:412) 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.java:3875) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3470) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2388) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) 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(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:556) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511) at org.eclipse.equinox.launcher.Main.run(Main.java:1270)
Guys - this is not caused by eclipse itself. I had the actual phpEclipse plugin added to eclipse. Removing the plugin removed the problem. Another sideeffect: Opening Preferences->Java->Editor->Templates raised a similiar NPE at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateContextRegistry(JavaPlugin.java:796)
Hi, could you attach the plug-in here? *** This bug has been marked as a duplicate of bug 244770 ***
That's the one: PHPEclipse-1.2.1 Here's the download (it's 14.5M, so I just provide the URL) http://sourceforge.net/project/showfiles.php?group_id=57621&package_id=283881&release_id=633074 Yes, I know, it's designed for Eclipse 3.3 ;) But it seems to work with 3.5 (unless you don't want to use the same Eclipse for Java editing...)
Ahh, looking at bug 244770 shows, that this is a long known problem with PHPEclipse. Sorry for the duplicate, just wonder why my search in bugzilla with some keywords from the exception trace didn't give a result...
>just wonder why my search in bugzilla with >some keywords from the exception trace didn't give a result... Default search only looks in open bugs.