Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-6603

NullPointerException caused by ScanningPluginLoader

    XMLWordPrintable

Details

    Description

      Sometimes during application shutdown (or restore) following exception can be seen:

      ERROR - There was an exception thrown trying to dispatch event [com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent@1481002d] from the invoker [SingleParameterMethodListenerInvoker{method=publ
      ic void com.atlassian.plugin.loaders.ScanningPluginLoader.onShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent), listener=com.atlassian.plugin.loaders.BundledPluginLoader@4a716a73}]
      java.lang.RuntimeException: java.lang.NullPointerException
              at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:39) [atlassian-event-3.1.1.jar:?]
              at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:38) [atlassian-event-3.1.1.jar:?]
              at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) [guava-18.0.jar:?]
              at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:88) [atlassian-event-3.1.1.jar:?]
              at com.atlassian.event.internal.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:222) [atlassian-event-3.1.1.jar:?]
              at com.atlassian.event.internal.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:95) [atlassian-event-3.1.1.jar:?]
              at com.atlassian.fisheye.event.FisheyeEventPublisher$EventPublication.publish(FisheyeEventPublisher.java:63) [fisheye.jar:?]
              at com.atlassian.fisheye.event.FisheyeEventPublisher.publish(FisheyeEventPublisher.java:35) [fisheye.jar:?]
              at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:83) [atlassian-plugins-core-4.4.0.jar:?]
              at com.atlassian.plugin.manager.DefaultPluginManager.broadcastIgnoreError(DefaultPluginManager.java:2102) [atlassian-plugins-core-4.4.0.jar:?]
              at com.atlassian.plugin.manager.DefaultPluginManager.shutdown(DefaultPluginManager.java:717) [atlassian-plugins-core-4.4.0.jar:?]
              at com.atlassian.fisheye.plugin.DelegatingFisheyePluginManager.onContextClosedEvent(DelegatingFisheyePluginManager.java:212) [fisheye.jar:?]
              at com.cenqua.fisheye.config.SpringContext.onApplicationEvent(SpringContext.java:40) [fisheye.jar:?]
              at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98) [spring-context-4.0.9.RELEASE.jar:4.0.9.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333) [spring-context-4.0.9.RELEASE.jar:4.0.9.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:882) [spring-context-4.0.9.RELEASE.jar:4.0.9.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:843) [spring-context-4.0.9.RELEASE.jar:4.0.9.RELEASE]
              at com.cenqua.fisheye.ctl.Restore.destroyApplicationContext(Restore.java:357) [fisheye.jar:?]
              at com.atlassian.crucible.migration.item.ActiveObjectsBackup$ActiveObjectsRestorer.restore(ActiveObjectsBackup.java:108) [fisheye.jar:?]
              at com.cenqua.fisheye.ctl.Restore.run(Restore.java:187) [fisheye.jar:?]
              at com.cenqua.fisheye.ctl.Restore.main(Restore.java:261) [fisheye.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_66]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_66]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_66]
              at java.lang.reflect.Method.invoke(Method.java:497) [?:1.8.0_66]
              at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:101) [fisheyeboot.jar:?]
              at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:44) [fisheyeboot.jar:?]
      Caused by: java.lang.NullPointerException
              at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.removeBundleListener(FelixOsgiContainerManager.java:506) [atlassian-plugins-osgi-4.4.0.jar:?]
              at com.atlassian.plugin.osgi.factory.OsgiBundlePlugin.uninstallInternal(OsgiBundlePlugin.java:276) [atlassian-plugins-osgi-4.4.0.jar:?]
              at com.atlassian.plugin.impl.AbstractPlugin.uninstall(AbstractPlugin.java:452) [atlassian-plugins-core-4.4.0.jar:?]
              at com.atlassian.plugin.loaders.ScanningPluginLoader.onShutdown(ScanningPluginLoader.java:247) [atlassian-plugins-core-4.4.0.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_66]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_66]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_66]
              at java.lang.reflect.Method.invoke(Method.java:497) [?:1.8.0_66]
              at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:32) [atlassian-event-3.1.1.jar:?]
      

      The exception can be safely ignored.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              czawadka@atlassian.com Cezary Zawadka
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: