You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stefan Bischof (JIRA)" <ji...@apache.org> on 2018/10/16 21:22:00 UTC

[jira] [Created] (FELIX-5966) NPE at RuntimeDTOBuilder.java:74

Stefan Bischof created FELIX-5966:
-------------------------------------

             Summary: NPE at RuntimeDTOBuilder.java:74
                 Key: FELIX-5966
                 URL: https://issues.apache.org/jira/browse/FELIX-5966
             Project: Felix
          Issue Type: Bug
          Components: HTTP Service
    Affects Versions: http.jetty-4.0.6
            Reporter: Stefan Bischof


Got a Nullpointer when asking for runtimeDTO of the second HttpServiceRuntime 

 
{code:java}
@Reference(policy = ReferencePolicy.DYNAMIC,cardinality=ReferenceCardinality.MULTIPLE)
public void bindHttpServiceRuntime(HttpServiceRuntime rt) {
RuntimeDTO dto = rt.getRuntimeDTO();
}

java.lang.NullPointerException
 at org.apache.felix.http.base.internal.runtime.dto.RuntimeDTOBuilder.createServiceDTO(RuntimeDTOBuilder.java:74)
 at org.apache.felix.http.base.internal.runtime.dto.RuntimeDTOBuilder.build(RuntimeDTOBuilder.java:56)
 at org.apache.felix.http.base.internal.service.HttpServiceRuntimeImpl.getRuntimeDTO(HttpServiceRuntimeImpl.java:92){code}
 

 regards



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)