felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferry Huberts <maili...@hupie.com>
Subject Re: DS: invalid/alarmist circular reference log
Date Thu, 12 May 2016 16:43:15 GMT
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’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 <mailings@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 <mailto:users-unsubscribe@felix.apache.org>
>> For additional commands, e-mail: users-help@felix.apache.org <mailto:users-help@felix.apache.org>
>

-- 
Ferry Huberts

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


Mime
View raw message