felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clement Escoffier <clement.escoff...@gmail.com>
Subject Re: Infinite loop when I start a bundle
Date Wed, 14 Dec 2011 08:45:30 GMT
Hi,

I think this issue is already fixed (https://issues.apache.org/jira/browse/FELIX-3130). When
I use the trunk version, I've the following result:

g! Toto
Titi
g!lb
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (3.2.1)
    1|Active     |    1|Apache Felix Configuration Admin Service (1.2.8)
    2|Active     |    1|Apache Felix File Install (3.1.10)
    3|Active     |    1|Apache Felix iPOJO (1.9.0.SNAPSHOT)
    4|Active     |    1|osgi.cmpn (4.2.0.200908310645)
    5|Active     |    1|Apache Felix Gogo Command (0.8.0)
    6|Active     |    1|Apache Felix Gogo Runtime (0.8.0)
    7|Active     |    1|Apache Felix Gogo Shell (0.8.0)
    8|Active     |    1|Apache Felix iPOJO Gogo Command (1.0.1)
    9|Active     |    1|Apache Felix iPOJO Composite (1.9.0.SNAPSHOT)
   10|Active     |    1|local-coordinator (0.1.0.SNAPSHOT)

Could you retry with the trunk version ?

Regards,

Clement

On 13.12.2011, at 14:35, remi.druilhe@orange-ftgroup.com wrote:

> Hello, 
> 
> I recently decided to look at felix and ipojo and, after having done the tutorials, I
am trying to create my own application using composition.
> 
> But it seems that I have a problem when I try to start my bundle. IPojo is trying to
create something. Here is the output error (I don't have the beginning of the error because
the error displays in a loop):
> 
> ...
>     at org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)
>     at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)
>     at org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)
>     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)
>     at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)
>     at org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)
>     at org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)
>     at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)
>     at org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)
>     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)
>     at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)
>     at org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)
>     at org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)
>     at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)
>     at org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)
>     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)
>     at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)
>     at org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)
>     at org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)
>     at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)
>     at org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)
>     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)
>     at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)
>     at org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)
>     at org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)
>     at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)
>     at org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)
>     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)
>     at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)
>     at org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)
>     at org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)
>     at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)
>     at org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)
>     at org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)
>     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)
>     at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)
>     at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)
>     at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)
>     at org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)
>     at org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)
> ...
> 
> I can only stop it using a kill command. I am attaching my code. I am not sure that the
metadata.xml is well formatted, but I haven't seen any examples that declare a component and
a composite in the same file.
> 
> Could you look at my sources and tell me if I made a mistake somewhere ?
> 
> Thanks,
> 
> Regards.
> -- 
> <orange_logo.gif>
> DRUILHE Remi RD-MAPS-GRE
> PhD Student MAPS/SHINE/MADE
> Tel : +33 (0)4 76 76 24 27
> Email: remi.druilhe@orange.com
> R&D Grenoble 28 chemin du Vieux ChĂȘne - BP98 38243 Meylan Cedex - France 
> 
> <source.tar.gz>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message