Date: Fri, 14 Feb 2003 14:54:21 -0700 From: "Geoff Coleman" <freebsd@ugc.ab.ca> To: Brent Verner <brent@rcfile.org>, Alexey Zelkin <phantom@FreeBSD.org.ua>, freebsd-java@FreeBSD.ORG, "Georg-W. Koltermann" <g.w.k@web.de> Subject: Re: [SUCCESS] Re: IPV6 vs IPV4 (Re: JDK14 Patchset 2 and Oracle JDBC Drivers) Message-ID: <3E4D031D.17401.13D946B6@localhost> In-Reply-To: <20030214172911.GA15991@rcfile.org> References: <1045214673.812.18.camel@hunter.muc.mscsoftware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
<?xml version="1.0" ?> <html> <head> <title></title> </head> <body> <div align="left"><font face="Arial"><span style="font-size:10pt">Brent et al</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">I guess the big issue is how do you define if IPV6 is available. </span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">IMHO the issue that Georg and I were discussing is a bug and that is that:</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">1)  If I have no ipv6 interfaces defined in the system then Java should try to bind to the IPv4 interfaces that are defined in the system. </span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">2) If I explicitly ask it to bind to an IPv4 interface by giving an IPv4 address it should use IPv4</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">3) If I  implicitly ask it, by giving a hostname that only has an IPv4 representation, then it should use IPv4.</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">The fact that I have IPv6 configured into the kernel should make no difference (it may be available to me as a sysadmin but it is not available to the user level program). In looking at the comments in "</span></font><font face="Arial"><span style="font-size:10pt"> IPv6_supported()" in </span></font><font face="Arial"><span style="font-size:10pt">"</span></font><font face="Arial"><span style="font-size:10pt">net_util_md.c" It would appear that the other platforms have struggled with number 1 above. I haven't looked further to see how they have handled 2 and 3.</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">It shouldn't be up to the JAva aplication to worry about how networking is set up on my machine.</span></font></div> <div align="left"><br/> </div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">Geoff Coleman</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">ps. Is it just me or are the freebsd e-mail lists dead?</span></font></div> <div align="left"><br/> </div> <div align="left"><br/> </div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">On 14 Feb 2003 at 12:29, Brent Verner wrote:</span></font></div> <div align="left"><br/></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> [2003-02-14 10:24] Georg-W. Koltermann said:</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | (re-adding -java to CC:)</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> See this page regarding network configuration of jdk14.</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">>   http://java.sun.com/j2se/1.4/docs/guide/net/properties.html</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> Basically, ISTM, the native jdk14 is behaving properly.  The </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> application in question (tomcat) needs to set a system property </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">>   java.net.preferIPv4Stack: true</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> when IPv6 is available (in the system) but not in use.</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> cheers.</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">>   brent</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | Thanks a lot Geoff, with that change I can now start up Tomcat 4.1.18</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | with JDK14, launch the application that we are developing, and connect</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | to the database.</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | --</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | Regards,</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | Georg.</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | Am Do, 2003-02-13 um 23.24 schrieb Geoff Coleman:</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > Georg and Alexey</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > I think the e-mail below explains a whole buch. I'm not running IPV6 currently although </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > it is configured into my kernel ( I did remove it from my kernel last night but it didn't help </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > my problem).</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > in net_util_md.c if I put in a:</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | >  return JNI_FALSE;</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > At the start of IPv6_supported()</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > things start working a whole lot better for me (I can now go the the netbeans update </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> | > and update the IDE, it crashes when I restart it but that is for another day :-) ).</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> -- </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> "Develop your talent, man, and leave the world something. Records are </span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> really gifts from people. To think that an artist would love you enough</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> to share his music with anyone is a beautiful thing."  -- Duane Allman</span></font></div> <div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div> <div align="left"><br/> </div> <div align="left"></div> </body> </html> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4D031D.17401.13D946B6>