I'll just cc this message back to dev@ :-) good to know its working and yes, the SimpleDateFormat should work as well. As I said, i did quite some fixes for 2.0.2 on classpath/mika/harmony/kaffee etc.
regards, Karl On Thu, Dec 31, 2009 at 2:14 PM, Goddchen <goddc...@googlemail.com> wrote: > hey, > it seems to be working :) i can start my bundle without any exceptions :) > maybe i can use SimpleDateFormat in my other bundle now too :) > the update to 2.0.2 solved the problem with the UnresolvedAddressException > :) > > how can we state this in the mailing list now? i want everybody to know the > answer ;) > > Greets, Goddchen > > -- > Mit freundlichen Grüßen > Martin Liersch >> Blog: http://blog.goddchen.de >> Website: http://www.goddchen.de > > > 2009/12/31 Karl Pauls <karlpa...@gmail.com> >> >> On Thu, Dec 31, 2009 at 12:30 PM, Karl Pauls <karlpa...@gmail.com> wrote: >> > On Thu, Dec 31, 2009 at 12:11 PM, Goddchen <goddc...@googlemail.com> >> > wrote: >> >> Hey, just received your mail. >> >> i'm currently using 2.0.1. I just had a look on the apache felix >> >> download >> >> page and there is only 2.0.1 available. where can i get 2.0.2? >> > >> > Its on the download page as well. The difference is that there is now >> >> That should have said, "The difference is that there is _no_ " >> >> > felix-framework.zip for that one. Download the >> > org.apache.felix.main-2.0.2.jar and put it as bin/felix.jar in your >> > felix-framework-2.0.1. Let me know whether that makes a difference or >> > not. >> >> On the download page it is actually called "Main" in version 2.0.2. >> >> regards, >> >> Karl >> >> >> how do i turn of those URLHandlers? >> > >> > You don't need to turn them off - i was more wondering whether you >> > might have done. Try felix 2.0.2 first. >> > >> > regards, >> > >> > Karl >> > >> >> Greets, Goddchen >> >> >> >> -- >> >> Mit freundlichen Grüßen >> >> Martin Liersch >> >>> Blog: http://blog.goddchen.de >> >>> Website: http://www.goddchen.de >> >> >> >> >> >> 2009/12/31 Karl Pauls <karlpa...@gmail.com> >> >>> >> >>> Hi, >> >>> >> >>> did any of the below make a difference? >> >>> >> >>> regards, >> >>> >> >>> Karl >> >>> >> >>> >> >>> ---------- Forwarded message ---------- >> >>> From: Karl Pauls <karlpa...@gmail.com> >> >>> Date: Wed, Dec 30, 2009 at 3:59 PM >> >>> Subject: Re: UnresolvedAddressException on empty constructor >> >>> To: dev@felix.apache.org >> >>> >> >>> >> >>> Additionally, do you have URLHandlers turned off? >> >>> >> >>> regards, >> >>> >> >>> Karl >> >>> >> >>> On Wed, Dec 30, 2009 at 3:33 PM, Karl Pauls <karlpa...@gmail.com> >> >>> wrote: >> >>> > It looks to me like you are using a gnu/classpath based vm. What >> >>> > version of felix are you using? Make sure its 2.0.2 as there have >> >>> > been >> >>> > quite some fixes for gnu/classpath in 2.0.2. >> >>> > >> >>> > If that doesn't help, can you make an example of this available to >> >>> > me? >> >>> > >> >>> > regards, >> >>> > >> >>> > Karl >> >>> > >> >>> > On Wed, Dec 30, 2009 at 3:25 PM, Goddchen <goddc...@googlemail.com> >> >>> > wrote: >> >>> >> Hey everyone, >> >>> >> i'm facing a strange problem with apache felix. I'm creating an >> >>> >> object >> >>> >> with >> >>> >> an empty constructor (XBee). When doing this felix somehow tries to >> >>> >> create a >> >>> >> socket for whatever purpose?! And raises an exception on that >> >>> >> socket. >> >>> >> Any ideas on this one? I remember to have had the same problem when >> >>> >> i >> >>> >> once >> >>> >> tried to use SimpleDateFormat. >> >>> >> Why is felix trying to open a socket? >> >>> >> >> >>> >> [5.11.2009 17:52:52.294][UHSG XBeeTest][DEBUG] Initializing xbee >> >>> >> device >> >>> >> log4j:WARN Caught Exception while in Loader.getResource. This may >> >>> >> be >> >>> >> innocuous. >> >>> >> java.nio.channels.UnresolvedAddressException >> >>> >> at >> >>> >> gnu.java.nio.SocketChannelImpl.connect(SocketChannelImpl.java:160) >> >>> >> at gnu.java.net.PlainSocketImpl.connect(PlainSocketImpl.java:281) >> >>> >> at java.net.Socket.connect(Socket.java:454) >> >>> >> at java.net.Socket.connect(Socket.java:414) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPConnection.getSocket(HTTPConnection.java:721) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPConnection.getOutputStream(HTTPConnection.java:802) >> >>> >> at gnu.java.net.protocol.http.Request.dispatch(Request.java:292) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPURLConnection.connect(HTTPURLConnection.java:219) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPURLConnection.getHeaderField(HTTPURLConnection.java:582) >> >>> >> at >> >>> >> java.net.URLConnection.getHeaderFieldInt(URLConnection.java:426) >> >>> >> at >> >>> >> java.net.URLConnection.getContentLength(URLConnection.java:302) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.loader.RemoteURLLoader.getResource(RemoteURLLoader.java:79) >> >>> >> at >> >>> >> java.net.URLClassLoader.findURLResource(URLClassLoader.java:682) >> >>> >> at java.net.URLClassLoader.findResource(URLClassLoader.java:697) >> >>> >> at java.lang.ClassLoader.getResource(ClassLoader.java:608) >> >>> >> at org.apache.log4j.helpers.Loader.getResource(Loader.java:78) >> >>> >> at org.apache.log4j.LogManager.<clinit>(LogManager.java:94) >> >>> >> at org.apache.log4j.Logger.getLogger(Logger.java:94) >> >>> >> at >> >>> >> com.rapplogic.xbee.RxTxSerialComm.<clinit>(RxTxSerialComm.java:46) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> de.konstanz.htwg.uhsg.xbee.test.XBeeToggleThread.initialize(XBeeToggleThread.java:29) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> de.konstanz.htwg.uhsg.xbee.test.XBeeToggleThread.<init>(XBeeToggleThread.java:23) >> >>> >> at >> >>> >> de.konstanz.htwg.uhsg.xbee.test.Activator.start(Activator.java:21) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639) >> >>> >> at >> >>> >> org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) >> >>> >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) >> >>> >> at >> >>> >> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184) >> >>> >> at java.lang.Thread.run(Thread.java:745) >> >>> >> at java.lang.VMThread.run(VMThread.java:120) >> >>> >> [5.11.2009 17:52:52.836][UHSG XBeeTest][INFO] BundleEvent STOPPED >> >>> >> org.osgi.framework.BundleException: Activator start error in bundle >> >>> >> UHSG_XBeeTest [37]. >> >>> >> at >> >>> >> org.apache.felix.framework.Felix.activateBundle(Felix.java:1751) >> >>> >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) >> >>> >> at >> >>> >> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184) >> >>> >> at java.lang.Thread.run(Thread.java:745) >> >>> >> at java.lang.VMThread.run(VMThread.java:120) >> >>> >> Caused by: java.lang.ExceptionInInitializerError >> >>> >> at org.apache.log4j.Logger.getLogger(Logger.java:94) >> >>> >> at >> >>> >> com.rapplogic.xbee.RxTxSerialComm.<clinit>(RxTxSerialComm.java:46) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> de.konstanz.htwg.uhsg.xbee.test.XBeeToggleThread.initialize(XBeeToggleThread.java:29) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> de.konstanz.htwg.uhsg.xbee.test.XBeeToggleThread.<init>(XBeeToggleThread.java:23) >> >>> >> at >> >>> >> de.konstanz.htwg.uhsg.xbee.test.Activator.start(Activator.java:21) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639) >> >>> >> at >> >>> >> org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) >> >>> >> ...7 more >> >>> >> Caused by: java.nio.channels.UnresolvedAddressException >> >>> >> at >> >>> >> gnu.java.nio.SocketChannelImpl.connect(SocketChannelImpl.java:160) >> >>> >> at gnu.java.net.PlainSocketImpl.connect(PlainSocketImpl.java:281) >> >>> >> at java.net.Socket.connect(Socket.java:454) >> >>> >> at java.net.Socket.connect(Socket.java:414) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPConnection.getSocket(HTTPConnection.java:721) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPConnection.getOutputStream(HTTPConnection.java:802) >> >>> >> at gnu.java.net.protocol.http.Request.dispatch(Request.java:292) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPURLConnection.connect(HTTPURLConnection.java:219) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.protocol.http.HTTPURLConnection.getHeaderField(HTTPURLConnection.java:582) >> >>> >> at >> >>> >> java.net.URLConnection.getHeaderFieldInt(URLConnection.java:426) >> >>> >> at >> >>> >> java.net.URLConnection.getContentLength(URLConnection.java:302) >> >>> >> at >> >>> >> >> >>> >> >> >>> >> gnu.java.net.loader.RemoteURLLoader.getResource(RemoteURLLoader.java:79) >> >>> >> at >> >>> >> java.net.URLClassLoader.findURLResource(URLClassLoader.java:682) >> >>> >> at java.net.URLClassLoader.findResource(URLClassLoader.java:697) >> >>> >> at java.lang.ClassLoader.getResource(ClassLoader.java:608) >> >>> >> at java.lang.ClassLoader.getSystemResource(ClassLoader.java:693) >> >>> >> at org.apache.log4j.helpers.Loader.getResource(Loader.java:106) >> >>> >> at org.apache.log4j.LogManager.<clinit>(LogManager.java:94) >> >>> >> at org.apache.log4j.Logger.getLogger(Logger.java:94) >> >>> >> ...13 more >> >>> >> java.lang.ExceptionInInitializerError >> >>> >> >> >>> >> >> >>> >> -- >> >>> >> Mit freundlichen Grüßen >> >>> >> Martin Liersch >> >>> >>> Blog: http://blog.goddchen.de >> >>> >>> Website: http://www.goddchen.de >> >>> >> >> >>> > >> >>> > >> >>> > >> >>> > -- >> >>> > Karl Pauls >> >>> > karlpa...@gmail.com >> >>> > >> >>> >> >>> >> >>> >> >>> -- >> >>> Karl Pauls >> >>> karlpa...@gmail.com >> >>> >> >>> >> >>> >> >>> -- >> >>> Karl Pauls >> >>> karlpa...@gmail.com >> >> >> >> >> > >> > >> > >> > -- >> > Karl Pauls >> > karlpa...@gmail.com >> > >> >> >> >> -- >> Karl Pauls >> karlpa...@gmail.com > > -- Karl Pauls karlpa...@gmail.com