You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Mathieu Civel <ma...@gmail.com> on 2009/04/03 18:40:47 UTC
iPOJO 1.3.0-SNAPSHOT - Implementation class constructor
Hi,
I'm currently trying the iPOJO API (recently built) as I want to build
dynamic components.
Actually its works great, but it seems that the POJO class should have an
empty constructor in order to allow service registration.
I get a "*NoSuchMethodException : [...] createInstance -> Cannot invoke the
constructor (method not found)*" if I add some parameters in the
constructor. And it works well without parameters. This exception happen
when I try to get a object from the implemented service reference.
Is that a wanted behaviour or did I miss something ?
Thanks.
Mathieu Civel.
Re: iPOJO 1.3.0-SNAPSHOT - Implementation class constructor
Posted by Clement Escoffier <cl...@gmail.com>.
On 06.04.2009, at 16:06, Mathieu Civel wrote:
> It works perfectly, thanks.
Great !
>
>
> Tie break question :
>
> Is that the correct repository :
> http://people.apache.org/repo/m2-snapshot-repository/ ?
Yes, it is. However, I just deployed the API inside (it was never
deployed before).
>
> I haven't found the api bundle in it ; should I deploy the manipulator
> bundle in felix ?
No, the API contains the required packages from the manipulator. So,
the API is self-contained (it nevertheless requires the iPOJO core
bundle).
>
> I made it through by checking out the api bundle from svn, which
> seems to
> embed manipulator classes.
Right.
Regards,
Clement
>
>
> Mathieu
>
> 2009/4/5 Clement Escoffier <cl...@gmail.com>
>
>> Hi,
>>
>> I fixed the issue in the trunk. (I also re-deploy a version on the
>> snapshot
>> maven repository).
>>
>> Regards,
>>
>> Clement
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: iPOJO 1.3.0-SNAPSHOT - Implementation class constructor
Posted by Mathieu Civel <ma...@gmail.com>.
It works perfectly, thanks.
Tie break question :
Is that the correct repository :
http://people.apache.org/repo/m2-snapshot-repository/ ?
I haven't found the api bundle in it ; should I deploy the manipulator
bundle in felix ?
I made it through by checking out the api bundle from svn, which seems to
embed manipulator classes.
Mathieu
2009/4/5 Clement Escoffier <cl...@gmail.com>
> Hi,
>
> I fixed the issue in the trunk. (I also re-deploy a version on the snapshot
> maven repository).
>
> Regards,
>
> Clement
Re: iPOJO 1.3.0-SNAPSHOT - Implementation class constructor
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
I fixed the issue in the trunk. (I also re-deploy a version on the
snapshot maven repository).
Regards,
Clement
On 03.04.2009, at 20:37, Mathieu Civel wrote:
> Allright :)
>
> Thank you for this fast reply.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: iPOJO 1.3.0-SNAPSHOT - Implementation class constructor
Posted by Mathieu Civel <ma...@gmail.com>.
Allright :)
Thank you for this fast reply.
Re: iPOJO 1.3.0-SNAPSHOT - Implementation class constructor
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
It's a bug :-(. I've planned to fix it very soon (may be this weekend
or at least at the beginning of the next week). In fact, it imposes to
get an empty constructor when another constructor exists.
I just opened a jira issue about that (Felix-1024).
Thanks !
Regards,
Clement
On 03.04.2009, at 18:40, Mathieu Civel wrote:
> Hi,
>
> I'm currently trying the iPOJO API (recently built) as I want to build
> dynamic components.
>
> Actually its works great, but it seems that the POJO class should
> have an
> empty constructor in order to allow service registration.
>
> I get a "*NoSuchMethodException : [...] createInstance -> Cannot
> invoke the
> constructor (method not found)*" if I add some parameters in the
> constructor. And it works well without parameters. This exception
> happen
> when I try to get a object from the implemented service reference.
>
> Is that a wanted behaviour or did I miss something ?
>
> Thanks.
>
> Mathieu Civel.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org