From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4911 invoked by alias); 8 Jun 2009 19:26:09 -0000 Received: (qmail 4901 invoked by uid 22791); 8 Jun 2009 19:26:08 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from mo-p00-ob.rzone.de (HELO mo-p00-ob.rzone.de) (81.169.146.160) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Jun 2009 19:26:02 +0000 X-RZG-AUTH: :PH8kcEu7frH/iS35MfCwlb7f0DWuyUPE2aUoqiantATRX4oBEQ== X-RZG-CLASS-ID: mo00 Received: from [10.0.1.199] (e178209122.adsl.alicedsl.de [85.178.209.122]) by post.strato.de (fruni mo7) (RZmta 18.38) with AES128-SHA encrypted ESMTP id 6061b1l58HZkGz ; Mon, 8 Jun 2009 21:25:40 +0200 (MEST) Cc: java@gcc.gnu.org Message-Id: <9F97E146-6308-4332-9C72-662BD3292DBE@ekse.de> From: =?ISO-8859-1?Q?Patrick_Sch=E4fer?= To: Andrew Haley In-Reply-To: <4A2CE244.9030702@redhat.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Compiling project using apache mina fails Date: Mon, 08 Jun 2009 19:26:00 -0000 References: <123E4985-164D-41A0-A30C-5F8B5AAA4AA2@ekse.de> <4A2CE244.9030702@redhat.com> 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/msg00026.txt.bz2 >> > 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? thank you Patrick