Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Unable to create editor ID org.eclipse.php.editor: An unexpected exception was thrown.
Unable to create editor ID org.eclipse.php.editor: An unexpected exception was thrown. [message #556120] Mon, 30 August 2010 21:23 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: August 2010
Junior Member
Hi,

just installed PDT 2.2 as described here:

http://wiki.eclipse.org/PDT/Installation#From_Update_Site

on Helios (eclipse.buildId=I20100608-0911 java.version=1.5.0_24) on Mac OS X (10.5) (JavaScript Developer Edition)

When trying to open a PHP file, I am getting this error:

Unable to create editor ID org.eclipse.php.editor: An unexpected exception was thrown.

java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.calculatePriorit y(StructuredTextEditor.java:3525)
at org.eclipse.wst.sse.ui.StructuredTextEditor.installCharacter Pairing(StructuredTextEditor.java:3476)
at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartContro l(StructuredTextEditor.java:1490)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.creat ePartControl(PHPStructuredEditor.java:2244)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:31 3)
at org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1254)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1207)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 06)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:778)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:677)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:638)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2860)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2707)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2691)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2682)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.php.internal.ui.wizards.PHPFileCreationWizard$Fi leCreator$1.run(PHPFileCreationWizard.java:232)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3586)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3279)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. block(ModalContext.java:173)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:388)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 1008)
at org.eclipse.php.internal.ui.wizards.PHPFileCreationWizard.pe rformFinish(PHPFileCreationWizard.java:89)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:811)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:430)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 187)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3622)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3277)
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.handleWidget Selection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 187)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3622)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3277)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 27)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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:592)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

Will provide the configuration data if that's useful.

Any idea?

Thanks.




Re: Unable to create editor ID org.eclipse.php.editor: An unexpected exception was thrown. [message #556191 is a reply to message #556120] Tue, 31 August 2010 09:26 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 351
Registered: July 2009
Location: Japan
Senior Member
Here it is.
Bug 321529 - NPE when opening any source editor if JSP plug-ins are not loaded
Do not update wtp 3.2.0 to 3.2.1.
Re: Unable to create editor ID org.eclipse.php.editor: An unexpected exception was thrown. [message #556371 is a reply to message #556191] Wed, 01 September 2010 04:29 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
On 8/31/2010 5:26 AM, Toshihiro Izumi wrote:
> Here it is.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=321529
> Do not update wtp 3.2.0 to 3.2.1.

Alternately, install the "JST Web" feature until Helios SR1 is available.

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Unable to create editor ID org.eclipse.php.editor: An unexpected exception was thrown. [message #556377 is a reply to message #556371] Wed, 01 September 2010 06:06 Go to previous message
No real name is currently offline No real name
Messages: 2
Registered: August 2010
Junior Member
Hello,

installing the JST Web UI feature did it! Thank you very much for your fast feedback. Very much appreciated.

Christian
Previous Topic:Code Completion doesn't find many PHP functions 2.1 does
Next Topic:Associate a blank extension as php file
Goto Forum:
  


Current Time: Thu Oct 23 14:44:32 GMT 2014

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

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