Return-Path: Delivered-To: apmail-ws-sandesha-dev-archive@www.apache.org Received: (qmail 4255 invoked from network); 9 May 2010 03:23:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 May 2010 03:23:14 -0000 Received: (qmail 82535 invoked by uid 500); 9 May 2010 03:23:13 -0000 Delivered-To: apmail-ws-sandesha-dev-archive@ws.apache.org Received: (qmail 82290 invoked by uid 500); 9 May 2010 03:23:13 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 82282 invoked by uid 99); 9 May 2010 03:23:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 03:23:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 03:23:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o493MmGm010408 for ; Sun, 9 May 2010 03:22:48 GMT Message-ID: <33139437.53461273375368163.JavaMail.jira@thor> Date: Sat, 8 May 2010 23:22:48 -0400 (EDT) From: "Amila Chinthaka Suriarachchi (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Commented: (AXIS2-4705) connection reset problem with jave.net.socketexception when trying to access a web service using a domain name. In-Reply-To: <26462244.35821273100286937.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12865531#action_12865531 ] Amila Chinthaka Suriarachchi commented on AXIS2-4705: ----------------------------------------------------- please try with a nightly build[1]. try to see the message receive from your redirect server using tcpmon[2]. Axis2 users commons http client to send the message. check whether is supports redirection. [1] http://repository.apache.org/snapshots/org/apache/axis2/distribution/SNAPSHOT/ [2] http://ws.apache.org/commons/tcpmon/ > connection reset problem with jave.net.socketexception when trying to access a web service using a domain name. > --------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-4705 > URL: https://issues.apache.org/jira/browse/AXIS2-4705 > Project: Axis2 > Issue Type: Bug > Components: admin console, client-api, deployment, Tools, wsdl > Affects Versions: 1.4.1, 1.4 > Environment: jdk1.5 axis1.4 websphere 6.1 > Reporter: Bheemeswara Rao Amruthavakkula > Priority: Blocker > Attachments: axis2.xml, MichaelsTransaction.wsdl > > > Hi All > facing issues while accessing my webservice over a firewall server where our domain name is configured. I have created webservice and client using eclipse plug-in code generator. I am able to access webservice using server name or the ip address such as TransactionProcessor (http://ecwstest:80/axis2/services/TransactionProcessor). Same service is giving us problems when trying to access using domain name instread which is configured over a firewall such as (http://wwwtest.michaels.com:80/axis2/services/TransactionProcessor). We are struggling this issue for fast few days. Any help will be highly appreciated. find client code and exception I am getting below. attached are axis2.xml, wsdl file and services.xml > Recently analyzed the logs and found that the request is hitting web server but not the app server. In the working scenario it is generating logs on Application server, but in the other scenario we are not seing any trace in websphere logs. > client side code: > TransactionProcessorStub stub; > > > > //stub = new TransactionProcessorStub("http://wwwtest.michaels.com:80/axis2/services/TransactionProcessor"); > //stub = new TransactionProcessorStub("http://wwwtest1.michaels.com"); > //stub = new TransactionProcessorStub("http://ecwstest/axis2/services/TransactionProcessor"); > stub = new TransactionProcessorStub("http://ecwstest:80/axis2/services/TransactionProcessor"); > TransactionProcessorStub.RunTransaction df = new TransactionProcessorStub.RunTransaction(); > df.setInputMessageIn(textXml); > TransactionProcessorStub.RunTransactionResponse res = stub.runTransaction(df); > System.out.println("response value : " +res.get_return()); > exception: > org.apache.axis2.AxisFault: Connection reset > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) > at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > at com.michaels.commerce.client.online.shopping.TransactionProcessorStub.runTransaction(TransactionProcessorStub.java:198) > at com.michaels.commerce.client.online.shopping.RealStub.main(RealStub.java:119) > Caused by: java.net.SocketException: Connection reset > at java.net.SocketInputStream.read(SocketInputStream.java:168) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read(BufferedInputStream.java:237) > at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) > at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) > at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) > at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) > at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) > at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) > at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) > at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) > at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542) > at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189) > ... 9 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org