Ok I try this

import java.net.*;
import java.io.*;

public class GetHostName{
 public static void main(String [] args) {
   try {
        InetAddress addr = Inet4Address.getLocalHost();
        byte[] ipAddr = addr.getAddress();
        String hostname = addr.getHostName();
    System.out.println("hostname="+hostname);
    } catch (UnknownHostException e) {
    }

    }
}

It's ok on jamvm
it's ok as Knopper bundle
it's ko as Felix bundle

I see IP trame  with wireshark and I see a DNS request to felix.extensions.
I suppose a bug in security manager. Someone to help me ?

Claude 


Claude Vittoria wrote:
> 
> Hi,
> 
> I get the same issue with Felix 1.8 / JamVM 1.5.3 / GNU Classpath 0.98 on
> ARM
> Do you solve your problem ?
> 
> Cheers,
> Claude
> 
> 
> 
> Romain Rouvoy-2 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]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Felix-1.8---JamVM-1.5.2---Nokia-N800-tp24531779p25454822.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to