Error with optional dependency : cannot load the associated NullableObject
--------------------------------------------------------------------------

                 Key: FELIX-427
                 URL: https://issues.apache.org/jira/browse/FELIX-427
             Project: Felix
          Issue Type: Bug
          Components: iPOJO
            Reporter: François Fornaciari


An error occurs when iPOJO try to load the NullableObject associated to an 
optional dependency. More specially, the dependency is declared in the Super 
Class of the component and this super Class is located in another bundle. So 
the manifest of the bundle containing the iPOJO component doesn't contain an 
Import-package for this dependency (BND doesn't generate the import 
dynamically).

The trace for this error is below : 

java.lang.NullPointerException
    at 
org.apache.felix.ipojo.handlers.dependency.nullable.NullableObjectWriter.dump(NullableObjectWriter.java:52)
    at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.createNullableObject(DependencyHandler.java:326)
    at 
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.start(DependencyHandler.java:430)
    at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:100)
    at 
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:208)
    at 
org.apache.felix.ipojo.ComponentFactory.createComponentInstance(ComponentFactory.java:317)
    at 
org.apache.felix.ipojo.ComponentFactory.createComponentInstance(ComponentFactory.java:256)
    at 
org.apache.felix.ipojo.ComponentFactory.updated(ComponentFactory.java:630)
    at 
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1020)
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:89)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to