[
https://issues.jboss.org/browse/JBIDE-9441?page=com.atlassian.jira.plugin...
]
Viacheslav Kabanovich commented on JBIDE-9441:
----------------------------------------------
According to the stack trace, this happens during shutdown, when web kb plugin is stopped
before kb project state is saved. When saving starts, WebKbPlugin.getDefault() returns
null. That never should happen while Eclipse is running, but it is normal during shutdown.
The only way to fix this is to check that result is not null.
NPE during seam.ui tests running
--------------------------------
Key: JBIDE-9441
URL:
https://issues.jboss.org/browse/JBIDE-9441
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common
Affects Versions: 3.3.0.M3
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.M3
{code}
java.lang.NullPointerException
at
org.jboss.tools.jst.web.kb.internal.KbProject.getStorageFile(KbProject.java:429)
at org.jboss.tools.jst.web.kb.internal.KbProject.store(KbProject.java:410)
at org.jboss.tools.jst.web.kb.WebKbPlugin$1.saving(WebKbPlugin.java:62)
at
org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:382)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:191)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:194)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1129)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1108)
at
org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
at
org.eclipse.core.internal.resources.SaveManager.shutdown(SaveManager.java:1390)
at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:604)
at org.eclipse.core.resources.ResourcesPlugin.stop(ResourcesPlugin.java:415)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
at
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
at
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1160)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
at
org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
at
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:690)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:597)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:390)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira