felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4218) NPE with field annotated with both @Property and @ServiceProperty
Date Fri, 06 Sep 2013 09:17:51 GMT

    [ https://issues.apache.org/jira/browse/FELIX-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760079#comment-13760079

Clement Escoffier commented on FELIX-4218:


I can't reproduce the issue.

I've tried in integration-tests and in the Felix Gogo shell.

My component is:

public class CheckProviderWithPropertyAndServiceProperty implements CheckService {

    private String toto;

    public boolean check() {
        return toto != null;

    public Properties getProps() {
        Properties props = new Properties();
        props.put("toto", toto);
        return props;

In the integration-test I retrieve the architecture and check the toto value.
In the Felix shell, I dump the instance architecture

Can you give me more details ?
> NPE with field annotated with both @Property and @ServiceProperty
> -----------------------------------------------------------------
>                 Key: FELIX-4218
>                 URL: https://issues.apache.org/jira/browse/FELIX-4218
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.10.1
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>             Fix For: ipojo-runtime-1.10.2
> I know this seems wrong to have a field annotated like this:
> {code:java}
> @Property(name="toto")
> @ServiceProperty(name="toto")
> private String toto;
> {code}
> Anyway, I've seen this...
> And when I try to see instance details using the gogo command 'instance', I got a NPE
(sorry don't have the stacktrace at hand)

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

View raw message