Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 28425 invoked from network); 20 Feb 2008 18:50:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 18:50:10 -0000 Received: (qmail 96209 invoked by uid 500); 20 Feb 2008 18:49:56 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 96185 invoked by uid 500); 20 Feb 2008 18:49:56 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 96174 invoked by uid 99); 20 Feb 2008 18:49:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 10:49:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.48.56] (HELO web52007.mail.re2.yahoo.com) (206.190.48.56) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 20 Feb 2008 18:49:20 +0000 Received: (qmail 9987 invoked by uid 60001); 20 Feb 2008 18:49:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=SSL1MKbb0MbWiVECc2XD5vSdJZwu7DBi7XsbEu7a3T6WXH+e/BFQQCQMRtGrCr46yZkuAdLB9VOGVPeWQQRK7APVGvqzb3s0ZdrlRLyOe3k4tqPfPx37UEgF3x5VWXK+Y7qYa0WcRoIxzGk1p1T02puV+QYk1AGX4r2v9UmeqHE=; X-YMail-OSG: 9Wek290VM1nj8RrKZHZVPmmc4E0M2wYvUPT3hAHCireUzYPigttMZ243wASN2xF8V0YTfuOL0XTy5E9xJWBqw0FhtiRLZBoynMWcEBYn.S3TPDofLYJXskU5V0XwSkUs0uEFJY2ReMCOIg4- Received: from [72.36.94.20] by web52007.mail.re2.yahoo.com via HTTP; Wed, 20 Feb 2008 10:49:28 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.162 Date: Wed, 20 Feb 2008 10:49:28 -0800 (PST) From: Mario Felarca Subject: Axis 1.4 - CommonsHTTPSender and proxy protocol problem To: Axis User MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <820823.9682.qm@web52007.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hello all, This is with Axis 1.4 and commons-httpclient 3.0.1 I have an axis client, deployed via webstart, which has been fine in the past with picking up its proxy settings from the browser and communicating correctly. Recently, I ran into a deployment at a customer site where the communication was failing with a NullPointerException coming out of ...axis.transport.http.CommonsHTTPSender.invoke. I put some simple prints into the source around that area and rebuilt the axis jar to try and get a bit more information. I have included a snip of the logs below and a section of the code I modified as well, however the end result is that while it is reading the proxy host correctly, for some reason there ends up being no protocol. This is an issue because the code expects there to be one set. I also placed prints in the getHostConfiguration method, which is called before the failure, and it appears from that block of code that in the case where a proxy is set, the host and port do not get set on the HostConfiguration object. This would be why the null pointer ends up throwing an exception when the axis CommonsHTTPSender attempts to test if the protocol is secure. Has anyone seen an issue like this before? Is there something I am doing wrong fundamentally, or something incorrect about the data that is being passed in? Any thoughts or ideas would be greatly appreciated. Thanks in advance, Mario- Log snip: AXIS-MMF targetURL is https://mywebserviceurl AXIS-MMF port is -1 AXIS-MMF hostInNonProxyList is false AXIS-MMF hostConfiguration is HostConfiguration[proxyHost=http://proxy.customer] AXIS-MMF hostConfiguration protocol is null AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.NullPointerException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:193) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) Code snip: Lines 185 to 197 --- 193 is the hostConfiguration.getProtocol().isSecure() line. if (msgContext.getMaintainSession()) { HttpState state = httpClient.getState(); method.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); String host = hostConfiguration.getHost(); String path = targetURL.getPath(); //MMF System.out.println("AXIS-MMF hostConfiguration is "+hostConfiguration); System.out.println("AXIS-MMF hostConfiguration protocol is "+hostConfiguration.getProtocol()); boolean secure = hostConfiguration.getProtocol().isSecure(); fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE, host, path, secure); fillHeaders(msgContext, state, HTTPConstants.HEADER_COOKIE2, host, path, secure); httpClient.setState(state); } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org