From owner-freebsd-java@FreeBSD.ORG Fri Jan 16 13:33:49 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DF37106567F for ; Fri, 16 Jan 2009 13:33:49 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.freebsd.org (Postfix) with ESMTP id F0DBA8FC0C for ; Fri, 16 Jan 2009 13:33:48 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out2.tiscali.nl with smtp id 1LNoaS-0003iU-Qp for ; Fri, 16 Jan 2009 14:18:12 +0100 Received: (qmail 1806 invoked from network); 16 Jan 2009 12:51:30 -0000 Received: from localhost (HELO 82-170-177-25.ip.telfort.nl) (127.0.0.1) by localhost with SMTP; 16 Jan 2009 12:51:30 -0000 Date: Fri, 16 Jan 2009 13:51:29 +0100 From: "Ronald Klop" Cc: freebsd-java@freebsd.org Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.63 (FreeBSD) Subject: openjdk 7 error in socket X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 13:33:50 -0000 Hi, I just build openjdk 7 on FreeBSD 7.1-amd64. It builds after I found this http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-August/000006.html. I've problems running something which makes a network connection. java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:380) at java.net.Socket.connect(Socket.java:569) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.(Socket.java:416) at java.net.Socket.(Socket.java:232) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:268) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2745) at com.mysql.jdbc.Connection.(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:169) at nl.base.sql.connect.ConnectionUtils.connectIntern(ConnectionUtils.java:101) at nl.base.sql.connect.ConnectionUtils.createConnectionMySQL(ConnectionUtils.java:95) at nl.base.sql.connect.ConnectionUtils.getConnection(ConnectionUtils.java:44) at nl.base.sql.dbpool.DBConnectionInfo.(DBConnectionInfo.java:36) I don't set any special socket option. Not in Java and I don't have special settings in FreeBSD also. Running GENERIC kernel. I'm using ipv4. This happens if I make a connection to mysql, but also in the subclipse plugin in eclipse if I connect to the svn server. Is this a known issue? Can I solve this? Or provide more information? Ronald.