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]

Reply via email to