From owner-freebsd-java  Fri Feb 14  1:24:55 2003
Delivered-To: freebsd-java@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1851B37B401
	for <freebsd-java@freebsd.org>; Fri, 14 Feb 2003 01:24:52 -0800 (PST)
Received: from smtp.web.de (smtp03.web.de [217.72.192.158])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DDF8643F75
	for <freebsd-java@freebsd.org>; Fri, 14 Feb 2003 01:24:50 -0800 (PST)
	(envelope-from g.w.k@web.de)
Received: from [213.148.149.130] (helo=[172.17.22.32])
	by smtp.web.de with asmtp (WEB.DE(Exim) 4.95 #31)
	id 18jc5C-0001xT-00; Fri, 14 Feb 2003 10:24:34 +0100
Subject: [SUCCESS] Re: IPV6 vs IPV4 (Re: JDK14 Patchset 2 and Oracle JDBC
	Drivers)
From: "Georg-W. Koltermann" <g.w.k@web.de>
To: Geoff Coleman <freebsd@ugc.ab.ca>
Cc: Alexey Zelkin <phantom@FreeBSD.org.ua>, freebsd-java@freebsd.org
In-Reply-To: <3E4BB8C1.12849.ECECF1B@localhost>
References: <3E4A7C9D.14549.9FBDFA6@localhost>
	 <3E4BB8C1.12849.ECECF1B@localhost>
Content-Type: text/plain
Organization: 
Message-Id: <1045214673.812.18.camel@hunter.muc.mscsoftware.com>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.0 
Date: 14 Feb 2003 10:24:33 +0100
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-java.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-java>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-java>
X-Loop: FreeBSD.org

(re-adding -java to CC:)

Thanks a lot Geoff, with that change I can now start up Tomcat 4.1.18
with JDK14, launch the application that we are developing, and connect
to the database.

--
Regards,
Georg.

Am Do, 2003-02-13 um 23.24 schrieb Geoff Coleman:
> Georg and Alexey
> 
> I think the e-mail below explains a whole buch. I'm not running IPV6 currently although 
> it is configured into my kernel ( I did remove it from my kernel last night but it didn't help 
> my problem).
> 
> 
> in net_util_md.c if I put in a:
>  return JNI_FALSE;
> 
> At the start of IPv6_supported()
> 
> things start working a whole lot better for me (I can now go the the netbeans update 
> and update the IDE, it crashes when I restart it but that is for another day :-) ).
> 
> 
> Geoff
> 
> 
> 
> 
> 
> On 13 Feb 2003 at 19:11, Georg-W. Koltermann wrote:
> 
> > Geoff,
> > 
> > it works for me, although the output of running it in jdk14 looks a
> > little suspicious (I modified the program to quit after reading one null
> > line, when I stop sending it input):
> > 
> >         hunter[85]$ java -version
> >         java version "1.3.1-p7"
> >         Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p7-gwk-030207-09:20)
> >         Java HotSpot(TM) Client VM (build 1.3.1-internal, mixed mode)
> >         hunter[86]$ java receiver
> >         INA: localhost/127.0.0.1
> >         Server Socket opened: ServerSocket[addr=localhost/127.0.0.1,port=0,localport=62001]
> >         PAst accept
> >         hi
> >         ho
> >         null
> >         hunter[87]$ 
> >         
> > (continuing in another window with different PATH):
> >         
> >         hunter[39]$ java -version
> >         java version "1.4.1-p2"
> >         Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-p2-gwk_12_feb_2003_16_32)
> >         Java HotSpot(TM) Client VM (build 1.4.1-p2-gwk_12_feb_2003_14_08, mixed mode)
> >         hunter[40]$ java receiver
> >         INA: localhost/0:0:0:0:0:0:0:1
> >         Server Socket opened: ServerSocket[addr=localhost/0:0:0:0:0:0:0:1,port=0,localport=62001]
> >         PAst accept
> >         hi
> >         ho
> >         null
> >         hunter[41]$ uname -a
> >         FreeBSD hunter.muc.mscsoftware.com 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Jan 30 23:11:35 CET 2003     gwk@hunter.muc.mscsoftware.com:/usr/src/sys/i386/compile/HUNTER  i386
> >         hunter[42]$ 
> >         
> > 
> > So it seems JDK14 is using IPv6 while JDK131 uses IPv4.
> > 
> > And when I remove the IPv6 address:
> > 
> >         hunter# ifconfig lo0 inet6 delete ::1
> >         hunter# ifconfig lo0
> >         lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> >                 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
> >                 inet 127.0.0.1 netmask 0xff000000 
> >         hunter# 
> >         
> > (continuing in the JDK14 window):
> > 
> >         hunter[43]$ java receiver
> >         INA: localhost/0:0:0:0:0:0:0:1
> >         new server socket: java.net.BindException: Can't assign requested address
> >         Exception in thread "main" java.lang.NullPointerException
> >                 at receiver.<init>(receiver.java:59)
> >                 at receiver.main(receiver.java:81)
> >         hunter[44]$ 
> >         
> > Now, when I remove the IPv6 entry for localhost in /etc/hosts:
> > 
> >         hunter[44]$ java receiver
> >         INA: localhost/127.0.0.1
> >         new server socket: java.net.BindException: Can't assign requested address
> >         Exception in thread "main" java.lang.NullPointerException
> >                 at receiver.<init>(receiver.java:59)
> >                 at receiver.main(receiver.java:81)
> >         hunter[45]$ 
> > 
> > And the JDK131 still works.
> >         
> > Tired for today, going home.  Maybe I'll check my email later again from home.
> > 
> > --
> > Thanks,
> > Regards,
> > 
> > Georg.
> > 
> > 
> > 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message