Package: ia32-sun-java6-bin
Version: 6-06-1
Severity: grave
Justification: renders package unusable


Cannot resolve domain names.  Resolve fine on the rest of the system, have not 
tested with other JDK's.  Installed from package and set with 
update-java-alternatives.

DNS works for everything else on my system.  Running on Debian 2.6.23-AMD64.  
Have tried both Lenny packages and Sid packages.  Works as expected with 
sun-java6-bin,
fails with ia32-sun-java6-bin.  Arg.

Test with the following program:
// code modified from
// http://www.rgagnon.com/javadetails/java-0452.html
import java.net.InetAddress;

public class SimpleDNS {
  public static void main( String args[] ) {
    if( args.length == 0 ) {
      System.err.println( "Usage: SimpleDNS host" );
      System.exit( 99 );
    }
    for( int i = 0; i < args.length; i++ ) {
      try {
        System.out.println( args[i] + " is " +
          doLookup( args[i] ));
      }
      catch( Exception e ) {
        System.out.println(args[i] + " : " + e.getMessage());
        e.printStackTrace();
      }
    }
  }

  static String doLookup( String hostName ) throws Exception {
    InetAddress addr = InetAddress.getByName( hostName );
    return addr.getHostAddress();
  }
}

To Run:
  /usr/lib/jvm/ia32-java-6-sun/bin/java SimpleDNS slashdot.org

Excepted:
  slashdot.org is 66.35.250.150 [ed: or permutation thereof]

Result:
  slashdot.org : slashdot.org
  java.net.UnknownHostException: slashdot.org
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
        at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
        at java.net.InetAddress.getAllByName(InetAddress.java:1083)
        at java.net.InetAddress.getAllByName(InetAddress.java:1019)
        at java.net.InetAddress.getByName(InetAddress.java:969)
        at SimpleDNS.doLookup(SimpleDNS.java:25)
        at SimpleDNS.main(SimpleDNS.java:14)



-- System Information:
Debian Release: lenny/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'testing'), (500, 'stable'), (100, 
'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.16.13-xenU (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



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

Reply via email to