[ https://issues.apache.org/jira/browse/FELIX-5953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16640743#comment-16640743 ]
Brent Daniel commented on FELIX-5953: ------------------------------------- Ah, yes. It's a separate issue but that code change will resolve this as well. Thanks. > 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)