You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2016/06/24 08:16:16 UTC

[jira] [Commented] (FELIX-5284) java.lang.IllegalStateException: Invalid BundleContext after uninstall of a bundle

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

Antonio Sanso commented on FELIX-5284:
--------------------------------------

{code}
24.06.2016 10:00:30.997 *ERROR* [FelixDispatchQueue] org.apache.sling.scripting.core FrameworkEvent ERROR (java.lang.IllegalStateException: The bundle is uninstalled.)
java.lang.IllegalStateException: The bundle is uninstalled.
	at org.apache.felix.framework.Felix.getBundleEntry(Felix.java:1741)
	at org.apache.felix.framework.BundleImpl.getEntry(BundleImpl.java:291)
	at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.bundleChanged(ScriptEngineManagerFactory.java:181)
	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)
	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)
	at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:1148)
	at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:55)
	at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:103)
	at java.lang.Thread.run(Thread.java:745)
24.06.2016 10:00:30.997 *ERROR* [FelixDispatchQueue] org.apache.sling.adapter FrameworkEvent ERROR (java.lang.IllegalStateException: The bundle is uninstalled.)
java.lang.IllegalStateException: The bundle is uninstalled.
	at org.apache.felix.framework.Felix.getBundleResources(Felix.java:1704)
	at org.apache.felix.framework.BundleImpl.getResources(BundleImpl.java:689)
	at org.apache.sling.adapter.internal.AdapterWebConsolePlugin.addBundle(AdapterWebConsolePlugin.java:143)
	at org.apache.sling.adapter.internal.AdapterWebConsolePlugin.bundleChanged(AdapterWebConsolePlugin.java:124)
	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)
	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)
	at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:1148)
	at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:55)
	at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:103)
	at java.lang.Thread.run(Thread.java:745)
24.06.2016 10:00:30.997 *ERROR* [FelixDispatchQueue] day-commons-gfx FrameworkEvent ERROR (java.lang.IllegalStateException: The bundle is uninstalled.)
java.lang.IllegalStateException: The bundle is uninstalled.
	at org.apache.felix.framework.Felix.getBundleResource(Felix.java:1665)
	at org.apache.felix.framework.BundleImpl.getResource(BundleImpl.java:666)
	at com.day.image.internal.Activator$BundleProxyClassLoader.hasResource(Activator.java:226)
	at com.day.image.internal.Activator.loadProviders(Activator.java:175)
	at com.day.image.internal.Activator.registerImageIOProvider(Activator.java:117)
	at com.day.image.internal.Activator.bundleChanged(Activator.java:96)
	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)
	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)
	at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:1148)
	at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:55)
	at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:103)
	at java.lang.Thread.run(Thread.java:745)
24.06.2016 10:00:36.540 *ERROR* [qtp252760725-1506] org.apache.felix.http.jetty Exception while processing request to /system/console/components (java.lang.IllegalStateException: Invalid BundleContext.)
java.lang.IllegalStateException: Invalid BundleContext.
	at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)
	at org.apache.felix.framework.BundleContextImpl.getBundle(BundleContextImpl.java:114)
	at org.apache.felix.scr.impl.runtime.ServiceComponentRuntimeImpl.bundleToDTO(ServiceComponentRuntimeImpl.java:345)
	at org.apache.felix.scr.impl.runtime.ServiceComponentRuntimeImpl.holderToDescription(ServiceComponentRuntimeImpl.java:241)
	at org.apache.felix.scr.impl.runtime.ServiceComponentRuntimeImpl.getComponentDescriptionDTOs(ServiceComponentRuntimeImpl.java:79)
	at org.apache.felix.webconsole.plugins.ds.internal.WebConsolePlugin$RequestInfo.<init>(WebConsolePlugin.java:615)
	at org.apache.felix.webconsole.plugins.ds.internal.WebConsolePlugin.doGet(WebConsolePlugin.java:177)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:567)
	at org.apache.felix.webconsole.internal.servlet.OsgiManager$3.run(OsgiManager.java:465)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:461)
	at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:85)
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:79)
	at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:129)
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
	at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
	at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89)
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
	at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:290)
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
	at org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:116)
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
	at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)
	at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:124)
	at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:61)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:499)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
	at java.lang.Thread.run(Thread.java:745)
{code}

> java.lang.IllegalStateException: Invalid BundleContext after uninstall of a bundle
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-5284
>                 URL: https://issues.apache.org/jira/browse/FELIX-5284
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>            Reporter: Antonio Sanso
>         Attachments: org.apache.felix.examples.spellcheckscr-0.9.0-SNAPSHOT.jar
>
>
> If a bundle is uninstalled right in the activator a lâ
> {code}
> java.lang.IllegalStateException: Invalid BundleContext after uninstall of a bundle
> {code}
> in a bundle that use the scr plugin there is a 
> {{java.lang.IllegalStateException: Invalid BundleContext after uninstall of a bundle}} while accessing the components tab of the Felix consolo aka {{/system/components}}
> you can find a POC in [0] and I will also attach the bundle
> [0] https://github.com/apache/felix/tree/trunk/examples/spellcheckscr



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)