Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 50713 invoked from network); 25 Jan 2008 07:38:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2008 07:38:23 -0000 Received: (qmail 25248 invoked by uid 500); 25 Jan 2008 07:38:12 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 25214 invoked by uid 500); 25 Jan 2008 07:38:12 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 25205 invoked by uid 99); 25 Jan 2008 07:38:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2008 23:38:12 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2008 07:37:45 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JIJ8K-0003sf-3Z for cxf-user@incubator.apache.org; Thu, 24 Jan 2008 23:37:52 -0800 Message-ID: <15082583.post@talk.nabble.com> Date: Thu, 24 Jan 2008 23:37:52 -0800 (PST) From: Prinston To: cxf-user@incubator.apache.org Subject: Problem: When invoke HttpServletRequet.getRemoteAddr(), it return the old client IP... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tj.h@yahoo.com.tw X-Virus-Checked: Checked by ClamAV on apache.org Dears: I put some code into a web method to get client IP. ex: public boolean recordIP() { try { debugInfo.append(" ").append( ((HttpServletRequest) ctx .get(AbstractHTTPDestination.HTTP_REQUEST)) .getRemoteAddr()); return true; } catch (Exception e) { return false; } } When the first client from IP1 call this method, it record the IP1 address. No problem. But then the second client from IP2 call this method, it "SOMETIMES" still record the IP1 address (the old one). This situation might occur in some condition (ex: after browsing some other jsp page in other web ap in the same web instance). I am not sure what condition may cause this problem exactly. Has anyone got this problem before? Thanks! My AP configuration: Apache 2.2.24+Tomcat5.5.20(using AJP13 connector)+CXF2.0.1 -- View this message in context: http://www.nabble.com/Problem%3A-When-invoke-HttpServletRequet.getRemoteAddr%28%29%2C-it-return-the-old-client-IP...-tp15082583p15082583.html Sent from the cxf-user mailing list archive at Nabble.com.