iPOJO The 1.4.2 Eclipse Sample (MyiPOJOBundle-1.4.2) does not run
-----------------------------------------------------------------

                 Key: FELIX-1842
                 URL: https://issues.apache.org/jira/browse/FELIX-1842
             Project: Felix
          Issue Type: Bug
          Components: iPOJO
    Affects Versions: iPOJO-1.4.0
            Reporter: Kai Toedter


I just tries the Eclipse Example, downloaded from 
http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip

After setting the target platform I get the following error after launching:

osgi> [ERROR] org.apache.felix.ipojo.sample.MyComponentImpl : 
[org.apache.felix.ipojo.sample.MyComponentImpl-0] createInstance -> Cannot 
invoke the constructor (method not found) : 
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
[ERROR] org.apache.felix.ipojo.sample.MyComponentImpl : Cannot create a POJO 
instance, the POJO constructor cannot be found : 
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
java.lang.RuntimeException: Cannot create a POJO instance, the POJO constructor 
cannot be found : 
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
        at 
org.apache.felix.ipojo.InstanceManager.createObject(InstanceManager.java:632)
        at 
org.apache.felix.ipojo.InstanceManager.getPojoObject(InstanceManager.java:776)
        at 
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__stateChanged(LifecycleCallbackHandler.java:156)
        at 
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
        at 
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:440)
        at 
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:321)
        at 
org.apache.felix.ipojo.ComponentFactory.createInstance(ComponentFactory.java:155)
        at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:298)
        at 
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:235)
        at 
org.apache.felix.ipojo.InstanceCreator$ManagedInstance.create(InstanceCreator.java:360)
        at 
org.apache.felix.ipojo.InstanceCreator.addInstance(InstanceCreator.java:89)
        at org.apache.felix.ipojo.Extender.parse(Extender.java:269)
        at org.apache.felix.ipojo.Extender.startManagementFor(Extender.java:208)
        at org.apache.felix.ipojo.Extender.access$600(Extender.java:52)
        at org.apache.felix.ipojo.Extender$CreatorThread.run(Extender.java:669)
        at java.lang.Thread.run(Thread.java:619)
[ERROR] org.apache.felix.ipojo.sample.MyComponentImpl : Cannot create a POJO 
instance, the POJO constructor cannot be found : 
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
[ERROR] iPOJO Instance Creator : A matching factory was found for 
{component=org.apache.felix.ipojo.sample.MyComponentImpl, 
instance.name=org.apache.felix.ipojo.sample.MyComponentImpl-0}, but the 
instantiation failed : The configuration is not correct for the type 
org.apache.felix.ipojo.sample.MyComponentImpl : Cannot create a POJO instance, 
the POJO constructor cannot be found : 
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)


-- 
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