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] Closed: (FELIX-2090) Multiple concurrency issues under heavy "stop/start" load
Date Mon, 16 Aug 2010 12:12:20 GMT

     [ https://issues.apache.org/jira/browse/FELIX-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Felix Meschberger closed FELIX-2090.

Apache Felix Declarative Services 1.6.0 has been released. The issues are now closed.

> Multiple concurrency issues under heavy "stop/start" load
> ---------------------------------------------------------
>                 Key: FELIX-2090
>                 URL: https://issues.apache.org/jira/browse/FELIX-2090
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions:  scr-1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For:  scr-1.6.0
> Under certain circumstances -- mostly an update of much of the system induced by tools
like FileInstall or Sling JCR Install -- concurrency issues between starting and stopping
components may happen and cause all sorts of error messages:
> (1) Probably Activator method call failure, cannot be logged, because the log method
itself threw an NPE
> 12.02.2010 19:08:56.882 *ERROR* [SCR Component Actor] org.apache.felix.scr Unexpected
problem executing task Enable Component: org.apache.sling.engine.impl.SlingMainServlet (17)
(java.lang.NullPointerException) java.lang.NullPointerException
> 	at org.apache.felix.scr.impl.BundleComponentActivator.log(BundleComponentActivator.java:590)
> 	at org.apache.felix.scr.impl.BundleComponentActivator.log(BundleComponentActivator.java:565)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.log(AbstractComponentManager.java:496)
> 	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:232)
> (2) After calling the activate method, the service registration fails because the bundle
has in the meantime been stopped (or is being stopped):
> 12.02.2010 19:08:57.882 *ERROR* [SCR Component Actor] org.apache.felix.scr Unexpected
problem executing task Enable Component: org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngineFactory
(27) (java.lang.IllegalStateException: Can only register services while bundle is active or
activating.) java.lang.IllegalStateException: Can only register services while bundle is active
or activating.
> 	at org.apache.felix.framework.Felix.registerService(Felix.java:2681)
> 	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:252)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:414)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:425)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
> 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:298)

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

View raw message