Package: libc6-ie86
Version: libc6-i386
Severity: important


When using a java 32 bit virtual machine, the java programs fail to resolve 
names.

Here is a simple java test program 

----------------------------------------------
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.UnknownHostException;


public class TestConnect {

        /**
         * @param args
         */
        public static void main(String[] args) {
                try {
                        Socket s = new Socket();
                        SocketAddress addr = new 
InetSocketAddress("slashdot.org", 80);
                        s.connect(addr);
                } catch (UnknownHostException e) {
                        e.printStackTrace();
                } catch (IOException e) {
                        e.printStackTrace();
                }
        }
}
-------------------------------------------



Running the program with a 32 bit java virtual machine fails with:

java.net.UnknownHostException: slashdot.org
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at TestConnect.main(TestConnect.java:17)


The program makes no attempt of resolving names. No connection to name server 
is attempted.

Everything works fine if a 64 bit java VM is used, thus the problem is in the 
32 bit 
emulation.

The free virtual machine from GCC included with Debian fails with the same 
error, but for
different reasons.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to