Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 69892 invoked from network); 30 Aug 2007 05:11:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 05:11:27 -0000 Received: (qmail 89517 invoked by uid 500); 30 Aug 2007 05:11:16 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 89456 invoked by uid 500); 30 Aug 2007 05:11:16 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 89445 invoked by uid 99); 30 Aug 2007 05:11:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 22:11:16 -0700 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 (nike.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; Thu, 30 Aug 2007 05:12:07 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IQcIp-0002Gg-Ee for axis-dev@ws.apache.org; Wed, 29 Aug 2007 22:10:47 -0700 Message-ID: <12400666.post@talk.nabble.com> Date: Wed, 29 Aug 2007 22:10:47 -0700 (PDT) From: shimcha To: axis-dev@ws.apache.org Subject: Re: Getting exception invoking SalesForce webservice using Axis2 client from my servlet In-Reply-To: <12400168.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cylus@richux.com References: <12382542.post@talk.nabble.com> <60708f4b0708290202w60cb7196v577a41d594665595@mail.gmail.com> <19e0530f0708290608i4baf1569v32a4223f12eb6731@mail.gmail.com> <12400168.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks Amila for sending me in the right direction. The problem was that I was running my servlet inside netbeans5.5.1 and it was using proxy setting in the IDE. This proxy was set to monitor HTTP packets. One thing is still not clear why was port not set? Any way you helped me solve the immediate problem. Thank you very much. shimcha wrote: > > Thanks folks for your help and actually I am able to use Axis2 client to > make calls into Salesforce in standalone program. The problem is when I > run the same code from inside a servlet. Another thing I should have > mentioned is that in the same WAR I am also exposing my WebServices so it > contains all Axis2 config files. In my development environment I don't > have any proxy set in Axis2 config or in Tomcat config. Then why is it > looking for a proxy? As Amila, mentioned there is some bad setting > somewhere and I can't see to locate where. Any ideas? > > > dims wrote: >> >> I think Amila is right. I did not face this issue when i tested...please >> see >> >> http://wso2.org/blog/dims/2548 >> >> thanks, >> dims >> >> On 8/29/07, Amila Suriarachchi wrote: >>> this exception is triggered from this code. >>> >>> if (port != null) { >>> this.setProxyPort(Integer.parseInt(port)); >>> } >>> in ProxyConfiguration.java. >>> It seems you have given an invalid number to port. >>> >>> amila. >>> >>> >>> On 8/29/07, shimcha wrote: >>> > >>> > java.lang.NumberFormatException: For input string: "" >>> > at >>> > >>> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) >>> > at java.lang.Integer.parseInt(Integer.java:468) >>> > at java.lang.Integer.parseInt(Integer.java:497) >>> > at >>> > >>> org.apache.axis2.transport.http.ProxyConfiguration.configure(ProxyConfiguration.java:185) >>> > at >>> > >>> org.apache.axis2.transport.http.AbstractHTTPSender.getHostConfiguration >>> (AbstractHTTPSender.java:274) >>> > at >>> > >>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:502) >>> > at >>> > >>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java >>> :191) >>> > at >>> > >>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) >>> > at >>> > >>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java >>> :327) >>> > at >>> > >>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) >>> > at >>> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) >>> > at >>> > >>> org.apache.axis2.description.OutInAxisOperationClient.send >>> (OutInAxisOperation.java:374) >>> > at >>> > >>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) >>> > at >>> > >>> org.apache.axis2.client.OperationClient.execute(OperationClient.java >>> :163) >>> > at >>> > >>> com.richux.saleforce.servicestubs.SforceServiceStub.login(SforceServiceStub.java:1376) >>> > >>> > -- >>> > View this message in context: >>> http://www.nabble.com/Getting-exception-invoking-SalesForce-webservice-using-Axis2-client-from-my-servlet-tf4346311.html#a12382542 >>> > Sent from the Axis - Dev mailing list archive at Nabble.com . >>> > >>> > >>> > >>> --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: >>> axis-dev-unsubscribe@ws.apache.org >>> > For additional commands, e-mail: axis-dev-help@ws.apache.org >>> > >>> > >>> >>> >>> >>> -- >>> Amila Suriarachchi, >>> WSO2 Inc. >> >> >> -- >> Davanum Srinivas :: http://davanum.wordpress.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-dev-help@ws.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/Getting-exception-invoking-SalesForce-webservice-using-Axis2-client-from-my-servlet-tf4346311.html#a12400666 Sent from the Axis - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org