Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » NPE when switching to XHTML file
NPE when switching to XHTML file [message #234162] Mon, 27 July 2009 14:27
Michael Giroux is currently offline Michael GirouxFriend
Messages: 78
Registered: July 2009
Location: Phoenix, AZ
Member
Using Eclipse 3.4.2 J2EE install. All works well for a few hours, then
after a while of running, I start getting "Unhandled event loop
exceptions" due to a NPE. The problem always occurs when I switch active
editor to one of the open xhtml documents.

Shutting down Eclipse and restarting solves the problem for another couple
of hours.

It is difficult to reproduce, but the problem seems to be related to
running eclipse for a long time.
1. start eclipse
2. open several files, some java files, some xhtml files
3. modify files, save changes, do builds, start/stop the Tomcat server to
test

repeat steps 2,3 several times. Eventually, eclipse starts reporting the
Unhandled event loop exceptions on files that are already open, and I have
been able to edit these same files in the same instance of eclipse
previously.


-- Error Details --
Date: Mon Jul 27 07:08:12 GMT-07:00 2009
Message: Unhandled event loop exception
Severity: Error
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=M20090211-1700
java.version=1.6.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -showlocation Trunk
Command-line arguments: -os win32 -ws win32 -arch x86 -clean -data
c:/EclipseWorkspace/Trunk -showlocation Trunk


Exception Stack Trace:
java.lang.NullPointerException
at
org.eclipse.jst.pagedesigner.editors.actions.DesignPageActio nContributor.setActiveEditor(DesignPageActionContributor.jav a:199)
at
org.eclipse.jst.pagedesigner.editors.actions.PageDesignerAct ionBarContributor2.activateSourcePage(PageDesignerActionBarC ontributor2.java:290)
at
org.eclipse.jst.pagedesigner.editors.actions.PageDesignerAct ionBarContributor2.setInnerActivePage(PageDesignerActionBarC ontributor2.java:212)
at
org.eclipse.jst.pagedesigner.ui.common.sash.NestedEditorActi onBarContributor.setActivePage(NestedEditorActionBarContribu tor.java:34)
at
org.eclipse.jst.pagedesigner.ui.common.sash.SashEditorPart.a ctiveEditorChanged(SashEditorPart.java:373)
at
org.eclipse.jst.pagedesigner.ui.common.sash.SashEditorPart$1 .handleEvent(SashEditorPart.java:99)
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.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:13 53)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java: 2443)
at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2266)
at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:441 4)
at org.eclipse.swt.widgets.Canvas.WM_SETFOCUS(Canvas.java:443)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3855 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528 )
at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
at org.eclipse.swt.widgets.Control.forceFocus(Control.java:974)
at org.eclipse.swt.widgets.Control.setSavedFocus(Control.java:3 080)
at org.eclipse.swt.widgets.Decorations.restoreFocus(Decorations .java:808)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations. java:1617)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2013)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3784 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1576)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528 )
at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method)
at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:6 63)
at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:657)
at org.eclipse.swt.widgets.Widget.release(Widget.java:814)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java :446)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:674)
at org.eclipse.jface.window.Window.close(Window.java:335)
at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:979)
at org.eclipse.jface.dialogs.TrayDialog.close(TrayDialog.java:1 43)
at org.eclipse.jface.dialogs.Dialog.okPressed(Dialog.java:940)
at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:4 72)
at
org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager$I nternalDialog.buttonPressed(WorkbenchStatusDialogManager.jav a:266)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.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.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
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:386)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Previous Topic:Debugging JSP's in Eclipse/WebSphere 6.1
Next Topic:How to change publishing setting to "Never publish automatically" by default when providin
Goto Forum:
  


Current Time: Sat Dec 20 20:22:13 GMT 2014

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

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