felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2230) NPE deactivating service during fw shutdown
Date Wed, 24 Mar 2010 10:12:27 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849135#action_12849135
] 

Felix Meschberger commented on FELIX-2230:
------------------------------------------

Deployed SNAPSHOT build 1.4.1-20100324.100414-2 containing the fix to this issue.

> NPE deactivating service during fw shutdown
> -------------------------------------------
>
>                 Key: FELIX-2230
>                 URL: https://issues.apache.org/jira/browse/FELIX-2230
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions:  scr-1.4.0
>         Environment: Windows XP
>            Reporter: Alex Mulholland
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For:  scr-1.4.2
>
>
> This is seen intermittently in an automated test.  The f/w is being started then quickly
stopped through the osgi console (perhaps on this occasion before the start had fully completed).
 Note this is running felix DS 1.4.0.rev 924787 with the equinox f/w.  These are the OSGi
messages relating to the bundle that has the error (there are many additional bundles in this
test):
> Info: OSGI- [23 Mar 2010 10:16:11.187 EDT] BundleEvent RESOLVED Bundle:com.ibm.ws.httpservice(id=27)
{3}
> Info: OSGI- [23 Mar 2010 10:16:11.203 EDT] BundleEvent INSTALLED Bundle:com.ibm.ws.httpservice(id=27)
{3}
> Info: OSGI- [23 Mar 2010 10:16:11.609 EDT] ServiceEvent REGISTERED Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[com.ibm.ws.httpsvc.session.internal.SessionManager](id=77, pid=com.ibm.ws.httpservice.session)
> Info: OSGI- [23 Mar 2010 10:16:11.609 EDT] ServiceEvent REGISTERED Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[com.ibm.websphere.event.EventHandler](id=78, pid=null)
> Info: OSGI- [23 Mar 2010 10:16:11.625 EDT] BundleEvent STARTED Bundle:com.ibm.ws.httpservice(id=27)
{3}
> Info: OSGI- [23 Mar 2010 10:16:12.109 EDT] ServiceEvent REGISTERED Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[com.ibm.websphere.http.HttpContainer, com.ibm.ws.httpsvc.internal.HttpServiceContainer](id=82,
pid=com.ibm.ws.httpservice)
> Info: OSGI- [23 Mar 2010 10:16:12.421 EDT] ServiceEvent REGISTERED Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[com.ibm.websphere.event.EventHandler](id=101, pid=null)
> Info: OSGI- [23 Mar 2010 10:16:12.421 EDT] ServiceEvent REGISTERED Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[org.osgi.service.http.HttpService, org.apache.felix.http.api.ExtHttpService](id=102,
pid=null)
> Info: OSGI- [23 Mar 2010 10:16:12.625 EDT] ServiceEvent REGISTERED Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[org.osgi.service.http.HttpContext](id=104, pid=null)
> Info: OSGI- [23 Mar 2010 10:16:17.265 EDT] ServiceEvent UNREGISTERING Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[com.ibm.websphere.event.EventHandler](id=101, pid=null)
> Info: OSGI- [23 Mar 2010 10:16:17.265 EDT] ServiceEvent UNREGISTERING Bundle:com.ibm.ws.httpservice(id=27)
ServiceRef:[org.osgi.service.http.HttpService, org.apache.felix.http.api.ExtHttpService](id=102,
pid=null)
> Error: OSGI- [23 Mar 2010 10:16:17.265 EDT] [OSGIHttpService] The deactivate method could
not be called Bundle:com.ibm.ws.httpservice(id=27) java.lang.NullPointerException
> OSGI- [23 Mar 2010 10:16:17.265 EDT] [OSGIHttpService] The deactivate method could not
be called Bundle:com.ibm.ws.httpservice(id=27) java.lang.NullPointerException
> And the exception stack:
> Stack Dump = java.lang.NullPointerException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:600)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:213)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
> 	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434)
> 	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:138)
> 	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.disposeImplementationObject(ImmediateComponentManager.java:260)
> 	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.deleteComponent(ImmediateComponentManager.java:135)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractComponentManager.java:1066)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:303)
> 	at org.apache.felix.scr.impl.manager.DependencyManager.serviceRemoved(DependencyManager.java:343)
> 	at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:251)
> 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
> 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
> 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
> 	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterComponentService(AbstractComponentManager.java:429)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractComponentManager.java:1065)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.disposeInternal(AbstractComponentManager.java:322)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:185)
> 	at org.apache.felix.scr.impl.config.ConfiguredComponentHolder.disposeComponents(ConfiguredComponentHolder.java:275)
> 	at org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:319)
> 	at org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:277)
> 	at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:178)
> 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:919)
> 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
> 	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350)
> 	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301)
> 	at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:471)
> 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:546)
> 	at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1098)
> 	at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:593)
> 	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:261)
> 	at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:216)
> 	at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
> 	at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:685)
> 	at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._shutdown(FrameworkCommandProvider.java:225)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:600)
> 	at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
> 	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
> 	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
> 	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
> 	at java.lang.Thread.run(Thread.java:736)
> Is there any other data I can provide?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message