Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2010 17:25:15 -0400
From:      Damian Gerow <dgerow@afflictions.org>
To:        Stacy Millions <stacy@Millions.Ca>
Cc:        Dominic Fandrey <kamikaze@bsdforen.de>, freebsd-ports@freebsd.org
Subject:   Re: OpenJDK6 not building
Message-ID:  <20100519212514.GC68124@plebeian.afflictions.org>
In-Reply-To: <4BF4562B.5060208@millions.ca>
References:  <4BF39021.8080005@bsdforen.de> <4BF44923.5090101@millions.ca> <20100519205008.GB68124@plebeian.afflictions.org> <4BF4562B.5060208@millions.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Stacy Millions wrote:
: On 05/19/10 14:50, Damian Gerow wrote:
: > Stacy Millions wrote:
: > : On 05/19/10 01:15, Dominic Fandrey wrote:
: > :
: > :>  java.net.SocketException: Invalid argument
: > :>  	at java.net.PlainSocketImpl.socketConnect(Native Method)
: > :>  	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
: > :
: > : I have seen that before... Have you enabled IPv6 support? Have you set
: > : the system property java.net.preferIPv4Stack=true? Perhaps setting the
: > : environment variable JAVAVM_OPTS thusly will help
: > : JAVAVM_OPTS="-Djava.net.preferIPv4Stack=true"
: >
: > There are no AAAA records for jaxp.dev.java.net, so preferring v4 won't help
: > much.
: 
: AAAA records are not part of the issue... if you want a quick and dirty 
: test, try this

Regardless, I tried with java.net.preferIPv4Stack=true, and it had no effect.

: 1. download http://javassh.org/download/jta26.jar this is a java/swing 
: telnet client
: 
: 2. Run
:    java -jar jta26.jar <someipaddress>
: and you get:
:    Socket: can't connect: java.net.SocketException: Invalid argument
: 
: 3. Run
:    java -Djava.net.preferIPv4Stack=true -jar jta26.jar <someipaddress>
: and it works (assuming there is a telnet server there to connect to)
: 
: At least that is how things behave for me.

That seems ... counter-intuitive.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100519212514.GC68124>