You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by peter lawrey <pe...@edgeci.com> on 2010/02/04 15:19:23 UTC
A methodID cannot be associated with a method from the POJO class
What does this error message mean?
I am getting this for a very ordinary method. It takes a String and
return a boolean and contains one line.
In the felix code the comment for this message is "Cannot happen"
Restarting karaf does help.
After rebuilding the bundle, without change to the code, the bundle is
now fine.
Regards,
Peter.
RE: A methodID cannot be associated with a method from the POJO class
Posted by peter lawrey <pe...@edgeci.com>.
Hi Clement,
I hasn't happened since. I am using
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.0</version>
with Sun Java 6 update 16.
We are still on karaf 1.0.
Regards,
Peter.
-----Original Message-----
From: Clement Escoffier [mailto:clement.escoffier@gmail.com]
Sent: 08 February 2010 18:39
To: users@felix.apache.org
Subject: Re: A methodID cannot be associated with a method from the POJO
class
On 05.02.2010, at 08:10, peter lawrey wrote:
> Thank you for your reply, my comment is inline.
>
> -----Original Message-----
> From: Clement Escoffier [mailto:clement.escoffier@gmail.com]
> Sent: 04 February 2010 17:10
> To: users@felix.apache.org
> Subject: Re: A methodID cannot be associated with a method from the
POJO
> class
>
>>> In the felix code the comment for this message is "Cannot happen"
>> It generally don't happen except if for any reason the container and
> the POJO class are not completely in sync.
>> This should not crash your application (well it should be a warning).
>
>
> It resulted in the component being invalid. Without it the program
> wouldn't run.
> I restarted the container but got the same error.
> After rebuilding the module and clearing the cache, the problem went
> away.
That's interesting. Is is reproducible ? Which compiler/packager do you
use (Eclipse, Maven...)
Regards,
Clement
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: A methodID cannot be associated with a method from the POJO class
Posted by Clement Escoffier <cl...@gmail.com>.
On 05.02.2010, at 08:10, peter lawrey wrote:
> Thank you for your reply, my comment is inline.
>
> -----Original Message-----
> From: Clement Escoffier [mailto:clement.escoffier@gmail.com]
> Sent: 04 February 2010 17:10
> To: users@felix.apache.org
> Subject: Re: A methodID cannot be associated with a method from the POJO
> class
>
>>> In the felix code the comment for this message is "Cannot happen"
>> It generally don't happen except if for any reason the container and
> the POJO class are not completely in sync.
>> This should not crash your application (well it should be a warning).
>
>
> It resulted in the component being invalid. Without it the program
> wouldn't run.
> I restarted the container but got the same error.
> After rebuilding the module and clearing the cache, the problem went
> away.
That's interesting. Is is reproducible ? Which compiler/packager do you use (Eclipse, Maven...)
Regards,
Clement
>
>
> ---------------------------------------------------------------------
> 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: A methodID cannot be associated with a method from the POJO class
Posted by peter lawrey <pe...@edgeci.com>.
Thank you for your reply, my comment is inline.
-----Original Message-----
From: Clement Escoffier [mailto:clement.escoffier@gmail.com]
Sent: 04 February 2010 17:10
To: users@felix.apache.org
Subject: Re: A methodID cannot be associated with a method from the POJO
class
> > In the felix code the comment for this message is "Cannot happen"
> It generally don't happen except if for any reason the container and
the POJO class are not completely in sync.
> This should not crash your application (well it should be a warning).
It resulted in the component being invalid. Without it the program
wouldn't run.
I restarted the container but got the same error.
After rebuilding the module and clearing the cache, the problem went
away.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: A methodID cannot be associated with a method from the POJO class
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
On 04.02.2010, at 15:19, peter lawrey wrote:
> What does this error message mean?
>
> I am getting this for a very ordinary method. It takes a String and
> return a boolean and contains one line.
>
iPOJO associates an id to all method to intercept them.
The error happened when no method matches the given id.
> In the felix code the comment for this message is "Cannot happen"
It generally don't happen except if for any reason the container and the POJO class are not completely in sync.
This should not crash your application (well it should be a warning).
Regards,
Clement
>
> Restarting karaf does help.
>
>
>
> After rebuilding the bundle, without change to the code, the bundle is
> now fine.
>
>
>
> Regards,
>
> Peter.
>