You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Christophe Lombart <ch...@gmail.com> on 2008/06/16 21:39:46 UTC

Exception during Sling shutdown

I am making some tests with the current Sling code and I got the following
exception when I shutdown Sling from the console.
I'm just wondering if it is a well known issue. I didn't find something like
this in markmail. So, I can create a new jira issue if needed.
I'm running on XP.

br,
Christophe


ERROR: EventDispatcher: Error during dispatch.
(java.lang.IllegalStateException: Invalid BundleContext.)
java.lang.IllegalStateException: Invalid BundleContext.
        at
org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453)
        at
org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:422)
        at
org.osgi.util.tracker.ServiceTracker.removedService(ServiceTracker.java:422)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.untrack(ServiceTracker.java:1117)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:948)
        at
org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765)
        at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623)
        at
org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554)
        at
org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3612)
        at org.apache.felix.framework.Felix.access$000(Felix.java:36)
        at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:626)
        at
org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)
        at
org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96)
        at
org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:112)
        at
org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:135)
        at org.apache.felix.framework.Felix._stopBundle(Felix.java:2034)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:1954)
        at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1141)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
        at java.lang.Thread.run(Unknown Source)

Re: Exception during Sling shutdown

Posted by Christophe Lombart <ch...@gmail.com>.
ok thanks I will do it later today

Thanks


On Wed, Jun 25, 2008 at 11:03 AM, Bertrand Delacretaz <
bdelacretaz@apache.org> wrote:

> Hi Christophe,
>
> If the problem below is still present, please create a JIRA issue so
> that we don't forget about it.
>
> -Bertrand
>
> On Mon, Jun 16, 2008 at 9:39 PM, Christophe Lombart
> <ch...@gmail.com> wrote:
> > I am making some tests with the current Sling code and I got the
> following
> > exception when I shutdown Sling from the console.
> > I'm just wondering if it is a well known issue. I didn't find something
> like
> > this in markmail. So, I can create a new jira issue if needed.
> > I'm running on XP.
> >
> > br,
> > Christophe
> >
> >
> > ERROR: EventDispatcher: Error during dispatch.
> > (java.lang.IllegalStateException: Invalid BundleContext.)
> > java.lang.IllegalStateException: Invalid BundleContext.
> >        at
> >
> org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453)
> >        at
> >
> org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:422)
> >        at
> >
> org.osgi.util.tracker.ServiceTracker.removedService(ServiceTracker.java:422)
> >        at
> >
> org.osgi.util.tracker.ServiceTracker$Tracked.untrack(ServiceTracker.java:1117)
> >        at
> >
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:948)
> >        at
> >
> org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765)
> >        at
> >
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623)
> >        at
> >
> org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554)
> >        at
> > org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3612)
> >        at org.apache.felix.framework.Felix.access$000(Felix.java:36)
> >        at
> org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:626)
> >        at
> >
> org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)
> >        at
> >
> org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96)
> >        at
> >
> org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:112)
> >        at
> >
> org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:135)
> >        at org.apache.felix.framework.Felix._stopBundle(Felix.java:2034)
> >        at org.apache.felix.framework.Felix.stopBundle(Felix.java:1954)
> >        at
> > org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1141)
> >        at
> > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
> >        at java.lang.Thread.run(Unknown Source)
> >
>
>
>
> --
>  Bertrand Delacretaz
>  http://www.codeconsult.ch
>

Re: Exception during Sling shutdown

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Christophe,

If the problem below is still present, please create a JIRA issue so
that we don't forget about it.

-Bertrand

On Mon, Jun 16, 2008 at 9:39 PM, Christophe Lombart
<ch...@gmail.com> wrote:
> I am making some tests with the current Sling code and I got the following
> exception when I shutdown Sling from the console.
> I'm just wondering if it is a well known issue. I didn't find something like
> this in markmail. So, I can create a new jira issue if needed.
> I'm running on XP.
>
> br,
> Christophe
>
>
> ERROR: EventDispatcher: Error during dispatch.
> (java.lang.IllegalStateException: Invalid BundleContext.)
> java.lang.IllegalStateException: Invalid BundleContext.
>        at
> org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453)
>        at
> org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:422)
>        at
> org.osgi.util.tracker.ServiceTracker.removedService(ServiceTracker.java:422)
>        at
> org.osgi.util.tracker.ServiceTracker$Tracked.untrack(ServiceTracker.java:1117)
>        at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:948)
>        at
> org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765)
>        at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623)
>        at
> org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554)
>        at
> org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3612)
>        at org.apache.felix.framework.Felix.access$000(Felix.java:36)
>        at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:626)
>        at
> org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)
>        at
> org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96)
>        at
> org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:112)
>        at
> org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:135)
>        at org.apache.felix.framework.Felix._stopBundle(Felix.java:2034)
>        at org.apache.felix.framework.Felix.stopBundle(Felix.java:1954)
>        at
> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1141)
>        at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
>        at java.lang.Thread.run(Unknown Source)
>



-- 
 Bertrand Delacretaz
 http://www.codeconsult.ch