From andrew@areilly.bpa.nu  Mon Nov 17 22:37:25 2008
Return-Path: <andrew@areilly.bpa.nu>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 85DE51065670
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Nov 2008 22:37:25 +0000 (UTC)
	(envelope-from andrew@areilly.bpa.nu)
Received: from nskntmtas06p.mx.bigpond.com (nskntmtas06p.mx.bigpond.com [61.9.168.152])
	by mx1.freebsd.org (Postfix) with ESMTP id 12C758FC1B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Nov 2008 22:37:24 +0000 (UTC)
	(envelope-from andrew@areilly.bpa.nu)
Received: from nskntotgx02p.mx.bigpond.com ([124.188.162.219])
          by nskntmtas06p.mx.bigpond.com with ESMTP
          id <20081117223718.YWTO9726.nskntmtas06p.mx.bigpond.com@nskntotgx02p.mx.bigpond.com>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Mon, 17 Nov 2008 22:37:18 +0000
Received: from areilly.bpa.nu ([124.188.162.219])
          by nskntotgx02p.mx.bigpond.com with ESMTP
          id <20081117223715.FZYZ1284.nskntotgx02p.mx.bigpond.com@areilly.bpa.nu>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Mon, 17 Nov 2008 22:37:15 +0000
Received: (qmail 7375 invoked by uid 501); 17 Nov 2008 22:36:49 -0000
Message-Id: <20081117223649.7374.qmail@areilly.bpa.nu>
Date: 17 Nov 2008 22:36:49 -0000
From: Andrew Reilly <andrew@areilly.bpa.nu>
Reply-To: Andrew Reilly <andrew@areilly.bpa.nu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: java/jdk16 built from source can't bind a socket, but diablo-jdk16 downloaed during build can.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         128948
>Category:       java
>Synopsis:       java/jdk16 built from source can't bind a socket, but diablo-jdk16 downloaed during build can.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 17 22:40:00 UTC 2008
>Closed-Date:    Mon Dec 17 02:42:45 UTC 2012
>Last-Modified:  Mon Dec 17 02:42:45 UTC 2012
>Originator:     Andrew Reilly
>Release:        FreeBSD 7.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD duncan.reilly.home 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #36: Sat Nov 15 09:26:38 EST 2008 root@duncan.reilly.home:/usr/obj/usr/src/sys/DUNCAN amd64


	Machine is an Athlon64-X2 with 2G RAM
>Description:
	Just built jdk-1.6.0.3p4_6 from ports, which had the
	effect of downloading diablo-jdk-1.6.0.07.02_2 as part
	of the build process.  I had netbeans-6.1 installed, so
	used that as a test.  Using the source-built jdk
	resulted in this error:

$ netbeans --jdkhome /usr/local/jdk1.6.0/
java.net.BindException: Can't assign requested address
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at org.netbeans.CLIHandler$Server.<init>(CLIHandler.java:964)
	at org.netbeans.CLIHandler.initialize(CLIHandler.java:523)
	at org.netbeans.CLIHandler.initialize(CLIHandler.java:346)
	at org.netbeans.MainImpl.execute(MainImpl.java:180)
	at org.netbeans.MainImpl.main(MainImpl.java:75)
	at org.netbeans.Main.main(Main.java:75)

	and when netbeans started it complained of being unable
	to connect to the network.

	Using the diablo-jdk-1.6 resulted in a flawless run with
	no commentary on stderr.

>How-To-Repeat:
	Build /usr/ports/java/jdk16, then run netbeans.
>Fix:

	Don't know, sorry.  A work-around appears to be to run
	diablo-jdk instead.


>Release-Note:
>Audit-Trail:

From: "Kevin Downey" <redchin@gmail.com>
To: "Andrew Reilly" <andrew@areilly.bpa.nu>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: java/128948: java/jdk16 built from source can't bind a socket, but diablo-jdk16 downloaed during build can.
Date: Mon, 17 Nov 2008 14:51:04 -0800

 have you tried passing:
 -Djava.net.preferIPv4Stack=true
 to java?
 
 -- 
 The Mafia way is that we pursue larger goals under the guise of
 personal relationships.
     Fisheye

From: Andrew Reilly <andrew@areilly.bpc-users.org>
To: "Kevin Downey" <redchin@gmail.com>
Cc: "Andrew Reilly" <andrew@areilly.bpa.nu>,
 FreeBSD-gnats-submit@freebsd.org
Subject: Re: java/128948: java/jdk16 built from source can't bind a socket,
 but diablo-jdk16 downloaed during build can.
Date: Tue, 18 Nov 2008 10:07:53 +1100

 On Mon, 17 Nov 2008 14:51:04 -0800
 "Kevin Downey" <redchin@gmail.com> wrote:
 
 > have you tried passing:
 > -Djava.net.preferIPv4Stack=true
 > to java?
 
 I hadn't, but have just given that a go and it did not appear to
 make any difference.  Same error message and same lack of network
 connectivity.
 
 Thanks for the suggestion, though.
 
 Cheers,
 
 Andrew
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Mon Dec 17 02:42:44 UTC 2012 
State-Changed-Why:  
diablo-jdk16 has been deprecated 

http://www.freebsd.org/cgi/query-pr.cgi?pr=128948 
>Unformatted:
