felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From remi.drui...@orange-ftgroup.com
Subject Infinite loop when I start a bundle
Date Tue, 13 Dec 2011 13:35:20 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello, <br>
    <br>
    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.<br>
    <br>
    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):<br>
    <br>
    ...<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)<br>
    &nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    &nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
    &nbsp;&nbsp;&nbsp; at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
    org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)<br>
    &nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    &nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
    &nbsp;&nbsp;&nbsp; at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
    org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)<br>
    &nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    &nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
    &nbsp;&nbsp;&nbsp; at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
    org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)<br>
    &nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    &nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
    &nbsp;&nbsp;&nbsp; at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
    org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)<br>
    &nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    &nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
    &nbsp;&nbsp;&nbsp; at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
    org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.FactoryProxy.createComponentInstance(FactoryProxy.java:87)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__createInstance(InstanceHandler.java:160)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.createInstance(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.__bindFactory(InstanceHandler.java:184)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.instance.InstanceHandler.bindFactory(InstanceHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)<br>
    &nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    &nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
    &nbsp;&nbsp;&nbsp; at org.apache.felix.ipojo.util.Callback.call(Callback.java:260)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyCallback.callOnInstance(DependencyCallback.java:309)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.invokeCallback(Dependency.java:314)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:279)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:645)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)<br>
    &nbsp;&nbsp;&nbsp; at
    org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeManager.start(CompositeManager.java:346)<br>
    &nbsp;&nbsp;&nbsp; at
org.apache.felix.ipojo.composite.CompositeFactory.createInstance(CompositeFactory.java:147)<br>
    ...<br>
    <br>
    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.<br>
    <br>
    Could you look at my sources and tell me if I made a mistake
    somewhere ?<br>
    <br>
    Thanks,<br>
    <br>
    Regards.<br>
    <div class="moz-signature">-- <br>
      <font face="TIMES"><font size="2">
          <img src="cid:part1.00080604.04040905@orange-ftgroup.com"><br>
          <font color="BLACK">
            <b> DRUILHE Remi RD-MAPS-GRE</b></font><br>
          <b>PhD Student</b>
          <b> MAPS/SHINE/MADE</b><br>
          Tel : +33 (0)4 76 76 24 27<br>
          <a href="mailto:remi.druilhe@orange-ftgroup.com">Email:
            remi.druilhe@orange.com</a><br>
          R&amp;D Grenoble 28 chemin du Vieux Ch&ecirc;ne - BP98 38243 Meylan
          Cedex - France
          <br>
          <br>
        </font></font></div>
  </body>
</html>

Mime
View raw message