You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Dimitris Karteris <di...@evorad.com> on 2010/01/27 12:05:09 UTC
IPOJO integration with Eclipse problem
Hi there,
I followed the instructions given in the article below:
http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html
but Step 4 fails for me. Specifically, after right-clicking on the
.launch file, and then going on Run-As -> MyiPOJOBundle, Equinox is
started as expected (osgi prompt is shown) BUT my iPOJO bundle is not
deployed or started. Typing ss on the osgi prompt I get:
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
1 ACTIVE org.apache.felix.ipojo_1.2.0
osgi>
I've used both archives found on the article:
http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle.zip
http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip
Thanx for any help in advance,
~dkart
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: IPOJO integration with Eclipse problem
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
Could you tell me the Eclipse version that's you're using and if possible a copy of your Eclipse project (send it directly to my personal mail). I will look into your issue ASAP.
Regards,
Clement
On 27.01.2010, at 13:39, Parvez Shah wrote:
> sorry should have googled first found the solution at
> http://www.mail-archive.com/dev@felix.apache.org/msg13662.html
>
> --------------------------------------------------
> From: "Parvez Shah" <pa...@live.com>
> Sent: Wednesday, January 27, 2010 5:45 PM
> To: <us...@felix.apache.org>
> Subject: Re: IPOJO integration with Eclipse problem
>
>> in my case I can see the bundle
>> id State Bundle
>> 0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
>> 1 ACTIVE org.apache.felix.ipojo.composite_1.4.0
>> 2 ACTIVE org.apache.felix.ipojo_1.4.0
>> 3 ACTIVE MyiPOJOBundle_1.0.0
>>
>> but if I run .. start 3
>> I get following error
>>
>>
>>
>> [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(Unknown Source)
>> [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)
>>
>> --------------------------------------------------
>> From: "Dimitris Karteris" <di...@evorad.com>
>> Sent: Wednesday, January 27, 2010 4:35 PM
>> To: <us...@felix.apache.org>
>> Subject: IPOJO integration with Eclipse problem
>>
>>> Hi there,
>>>
>>> I followed the instructions given in the article below:
>>>
>>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html
>>>
>>> but Step 4 fails for me. Specifically, after right-clicking on the
>>> .launch file, and then going on Run-As -> MyiPOJOBundle, Equinox is
>>> started as expected (osgi prompt is shown) BUT my iPOJO bundle is not
>>> deployed or started. Typing ss on the osgi prompt I get:
>>>
>>> osgi> ss
>>>
>>> Framework is launched.
>>>
>>> id State Bundle
>>> 0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
>>> 1 ACTIVE org.apache.felix.ipojo_1.2.0
>>>
>>> osgi>
>>>
>>> I've used both archives found on the article:
>>>
>>>
>>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle.zip
>>>
>>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip
>>>
>>> Thanx for any help in advance,
>>>
>>> ~dkart
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: IPOJO integration with Eclipse problem
Posted by Parvez Shah <pa...@live.com>.
sorry should have googled first found the solution at
http://www.mail-archive.com/dev@felix.apache.org/msg13662.html
--------------------------------------------------
From: "Parvez Shah" <pa...@live.com>
Sent: Wednesday, January 27, 2010 5:45 PM
To: <us...@felix.apache.org>
Subject: Re: IPOJO integration with Eclipse problem
> in my case I can see the bundle
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
> 1 ACTIVE org.apache.felix.ipojo.composite_1.4.0
> 2 ACTIVE org.apache.felix.ipojo_1.4.0
> 3 ACTIVE MyiPOJOBundle_1.0.0
>
> but if I run .. start 3
> I get following error
>
>
>
> [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(Unknown Source)
> [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)
>
> --------------------------------------------------
> From: "Dimitris Karteris" <di...@evorad.com>
> Sent: Wednesday, January 27, 2010 4:35 PM
> To: <us...@felix.apache.org>
> Subject: IPOJO integration with Eclipse problem
>
>> Hi there,
>>
>> I followed the instructions given in the article below:
>>
>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html
>>
>> but Step 4 fails for me. Specifically, after right-clicking on the
>> .launch file, and then going on Run-As -> MyiPOJOBundle, Equinox is
>> started as expected (osgi prompt is shown) BUT my iPOJO bundle is not
>> deployed or started. Typing ss on the osgi prompt I get:
>>
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
>> 1 ACTIVE org.apache.felix.ipojo_1.2.0
>>
>> osgi>
>>
>> I've used both archives found on the article:
>>
>>
>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle.zip
>>
>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip
>>
>> Thanx for any help in advance,
>>
>> ~dkart
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: IPOJO integration with Eclipse problem
Posted by Parvez Shah <pa...@live.com>.
in my case I can see the bundle
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
1 ACTIVE org.apache.felix.ipojo.composite_1.4.0
2 ACTIVE org.apache.felix.ipojo_1.4.0
3 ACTIVE MyiPOJOBundle_1.0.0
but if I run .. start 3
I get following error
[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(Unknown Source)
[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)
--------------------------------------------------
From: "Dimitris Karteris" <di...@evorad.com>
Sent: Wednesday, January 27, 2010 4:35 PM
To: <us...@felix.apache.org>
Subject: IPOJO integration with Eclipse problem
> Hi there,
>
> I followed the instructions given in the article below:
>
> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html
>
> but Step 4 fails for me. Specifically, after right-clicking on the
> .launch file, and then going on Run-As -> MyiPOJOBundle, Equinox is
> started as expected (osgi prompt is shown) BUT my iPOJO bundle is not
> deployed or started. Typing ss on the osgi prompt I get:
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
> 1 ACTIVE org.apache.felix.ipojo_1.2.0
>
> osgi>
>
> I've used both archives found on the article:
>
>
> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle.zip
>
> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip
>
> Thanx for any help in advance,
>
> ~dkart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: IPOJO integration with Eclipse problem
Posted by Dimitris Karteris <di...@evorad.com>.
On Wed, Jan 27, 2010 at 7:48 PM, Clement Escoffier
<cl...@gmail.com> wrote:
> Hi,
>
> On 27.01.2010, at 12:05, Dimitris Karteris wrote:
>
>> Hi there,
>>
>> I followed the instructions given in the article below:
>>
>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html
>>
>> but Step 4 fails for me. Specifically, after right-clicking on the
>> .launch file, and then going on Run-As -> MyiPOJOBundle, Equinox is
>> started as expected (osgi prompt is shown) BUT my iPOJO bundle is not
>> deployed or started. Typing ss on the osgi prompt I get:
>>
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
>> 1 ACTIVE org.apache.felix.ipojo_1.2.0
>
> Are you using iPOJO 1.2.0 ?
I used MyiPOJOBundle.zip where iPOJO 1.2.0 is used, and
MyiPOJOBundle-1.4.2.zip where iPOJO 1.4.0 is used. That is a snapshot
from the first attempt.
>
>>
>> osgi>
>>
>> I've used both archives found on the article:
>>
>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle.zip
>> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip
>
> Try to close the project and to re-open it. Sometimes, the Eclipse builder is not launched.
> (see http://cwiki.apache.org/jira/browse/FELIX-1842)
>
I saw this issue on felix jira before posting and I tried it. The
Eclipse builder launched normally afterwards but, unfortunately, I
still had the same results.
~dkart
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: IPOJO integration with Eclipse problem
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
On 27.01.2010, at 12:05, Dimitris Karteris wrote:
> Hi there,
>
> I followed the instructions given in the article below:
>
> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html
>
> but Step 4 fails for me. Specifically, after right-clicking on the
> .launch file, and then going on Run-As -> MyiPOJOBundle, Equinox is
> started as expected (osgi prompt is shown) BUT my iPOJO bundle is not
> deployed or started. Typing ss on the osgi prompt I get:
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
> 1 ACTIVE org.apache.felix.ipojo_1.2.0
Are you using iPOJO 1.2.0 ?
>
> osgi>
>
> I've used both archives found on the article:
>
> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle.zip
> http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip
Try to close the project and to re-open it. Sometimes, the Eclipse builder is not launched.
(see http://cwiki.apache.org/jira/browse/FELIX-1842)
Regards,
Clement
>
> Thanx for any help in advance,
>
> ~dkart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org