[
https://issues.apache.org/jira/browse/FELIX-5953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brent Daniel closed FELIX-5953.
-------------------------------
Resolution: Duplicate
> Circular reference error
> ------------------------
>
> Key: FELIX-5953
> URL: https://issues.apache.org/jira/browse/FELIX-5953
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-2.1.6
> Reporter: Brent Daniel
> Priority: Minor
>
> If the call to obtainStateLock SingleComponentManager.getService doesn't
> succeed, an IllegalStateException will be thrown which will result in
> ComponentRegistry.leaveCreate() not being called. That leaves circularInfos
> in ComponentRegistry in an invalid state which will result in the error
> "Circular reference detected trying to get service".
> We typically see this when a component has a long running activator running
> in one thread and another thread tries to get a service from a reference and
> ends up eventually timing out in SingleComponentManager.getService because
> the other thread holds the lock.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)