aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Ross (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARIES-967) NPE in org.apache.aries.subsystem.core.internal.BundleEventHook.event() at server shutdown.
Date Wed, 21 Nov 2012 16:35:58 GMT

     [ https://issues.apache.org/jira/browse/ARIES-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Ross resolved ARIES-967.
-----------------------------

    Resolution: Fixed

This occured when the bundle event hook received an uninstalled event for a bundle that was
installed while it was not registered.

Fixed in http://svn.apache.org/viewvc?view=revision&revision=1412179.
                
> NPE in org.apache.aries.subsystem.core.internal.BundleEventHook.event() at server shutdown.
> -------------------------------------------------------------------------------------------
>
>                 Key: ARIES-967
>                 URL: https://issues.apache.org/jira/browse/ARIES-967
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>            Reporter: John Ross
>            Assignee: John Ross
>
> ------Start of DE processing------ = [11/16/12 16:19:34:484 GMT]
> Exception = org.osgi.framework.ServiceException
> Source = ...
> probeid = log-2
> Stack Dump = org.osgi.framework.ServiceException: Exception in org.apache.aries.subsystem.core.internal.BundleEventHook.event()
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHookPrivileged(ServiceRegistry.java:1247)
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHooksPrivileged(ServiceRegistry.java:1222)
> 	at org.eclipse.osgi.framework.internal.core.Framework.notifyEventHooksPrivileged(Framework.java:1603)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1558)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1505)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1500)
> 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.uninstallWorker(AbstractBundle.java:825)
> 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.uninstall(AbstractBundle.java:784)
> 	...
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> 	at java.lang.reflect.Method.invoke(Method.java:611)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:236)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
> 	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:613)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:496)
> 	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
> 	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.disposeImplementationObject(ImmediateComponentManager.java:272)
> 	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.deleteComponent(ImmediateComponentManager.java:152)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$State.doDeactivate(AbstractComponentManager.java:1305)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.dispose(AbstractComponentManager.java:1617)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.disposeInternal(AbstractComponentManager.java:574)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:404)
> 	at org.apache.felix.scr.impl.config.ImmediateComponentHolder.disposeComponents(ImmediateComponentHolder.java:371)
> 	at org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:320)
> 	at org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:316)
> 	at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:183)
> 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
> 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> 	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1569)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1505)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1500)
> 	at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:506)
> 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566)
> 	at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1207)
> 	at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592)
> 	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:693)
> 	at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600)
> 	at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:261)
> 	at java.lang.Thread.run(Thread.java:770)
> Caused by: java.lang.NullPointerException
> 	at org.apache.aries.subsystem.core.internal.BundleResourceInstaller$BundleConstituent.equals(BundleResourceInstaller.java:97)
> 	at java.util.ArrayList.contains(ArrayList.java:305)
> 	at java.util.Collections$UnmodifiableCollection.contains(Collections.java:992)
> 	at org.apache.aries.subsystem.core.internal.Subsystems.getSubsystemsByConstituent(Subsystems.java:189)
> 	at org.apache.aries.subsystem.core.internal.BundleEventHook.handleUninstalledEvent(BundleEventHook.java:101)
> 	at org.apache.aries.subsystem.core.internal.BundleEventHook.event(BundleEventHook.java:46)
> 	at org.eclipse.osgi.framework.internal.core.Framework$10.call(Framework.java:1606)
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHookPrivileged(ServiceRegistry.java:1239)
> 	... 45 more
> Dump of callerThis
> Object type = ...
>   strings[0] = "FrameworkEvent ERROR"
>   strings[1] = ...
>   strings[2] = "org.osgi.framework.ServiceException: Exception in org.apache.aries.subsystem.core.internal.BundleEventHook.event()"
>   strings[3] = ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message