karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Pieber <anpie...@gmail.com>
Subject Re: Karaf and DOSGi throwing Null pointer Exception
Date Sat, 20 Oct 2012 17:02:42 GMT
@raw tag: seams like gmail does not likes it

@error: well, without debugging the code I would simply guess it's
related to something not correctly shutting down the bundles (since
some parts of the framework might not know to be a bundle). But
independently; why does the exception border you? Do you encounter any
"real" errors by it?

Kind regards,
Andreas

On Thu, Oct 18, 2012 at 11:21 AM, dealbitte <anand.bochum@gmail.com> wrote:
> 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