karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dealbitte <anand.boc...@gmail.com>
Subject Re: Karaf and DOSGi throwing Null pointer Exception
Date Thu, 18 Oct 2012 09:21:17 GMT
Hi,

I believe you are not able to see text between the tag  in the email. I
pasted the exception within raw tags: Anyways, here again:

.... installed DOSGi Single-Bundle Distribution (1.3.1) from maven as
follows: 

install -s
mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3.1

.......... But when I exit karaf instance (by pressing Ctrl+D), I got the
following exception:
It is not clear to me, why this exception occurs. Any help towards this is
appreciated. 

karaf@test-instance> ^D
ERROR: Bundle cxf-dosgi-ri-singlebundle-distribution [50] EventDispatcher:
Error during dispatch. (java.lang.NullPointerException)
java.lang.NullPointerException
        at
org.apache.cxf.dosgi.topologymanager.TopologyManager.notifyListenersOfRemovalIfAppropriate(TopologyManager.java:372)
        at
org.apache.cxf.dosgi.topologymanager.TopologyManager.notifyListenersOfRemovalIfAppropriate(TopologyManager.java:217)
        at
org.apache.cxf.dosgi.topologymanager.TopologyManager.removeService(TopologyManager.java:201)
        at
org.apache.cxf.dosgi.topologymanager.ServiceListenerImpl.serviceChanged(ServiceListenerImpl.java:68)
        at
org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)
        at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)
        at
org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
        at
org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3890)
        at org.apache.felix.framework.Felix.access$000(Felix.java:79)
        at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:728)
        at
org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:135)
        at
org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:129)
        at
org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:178)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2296)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1215)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
        at java.lang.Thread.run(Thread.java:662)
ERROR: Bundle cxf-dosgi-ri-singlebundle-distribution [50] Error stopping
bundle. (java.lang.NullPointerException)
java.lang.NullPointerException
        at
org.apache.cxf.dosgi.topologymanager.TopologyManager.removeRemoteServiceAdmin(TopologyManager.java:139)
        at
org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList.removeRemoteServiceAdmin(RemoteServiceAdminList.java:83)
        at
org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList$1.removedService(RemoteServiceAdminList.java:68)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:922)
        at
org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:351)
        at
org.osgi.util.tracker.ServiceTracker.close(ServiceTracker.java:403)
        at
org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList.stop(RemoteServiceAdminList.java:99)
        at
org.apache.cxf.dosgi.topologymanager.Activator.stop(Activator.java:83)
        at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.stopEmbeddedActivators(AggregatedActivator.java:137)
        at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.stop(AggregatedActivator.java:51)
        at
org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:651)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2278)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1215)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
        at java.lang.Thread.run(Thread.java:662)
ERROR: Bundle cxf-dosgi-ri-singlebundle-distribution [50] Error stopping
mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3.1
(org.osgi.framework.BundleException: Activator stop error in bundle
cxf-dosgi-ri-singlebundle-distribution [50].)
java.lang.NullPointerException
        at
org.apache.cxf.dosgi.topologymanager.TopologyManager.removeRemoteServiceAdmin(TopologyManager.java:139)
        at
org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList.removeRemoteServiceAdmin(RemoteServiceAdminList.java:83)
        at
org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList$1.removedService(RemoteServiceAdminList.java:68)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:922)
        at
org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:351)
        at
org.osgi.util.tracker.ServiceTracker.close(ServiceTracker.java:403)
        at
org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList.stop(RemoteServiceAdminList.java:99)
        at
org.apache.cxf.dosgi.topologymanager.Activator.stop(Activator.java:83)
        at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.stopEmbeddedActivators(AggregatedActivator.java:137)
        at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.stop(AggregatedActivator.java:51)
        at
org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:651)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2278)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1215)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
        at java.lang.Thread.run(Thread.java:662)



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-and-DOSGi-throwing-Null-pointer-Exception-tp4026408p4026464.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message