You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Tom Remoleur <to...@ulp.u-strasbg.fr> on 2007/07/06 11:15:53 UTC

New Problem with configuration Admin

Hi Felix,

Sorry to bore you again, but I think I've got another bug in the felix  
configuration admin. I've tried to create a new PersistanceManager to  
store configuration in xml but after registring my persistance manager  
service somes ClassCastException are throws when I'm using the  
configuration admin.
I've looked in your code and see that at line 530 of ConfigurationManager  
you put the service object in a Set with a custom comparator. But in your  
comparator you cast the objects into ServiceReferences (line 61 of  
RankingComparator) and that throws the class cast Exception.
Can you have a look about this ?

Thanks
Tom

ps: I will send you directly a test bundle to illustrate.


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


Re: New Problem with configuration Admin

Posted by Tom Remoleur <to...@ulp.u-strasbg.fr>.
Hi Felix,

I confirm that works with my projet too.

Thanks a lot for the very fast debugging
Tom



On Fri, 06 Jul 2007 17:38:07 +0200, Felix Meschberger <fm...@gmail.com>  
wrote:

> Hi Tom,
>
> I fixed issue FELIX-322. This took me a little longer, as there were
> more bugs hidden....
>
> I quickly tested it, and it seems to work with my setup. Could you
> please confirm ? Thanks.
>
> I will deploy a new snapshot as soon as I get confirmation from you.
>
> Regards
> Felix
>
> Am Freitag, den 06.07.2007, 11:15 +0200 schrieb Tom Remoleur:
>> Hi Felix,
>>
>> Sorry to bore you again, but I think I've got another bug in the felix
>> configuration admin. I've tried to create a new PersistanceManager to
>> store configuration in xml but after registring my persistance manager
>> service somes ClassCastException are throws when I'm using the
>> configuration admin.
>> I've looked in your code and see that at line 530 of  
>> ConfigurationManager
>> you put the service object in a Set with a custom comparator. But in  
>> your
>> comparator you cast the objects into ServiceReferences (line 61 of
>> RankingComparator) and that throws the class cast Exception.
>> Can you have a look about this ?
>>
>> Thanks
>> Tom
>>
>> ps: I will send you directly a test bundle to illustrate.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



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


Re: New Problem with configuration Admin

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Tom,

I fixed issue FELIX-322. This took me a little longer, as there were
more bugs hidden....

I quickly tested it, and it seems to work with my setup. Could you
please confirm ? Thanks.

I will deploy a new snapshot as soon as I get confirmation from you.

Regards
Felix

Am Freitag, den 06.07.2007, 11:15 +0200 schrieb Tom Remoleur:
> Hi Felix,
> 
> Sorry to bore you again, but I think I've got another bug in the felix  
> configuration admin. I've tried to create a new PersistanceManager to  
> store configuration in xml but after registring my persistance manager  
> service somes ClassCastException are throws when I'm using the  
> configuration admin.
> I've looked in your code and see that at line 530 of ConfigurationManager  
> you put the service object in a Set with a custom comparator. But in your  
> comparator you cast the objects into ServiceReferences (line 61 of  
> RankingComparator) and that throws the class cast Exception.
> Can you have a look about this ?
> 
> Thanks
> Tom
> 
> ps: I will send you directly a test bundle to illustrate.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


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


Re: New Problem with configuration Admin

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Tom,

I will look into this.

Regards
Felix

Am Freitag, den 06.07.2007, 11:15 +0200 schrieb Tom Remoleur:
> Hi Felix,
> 
> Sorry to bore you again, but I think I've got another bug in the felix  
> configuration admin. I've tried to create a new PersistanceManager to  
> store configuration in xml but after registring my persistance manager  
> service somes ClassCastException are throws when I'm using the  
> configuration admin.
> I've looked in your code and see that at line 530 of ConfigurationManager  
> you put the service object in a Set with a custom comparator. But in your  
> comparator you cast the objects into ServiceReferences (line 61 of  
> RankingComparator) and that throws the class cast Exception.
> Can you have a look about this ?
> 
> Thanks
> Tom
> 
> ps: I will send you directly a test bundle to illustrate.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


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


Re: New Problem with configuration Admin

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Tom,

> Sorry to bore you again, but I think I've got another bug in the felix  

You don't really bore me :-) I am quite happy, that someone is also
looking at this stuff. Of course I am not that happy, that there are
bugs in it, but such is life.

And yes, you are absolutely right, this is a bug. I wanted to be lazy
when converting the sorted set of persistence managers into an array....

Will open a JIRA issue and fix it.

Regards
Felix

> configuration admin. I've tried to create a new PersistanceManager to  
> store configuration in xml but after registring my persistance manager  
> service somes ClassCastException are throws when I'm using the  
> configuration admin.
> I've looked in your code and see that at line 530 of ConfigurationManager  
> you put the service object in a Set with a custom comparator. But in your  
> comparator you cast the objects into ServiceReferences (line 61 of  
> RankingComparator) and that throws the class cast Exception.
> Can you have a look about this ?
> 
> Thanks
> Tom
> 
> ps: I will send you directly a test bundle to illustrate.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


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