You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Meriam LAHAMI <Ma...@redcad.org> on 2012/01/01 21:19:44 UTC
about the bundle IOConnector
Hello,
I would like to create two bundles: a client and a server communicating
through TCP/IP socket as given in this tutorial :
http://dz.prosyst.com/pdoc/mBS_PE/um/framework/bundles/osgi/connector/connec
tor.html
I began by creating the server bundle and I tried to install it in felix .
So I had such exceptions:
org.osgi.framework.BundleException: Activator start error in bundle
ServerBundle
[20].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1951)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1822)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)
at org.apache.felix.gogo.command.Basic.start(Basic.java:758)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java
82)
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469)
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:
95)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSess
onImpl.java:89)
at org.apache.felix.gogo.shell.Console.run(Console.java:62)
at org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java
82)
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469)
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:
95)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSess
onImpl.java:89)
at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
javax/microedition/io/ConnectionNotF
undException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:38
4)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1899)
... 32 more
Caused by: java.lang.ClassNotFoundException:
javax.microedition.io.ConnectionNo
FoundException not found by ServerBundle [20]
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegatio
(ModuleImpl.java:812)
at
org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(Mo
uleImpl.java:1807)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 39 more
java.lang.NoClassDefFoundError:
javax/microedition/io/ConnectionNotFoundExcepti
n
Have you an idea about this problem?
I hope that you can help me, thanks in advance.
Best regards
Meriam LAHAMI