Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.1.0, 7.1.8, 7.2.2, 7.1.9, 7.2.7
-
7.01
-
6
-
Severity 3 - Minor
-
5
-
Description
Summary
JIRA throws NPE in OSGi framework removeBundleListener method during shutdown
Steps to Reproduce
- Start JIRA
- Apply license
Expected Results
Clean shutdown, no erros
Actual Results
The below exception is thrown in the log file:
2016-08-08 15:17:03,500 localhost-startStop-2 ERROR [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent@52c7e535] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.plugin.loaders.ScanningPluginLoader.onShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent), listener=com.atlassian.plugin.loaders.BundledPluginLoader@a1d2e80}] java.lang.RuntimeException: java.lang.NullPointerException at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:50) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79) at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:73) at com.atlassian.plugin.manager.DefaultPluginManager.broadcastIgnoreError(DefaultPluginManager.java:2081) at com.atlassian.plugin.manager.DefaultPluginManager.shutdown(DefaultPluginManager.java:704) at com.atlassian.jira.ComponentManager$PluginSystem.shutdown(ComponentManager.java:638) at com.atlassian.jira.ComponentManager.stop(ComponentManager.java:292) at com.atlassian.jira.upgrade.PluginSystemLauncher.stop(PluginSystemLauncher.java:130) at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:209) at com.atlassian.jira.startup.LauncherContextListener.contextDestroyed(LauncherContextListener.java:161) ... 5 filtered at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.removeBundleListener(FelixOsgiContainerManager.java:506) at com.atlassian.plugin.osgi.factory.OsgiBundlePlugin.uninstallInternal(OsgiBundlePlugin.java:276) at com.atlassian.plugin.impl.AbstractPlugin.uninstall(AbstractPlugin.java:451) at com.atlassian.plugin.loaders.ScanningPluginLoader.onShutdown(ScanningPluginLoader.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... 1 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) ... 22 more
Notes
(Optional - If Necessary)
Workaround
You can ignore this issue.