From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14333 invoked by alias); 8 Jun 2009 20:23:12 -0000 Received: (qmail 14320 invoked by uid 22791); 8 Jun 2009 20:23:11 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Jun 2009 20:23:03 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n58KMxNE013792; Mon, 8 Jun 2009 16:22:59 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n58KMvgY014820; Mon, 8 Jun 2009 16:22:58 -0400 Received: from zebedee.pink (vpn-12-102.rdu.redhat.com [10.11.12.102]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n58KMtcW010449; Mon, 8 Jun 2009 16:22:56 -0400 Message-ID: <4A2D731F.3060406@redhat.com> Date: Mon, 08 Jun 2009 20:23:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: =?UTF-8?B?UGF0cmljayBTY2jDpGZlcg==?= CC: java@gcc.gnu.org Subject: Re: Compiling project using apache mina fails References: <123E4985-164D-41A0-A30C-5F8B5AAA4AA2@ekse.de> <4A2CE244.9030702@redhat.com> <9F97E146-6308-4332-9C72-662BD3292DBE@ekse.de> In-Reply-To: <9F97E146-6308-4332-9C72-662BD3292DBE@ekse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00027.txt.bz2 Patrick Schäfer wrote: >>> >> If I had a way to look at what was happening I'd just have a look. > thank you for helping again! > >> I don't know what class the Socket belongs to. At the call to >> Socket.getLocalSocketAddress, do something like >> >> println(socket) >> println(socket.getClass()) > > those two calls result in: > > println(socket) => gnu.java.nio.NIOSocket@6cff840 > [addr=/10.0.1.194,port=4711,localport=-1] > println(socket.getClass()) => class gnu.java.nio.NIOSocket > > The foreign port and ip-address have been set correctly. but the > localport is definitely wrong. > The connection is established on the other machine though. maybe this > port is not stored inside NIOSocket? Could be. OK, I now have a better idea what's happening. I'll have a look tomorrow. Andrew.