[ 
https://issues.apache.org/jira/browse/FELIX-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jérémy Cazaux updated FELIX-3835:
---------------------------------

    Description: 
Cannot get from org.apache.felix.ipojo.parser.PojoMetadata, MethodMetadata 
object of an inherited method of an iPOJO instance (it looks like that 
inherited methods are not store in the « manipulation » element of the 
MANIFEST). 

{code}
MethodMetadata method = getPojoMetadata().getMethod(name);
{code}

Here method is null.

As a result on my own iPOJO handler, I cannot register an interceptor on 
inherited methods. After that, I also got an NPE when I called the register 
method of the InstanceManager.

{noformat} 
java.lang.NullPointerException
        at 
org.apache.felix.ipojo.InstanceManager.register(InstanceManager.java:987)
{noformat}

  was:
Cannot get from org.apache.felix.ipojo.parser.PojoMetadata, MethodMetadata 
object of an inherited method of an iPOJO instance (it looks like that 
inherited methods are not store in the « manipulation » element of the 
MANIFEST). 

{noformat}
MethodMetadata method = getPojoMetadata().getMethod(name);
{noformat}

Here method is null.

As a result on my own iPOJO handler, I cannot register an interceptor on 
inherited methods. After that, I also got an NPE when I called the register 
method of the InstanceManager.

{noformat} 
java.lang.NullPointerException
        at 
org.apache.felix.ipojo.InstanceManager.register(InstanceManager.java:987)
{noformat}

    
> Cannot get from PojoMetadata, MethodMetadata object of an inherited method of 
> an iPOJO instance.
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3835
>                 URL: https://issues.apache.org/jira/browse/FELIX-3835
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>            Reporter: Jérémy Cazaux
>
> Cannot get from org.apache.felix.ipojo.parser.PojoMetadata, MethodMetadata 
> object of an inherited method of an iPOJO instance (it looks like that 
> inherited methods are not store in the « manipulation » element of the 
> MANIFEST). 
> {code}
> MethodMetadata method = getPojoMetadata().getMethod(name);
> {code}
> Here method is null.
> As a result on my own iPOJO handler, I cannot register an interceptor on 
> inherited methods. After that, I also got an NPE when I called the register 
> method of the InstanceManager.
> {noformat} 
> java.lang.NullPointerException
>       at 
> org.apache.felix.ipojo.InstanceManager.register(InstanceManager.java:987)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to