Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » NullPointerException when opening an XML file
NullPointerException when opening an XML file [message #168803] Tue, 09 May 2006 14:23 Go to next message
Eclipse UserFriend
Originally posted by: joshua.foster.lmco.com

The following is the stacktrace that is displayed in the text editor when
I open an XML file. This problem seems to happen at random times. I can
close the editor and open the file in a new one. It usually happens when
the editor is open, but not focused. I have not been able to reproduce it
consistently, but it does happen frequently.

Joshua

java.lang.NullPointerException
at
org.eclipse.ui.texteditor.AbstractTextEditor.getAction(Abstr actTextEditor.java:4023)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeAction BarContributor.getAction(XMLTableTreeActionBarContributor.ja va:210)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeAction BarContributor.setActiveEditor(XMLTableTreeActionBarContribu tor.java:198)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor ActionBarContributor.activateSourcePage(XMLMultiPageEditorAc tionBarContributor.java:54)
at
org.eclipse.wst.xml.ui.internal.tabletree.SourceEditorAction BarContributor.setActivePage(SourceEditorActionBarContributo r.java:168)
at
org.eclipse.ui.part.MultiPageEditorPart.pageChange(MultiPage EditorPart.java:588)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.pageChange(XMLMultiPageEditorPart.java:739)
at
org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiP ageEditorPart.java:689)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.createPages(XMLMultiPageEditorPart.java:509)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:275)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:596)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:372)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:214)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2537)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2470)
at
org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPag e.java:2462)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2447)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2442)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2427)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:275)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:139)
at
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(Open ActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 0)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 4)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:267)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:243)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:306)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 4.open(PackageExplorerPart.java:651)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:811)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:809)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1063)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1162)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:249)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:243)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:283)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: NullPointerException when opening an XML file [message #168811 is a reply to message #168803] Tue, 09 May 2006 14:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joshua.foster.lmco.com

I am running Eclipse RC3, WTP RC2, and the WTP needed plugins.

Joshua
Re: NullPointerException when opening an XML file [message #169867 is a reply to message #168811] Tue, 23 May 2006 15:12 Go to previous message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
Hi Joshua,

Thanks for sharing your problem. A bug report is the best way to report
specific problems to the WTP XML team. Have you opened a bug report?
(https://bugs.eclipse.org/bugs->Report a new bug->WebTools->Web
Tools->wst.xml.)

Lawrence
Previous Topic:xml validation (external xsd)
Next Topic:Web Development Tutorials Needed!!
Goto Forum:
  


Current Time: Wed Nov 26 07:09:43 GMT 2014

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

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