Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

BundleException when stopping PMD plug-in #2

Closed
acanda opened this issue Aug 28, 2012 · 0 comments
Closed

BundleException when stopping PMD plug-in #2

acanda opened this issue Aug 28, 2012 · 0 comments
Assignees
Labels

Comments

@acanda
Copy link
Owner

acanda commented Aug 28, 2012

A BundleException is thrown when Eclipse is closed and the PMD plug-in is stopped. This only happens when none of the images from PMDPluginImages were used.

org.osgi.framework.BundleException: Exception in ch.acanda.eclipse.pmd.PMDPlugin.stop() of bundle ch.acanda.eclipse.pmd.core.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:791)
    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:1161)
    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:691)
    at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
    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:601)
    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)
Caused by: java.lang.ExceptionInInitializerError
    at ch.acanda.eclipse.pmd.PMDPlugin.stop(PMDPlugin.java:39)
    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)
    ... 19 more
Caused by: java.lang.NullPointerException
    at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207)
    at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:232)
    at ch.acanda.eclipse.pmd.ui.util.PMDPluginImages.<clinit>(PMDPluginImages.java:33)
    ... 23 more
Root exception:
java.lang.ExceptionInInitializerError
    at ch.acanda.eclipse.pmd.PMDPlugin.stop(PMDPlugin.java:39)
    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:1161)
    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:691)
    at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
    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:601)
    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)
Caused by: java.lang.NullPointerException
    at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207)
    at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:232)
    at ch.acanda.eclipse.pmd.ui.util.PMDPluginImages.<clinit>(PMDPluginImages.java:33)
    ... 23 more
@ghost ghost assigned acanda Aug 28, 2012
@acanda acanda closed this as completed in e8e97ec Sep 23, 2012
acanda added a commit that referenced this issue Feb 6, 2013
A BundleException was thrown when none of the images from
PMDPluginImages was used before the plugin-in is stopped. This change
fixes #2.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant