Hm, ok. Can you try to start felix with the following property, -Dfelix.service.urlhandlers=false
and see whether that makes things work? regards, Karl On Fri, Jul 17, 2009 at 3:09 PM, Romain Rouvoy<[email protected]> wrote: > I compiled the current trunk and I still have the same exception: > >> -> ps >> START LEVEL 1 >> ID State Level Name >> [ 0] [Active ] [ 0] System Bundle (1.9.0.SNAPSHOT) >> [ 1] [Active ] [ 1] Apache Felix Shell Service (1.3.0.SNAPSHOT) >> [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.3.0.SNAPSHOT) >> [ 3] [Active ] [ 1] Apache Felix Bundle Repository >> (1.5.0.SNAPSHOT) >> >> -> obr list-url >> ERROR: Error parsing repository metadata >> 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.findResources(URLClassLoader.java:722) >> at java.lang.ClassLoader.getResources(ClassLoader.java:640) >> at gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:286) >> at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:163) >> at >> java.text.DateFormatSymbols.getZoneStrings(DateFormatSymbols.java:209) >> at java.text.DateFormatSymbols.<init>(DateFormatSymbols.java:280) >> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:458) >> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:440) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.setLastmodified(RepositoryImpl.java:162) >> at java.lang.reflect.VMMethod.invoke(Native Method) >> at java.lang.reflect.Method.invoke(Method.java:327) >> at >> org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490) >> at >> org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.parseRepositoryFile(RepositoryImpl.java:256) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.access$000(RepositoryImpl.java:44) >> at >> org.apache.felix.bundlerepository.RepositoryImpl$1.run(RepositoryImpl.java:75) >> at >> java.security.AccessController.doPrivileged(AccessController.java:154) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:71) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:60) >> at >> org.apache.felix.bundlerepository.RepositoryAdminImpl.initialize(RepositoryAdminImpl.java:206) >> at >> org.apache.felix.bundlerepository.RepositoryAdminImpl.listRepositories(RepositoryAdminImpl.java:101) >> at >> org.apache.felix.bundlerepository.ObrCommandImpl.urls(ObrCommandImpl.java:188) >> at >> org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:102) >> at >> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:281) >> at >> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:174) >> at java.lang.Thread.run(Thread.java:745) >> WARNING: RepositoryAdminImpl: Exception creating repository >> http://felix.apache.org/obr/releases.xml. Repository is skipped. >> java.lang.reflect.InvocationTargetException >> at java.lang.reflect.VMMethod.invoke(Native Method) >> at java.lang.reflect.Method.invoke(Method.java:327) >> at >> org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490) >> at >> org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.parseRepositoryFile(RepositoryImpl.java:256) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.access$000(RepositoryImpl.java:44) >> at >> org.apache.felix.bundlerepository.RepositoryImpl$1.run(RepositoryImpl.java:75) >> at >> java.security.AccessController.doPrivileged(AccessController.java:154) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:71) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:60) >> at >> org.apache.felix.bundlerepository.RepositoryAdminImpl.initialize(RepositoryAdminImpl.java:206) >> at >> org.apache.felix.bundlerepository.RepositoryAdminImpl.listRepositories(RepositoryAdminImpl.java:101) >> at >> org.apache.felix.bundlerepository.ObrCommandImpl.urls(ObrCommandImpl.java:188) >> at >> org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:102) >> at >> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:281) >> at >> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:174) >> at java.lang.Thread.run(Thread.java:745) >> 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.findResources(URLClassLoader.java:722) >> at java.lang.ClassLoader.getResources(ClassLoader.java:640) >> at gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:286) >> at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:163) >> at >> java.text.DateFormatSymbols.getZoneStrings(DateFormatSymbols.java:209) >> at java.text.DateFormatSymbols.<init>(DateFormatSymbols.java:280) >> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:458) >> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:440) >> at >> org.apache.felix.bundlerepository.RepositoryImpl.setLastmodified(RepositoryImpl.java:162) >> at java.lang.reflect.VMMethod.invoke(Native Method) >> ...16 more >> No repository URLs are set. >> >> -> obr list >> No matching bundles. >> >> -> > > Romain > > On 17 Jul 2009, at 13:11, Karl Pauls wrote: >> >> Could you try the current trunk instead of 1.8? >> >> regards, >> >> Karl >> >> On Fri, Jul 17, 2009 at 12:45 PM, Romain Rouvoy<[email protected]> wrote: >>> >>> I tried the code excerpt below: >>>> >>>> public class Test { >>>> public static void main(String[] argv) throws Exception { >>>> URL url = new >>>> URL("http://felix.apache.org/obr/releases.xml"); >>>> url.openConnection(); >>>> System.out.println(url.getContent()); >>>> } } >>> >>> And I got the following result: >>>> >>>> Nokia-N800-43-7:~# ping felix.apache.org >>>> PING felix.apache.org (140.211.11.130): 56 data bytes >>>> 64 bytes from 140.211.11.130: seq=0 ttl=242 time=289.1 ms >>>> 64 bytes from 140.211.11.130: seq=1 ttl=242 time=306.6 ms >>>> 64 bytes from 140.211.11.130: seq=2 ttl=242 time=323.6 ms >>>> >>>> --- felix.apache.org ping statistics --- >>>> 3 packets transmitted, 3 packets received, 0% packet loss >>>> round-trip min/avg/max = 289.1/306.4/323.6 ms >>>> >>>> Nokia-N800-43-7:~# java Test >>>> java.util.zip.gzipinputstr...@41d839e8 >>>> >>> >>> >>> So, it looks pretty fine from the Java perspective. >>> >>> Regards, >>> Romain >>> >>> On 17 Jul 2009, at 12:11, Karl Pauls wrote: >>>> >>>> I'm not saying its not a bug in felix but it looks to me like the >>>> reason is that it can not lookup the address. Did you try to create an >>>> open a url to the repository yourself and does that work (i.e., in a >>>> standalone java program). >>>> >>>> regards, >>>> Karl >>>> >>>> On Fri, Jul 17, 2009 at 11:01 AM, Romain Rouvoy<[email protected]> >>>> wrote: >>>>> >>>>> Hi guys, >>>>> >>>>> I am currently trying to execute Felix 1.8 on a Nokia N800 running >>>>> JamVM >>>>> 1.5.2. >>>>> >>>>> However, I get the following error when executing the command "obr >>>>> list": >>>>> >>>>>> ERROR: Error parsing repository metadata >>>>>> 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.findResources(URLClassLoader.java:722) >>>>>> at java.lang.ClassLoader.getResources(ClassLoader.java:640) >>>>>> at >>>>>> gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:286) >>>>>> at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:163) >>>>>> at >>>>>> >>>>>> java.text.DateFormatSymbols.getZoneStrings(DateFormatSymbols.java:209) >>>>>> at java.text.DateFormatSymbols.<init>(DateFormatSymbols.java:280) >>>>>> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:458) >>>>>> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:440) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository.RepositoryImpl.setLastmodified(RepositoryImpl.java: >>>>>> 162) >>>>>> at java.lang.reflect.VMMethod.invoke(Native Method) >>>>>> at java.lang.reflect.Method.invoke(Method.java:327) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java: >>>>>> 490) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java: >>>>>> 67) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .RepositoryImpl.parseRepositoryFile(RepositoryImpl.java:256) >>>>>> at org.apache.felix.bundlerepository.RepositoryImpl.access >>>>>> $000(RepositoryImpl.java:44) >>>>>> at org.apache.felix.bundlerepository.RepositoryImpl >>>>>> $1.run(RepositoryImpl.java:75) >>>>>> at >>>>>> >>>>>> java.security.AccessController.doPrivileged(AccessController.java:154) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:71) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:86) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:73) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix.bundlerepository.ObrCommandImpl.urls(ObrCommandImpl.java:160) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java: >>>>>> 102) >>>>>> at org.apache.felix.shell.impl.Activator >>>>>> $ShellServiceImpl.executeCommand(Activator.java:291) >>>>>> at org.apache.felix.shell.tui.Activator >>>>>> $ShellTuiRunnable.run(Activator.java:177) >>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>> java.lang.reflect.InvocationTargetException >>>>>> at java.lang.reflect.VMMethod.invoke(Native Method) >>>>>> at java.lang.reflect.Method.invoke(Method.java:327) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java: >>>>>> 490) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java: >>>>>> 67) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .RepositoryImpl.parseRepositoryFile(RepositoryImpl.java:256) >>>>>> at org.apache.felix.bundlerepository.RepositoryImpl.access >>>>>> $000(RepositoryImpl.java:44) >>>>>> at org.apache.felix.bundlerepository.RepositoryImpl >>>>>> $1.run(RepositoryImpl.java:75) >>>>>> at >>>>>> >>>>>> java.security.AccessController.doPrivileged(AccessController.java:154) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:71) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:86) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository .RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:73) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix.bundlerepository.ObrCommandImpl.urls(ObrCommandImpl.java:160) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java: >>>>>> 102) >>>>>> at org.apache.felix.shell.impl.Activator >>>>>> $ShellServiceImpl.executeCommand(Activator.java:291) >>>>>> at org.apache.felix.shell.tui.Activator >>>>>> $ShellTuiRunnable.run(Activator.java:177) >>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>> 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.findResources(URLClassLoader.java:722) >>>>>> at java.lang.ClassLoader.getResources(ClassLoader.java:640) >>>>>> at >>>>>> gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:286) >>>>>> at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:163) >>>>>> at >>>>>> >>>>>> java.text.DateFormatSymbols.getZoneStrings(DateFormatSymbols.java:209) >>>>>> at java.text.DateFormatSymbols.<init>(DateFormatSymbols.java:280) >>>>>> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:458) >>>>>> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:440) >>>>>> at >>>>>> >>>>>> >>>>>> org .apache .felix .bundlerepository.RepositoryImpl.setLastmodified(RepositoryImpl.java: >>>>>> 162) >>>>>> at java.lang.reflect.VMMethod.invoke(Native Method) >>>>>> ...15 more >>>>> >>>>> It seems that it fails to parse the default repository descriptor >>>>> available >>>>> on the Felix website :-/ >>>>> Does any of you managed to get it run smoothly on an Internet Tablet? >>>>> >>>>> Kind regards, >>>>> Romain >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> >> -- >> Karl Pauls >> [email protected] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Karl Pauls [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

