Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Could not open the editor: An unexpected exception was thrown.(error opening editor)
Could not open the editor: An unexpected exception was thrown. [message #592124] Tue, 21 September 2010 14:18 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: September 2010
Junior Member
Hi I'm brand new to eclipse and after installing the PDT this message pops up when i try to open a php file. Any help would be appreciated! Thanks!

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:2674)
at org.eclipse.rse.files.ui.resources.SystemEditableRemoteFile. openEditor(SystemEditableRemoteFile.java:1529)
at org.eclipse.rse.files.ui.view.DownloadJob$OpenEditorRunnable .run(DownloadJob.java:53)
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:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3660)
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(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: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Re: Could not open the editor: An unexpected exception was thrown. [message #660327 is a reply to message #592124] Thu, 17 March 2011 17:47 Go to previous messageGo to next message
Pete Nurse is currently offline Pete Nurse
Messages: 2
Registered: March 2011
Junior Member
No Real Name wrote on Tue, 21 September 2010 14:18
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) . . .

I have exactly this problem when I try to open a file. I have Helios Service Release 1 Build id: 20100823-0827 with the latest updates loaded using Help->Check for Updates.

Does anyone know what causes this?

[Updated on: Thu, 17 March 2011 20:48]

Report message to a moderator

Re: Could not open the editor: An unexpected exception was thrown. [message #660338 is a reply to message #660327] Thu, 17 March 2011 21:14 Go to previous message
Pete Nurse is currently offline Pete Nurse
Messages: 2
Registered: March 2011
Junior Member
In the end I completedly cleaned out Eclipse and downloaded the latest version of Helios (eclipse-php-helios-SR2-win32.zip).

I now have Helios Service Release 2 Build id: 20110218-0911 and the problem has disappeared.

I thought that Help->Check for Updates would bring me completely up to date. Clearly not!

Is it recommended that periodically we should replace Eclipse with the latest version? How often?

[Updated on: Thu, 17 March 2011 21:15]

Report message to a moderator

Previous Topic:Debugger - Arrow indicates the position
Next Topic:Hover/content assist/manual info incomplete/inconsistent/doesn't always work
Goto Forum:
  


Current Time: Mon Sep 01 14:42:49 EDT 2014

Powered by FUDForum. Page generated in 0.02204 seconds