You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Ferry Huberts <ma...@hupie.com> on 2016/05/12 09:42:16 UTC

DS: invalid/alarmist circular reference log

Hi,

I'm seeing log lines like:

> [some.component(17)] Circular reference detected, getService returning null


These are invalid for my application since one end of the relation is 
mandatory and the other end is optional.

DS should not complain in this way when at least one end of the relation 
is optional.

(I can't file an issue on this since JIRA seems to be in some kind of 
lockdown)


-- 
Ferry Huberts

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: DS: invalid/alarmist circular reference log

Posted by Ferry Huberts <ma...@hupie.com>.
The mandatory reference:
>   VpnRemotes vpnRemotes = null;
>
>   @Reference(policyOption = ReferencePolicyOption.GREEDY)
>   public void setVpnRemotes(final VpnRemotes vpnRemotes) {
>     this.vpnRemotes = vpnRemotes;
>   }


The optional reference:
>   private final Set<VpnRemotesClient> clients = new CopyOnWriteArraySet<>();
>
>   @Reference(policyOption = ReferencePolicyOption.GREEDY, policy = ReferencePolicy.DYNAMIC,
>       cardinality = ReferenceCardinality.MULTIPLE)
>   public void addVPNRemotesClient(final VpnRemotesClient client) {
>     this.clients.add(client);
>   }
>
>   public void removeVPNRemotesClient(final VpnRemotesClient client) {
>     this.clients.remove(client);
>   }


F.



On 12/05/16 18:09, David Jencks wrote:
> Can you verify that your case is the same as Victor\u2019s?  All the circular references I encounter work fine, if there are 2 different broken cases that would be good to know when investigating Victor\u2019s case.
>
> thanks
> david jencks
>
>> On May 12, 2016, at 2:58 AM, Ferry Huberts <ma...@hupie.com> wrote:
>>
>>
>>
>> On 12/05/16 11:55, Victor Antonovich wrote:
>>> 12.05.2016 12:42, Ferry Huberts wrote:
>>>> Hi,
>>>>
>>>> I'm seeing log lines like:
>>>>
>>>>> [some.component(17)] Circular reference detected, getService returning
>>>>> null
>>>>
>>>>
>>>> These are invalid for my application since one end of the relation is
>>>> mandatory and the other end is optional.
>>>>
>>>> DS should not complain in this way when at least one end of the relation
>>>> is optional.
>>>>
>>>> (I can't file an issue on this since JIRA seems to be in some kind of
>>>> lockdown)
>>>
>>> Fyi, this issue already has been filed a while ago:
>>> https://issues.apache.org/jira/browse/FELIX-4417
>>>
>>
>> ok, tnx
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org <ma...@felix.apache.org>
>> For additional commands, e-mail: users-help@felix.apache.org <ma...@felix.apache.org>
>

-- 
Ferry Huberts

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: DS: invalid/alarmist circular reference log

Posted by David Jencks <da...@yahoo.com.INVALID>.
Can you verify that your case is the same as Victor’s?  All the circular references I encounter work fine, if there are 2 different broken cases that would be good to know when investigating Victor’s case.

thanks
david jencks

> On May 12, 2016, at 2:58 AM, Ferry Huberts <ma...@hupie.com> wrote:
> 
> 
> 
> On 12/05/16 11:55, Victor Antonovich wrote:
>> 12.05.2016 12:42, Ferry Huberts wrote:
>>> Hi,
>>> 
>>> I'm seeing log lines like:
>>> 
>>>> [some.component(17)] Circular reference detected, getService returning
>>>> null
>>> 
>>> 
>>> These are invalid for my application since one end of the relation is
>>> mandatory and the other end is optional.
>>> 
>>> DS should not complain in this way when at least one end of the relation
>>> is optional.
>>> 
>>> (I can't file an issue on this since JIRA seems to be in some kind of
>>> lockdown)
>> 
>> Fyi, this issue already has been filed a while ago:
>> https://issues.apache.org/jira/browse/FELIX-4417
>> 
> 
> ok, tnx
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org <ma...@felix.apache.org>
> For additional commands, e-mail: users-help@felix.apache.org <ma...@felix.apache.org>

Re: DS: invalid/alarmist circular reference log

Posted by Ferry Huberts <ma...@hupie.com>.

On 12/05/16 11:55, Victor Antonovich wrote:
> 12.05.2016 12:42, Ferry Huberts wrote:
>> Hi,
>>
>> I'm seeing log lines like:
>>
>>> [some.component(17)] Circular reference detected, getService returning
>>> null
>>
>>
>> These are invalid for my application since one end of the relation is
>> mandatory and the other end is optional.
>>
>> DS should not complain in this way when at least one end of the relation
>> is optional.
>>
>> (I can't file an issue on this since JIRA seems to be in some kind of
>> lockdown)
>
> Fyi, this issue already has been filed a while ago:
> https://issues.apache.org/jira/browse/FELIX-4417
>

ok, tnx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: DS: invalid/alarmist circular reference log

Posted by Victor Antonovich <v....@gmail.com>.
12.05.2016 12:42, Ferry Huberts wrote:
> Hi,
> 
> I'm seeing log lines like:
> 
>> [some.component(17)] Circular reference detected, getService returning
>> null
> 
> 
> These are invalid for my application since one end of the relation is
> mandatory and the other end is optional.
> 
> DS should not complain in this way when at least one end of the relation
> is optional.
> 
> (I can't file an issue on this since JIRA seems to be in some kind of
> lockdown)

Fyi, this issue already has been filed a while ago:
https://issues.apache.org/jira/browse/FELIX-4417

wbr,
Victor




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org