You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gnanasekaran Vinayakamurthy <Gn...@phoenix.edu> on 2006/10/19 21:30:36 UTC

org.apache.axis2.AxisFault: Connection reset

Hi Group,


I am getting connection reset problem in Axis2, when I try to make web
service calls to .Net client (MS Reporting services) again and again....
But it works fine when called initial couple of times... 

Could any one help on this?


I am getting following exception:

org.apache.axis2.AxisFault: Connection reset; nested exception is:
        java.net.SocketException: Connection reset; nested exception is:
        org.apache.axis2.AxisFault: Connection reset; nested exception
is:
        java.net.SocketException: Connection reset
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
monsHTTPTransportSender.java:227)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:352)
        at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
isOperation.java:282)
        at
com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingserv
ices.ReportingService2005Stub.ListChildren(ReportingService2005Stub.java
:2508)
        at
_jsp._jsp._folders__jsp.createChildFolderList(_folders__jsp.java:104)

        at _jsp._jsp._folders__jsp._jspService(_folders__jsp.java:317)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
        at com.caucho.jsp.Page.pageservice(Page.java:570)
        at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.j
ava:159)
        at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain
.java:178)
        at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocatio
n.java:229)
        at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268
)
        at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axis2.AxisFault: Connection reset; nested
exception is:
        java.net.SocketException: Connection reset
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
geWithCommons(CommonsHTTPTransportSender.java:329)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
monsHTTPTransportSender.java:206)
        ... 16 more
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:235)
        at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:
77)
        at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105
)
        at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.
java:1115)
        at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMetho
dBase.java:1832)
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB
ase.java:1590)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
ava:995)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
pMethodDirector.java:397)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:346)
        at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abst
ractHTTPSender.java:534)
        at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPS
ender.java:119)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
geWithCommons(CommonsHTTPTransportSender.java:323)
        ... 17 more
 



I would really appreciate your help.


Thanks,
Vinay


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: org.apache.axis2.AxisFault: Connection reset

Posted by robert lazarski <ro...@gmail.com>.
Are you using the latest 1.1 nightly?

http://people.apache.org/dist/axis2/nightly/

If so, please file a jira and paste your 'netstat -a' output, along
with your code.  This might be related to another jira issue that I
was unsuccessful in reproducing, so your full test case would be
appreciated along with your environment info - memory, jvm settings
etc.

Robert

On 10/19/06, Gnanasekaran Vinayakamurthy
<Gn...@phoenix.edu> wrote:
>
> Axis2 client and .Net web service server(MS Reporting services) are
> running on windows platform and I just tried using 'netstat -a' in the
> system, where my Axis2 client is running and  found that connections
> made by Axis2 were not closing for long time, however I had closed
> connection using finalizeInvoke() on the client code. And due to this
> connection reset is thrown.
>
> Is this a known bug in Axis2? or is there any way, where we could close
> connections completely from Axis2?
>
> Please let me know, how it can be fixed?
>
> Thanks,
> Vinay
>
> -----Original Message-----
> From: robert lazarski [mailto:robertlazarski@gmail.com]
> Sent: Thursday, October 19, 2006 5:51 PM
> To: axis-user@ws.apache.org
> Subject: Re: org.apache.axis2.AxisFault: Connection reset
>
> Try putting a perpetual ping on the server while executing the service
> calls and see if that helps. You also could try 'netstat -ancp | grep
> 8080'  or similar command and watch the socket activity - that may
> explain what is happening. This is a common error on db's , which may
> have something to do with the sql server part of the stack trace.
>
> HTH,
> Robert
>
> On 10/19/06, Gnanasekaran Vinayakamurthy
> <Gn...@phoenix.edu> wrote:
> > Hi Group,
> >
> >
> > I am getting connection reset problem in Axis2, when I try to make web
> > service calls to .Net client (MS Reporting services) again and
> again....
> > But it works fine when called initial couple of times...
> >
> > Could any one help on this?
> >
> >
> > I am getting following exception:
> >
> > org.apache.axis2.AxisFault: Connection reset; nested exception is:
> >         java.net.SocketException: Connection reset; nested exception
> is:
> >         org.apache.axis2.AxisFault: Connection reset; nested exception
> > is:
> >         java.net.SocketException: Connection reset
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
> > monsHTTPTransportSender.java:227)
> >         at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642)
> >         at
> > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
> > peration.java:352)
> >         at
> > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
> > isOperation.java:282)
> >         at
> > com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingserv
> >
> ices.ReportingService2005Stub.ListChildren(ReportingService2005Stub.java
> > :2508)
> >         at
> > _jsp._jsp._folders__jsp.createChildFolderList(_folders__jsp.java:104)
> >
> >         at _jsp._jsp._folders__jsp._jspService(_folders__jsp.java:317)
> >         at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
> >         at com.caucho.jsp.Page.pageservice(Page.java:570)
> >         at
> > com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.j
> > ava:159)
> >         at
> > com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain
> > .java:178)
> >         at
> > com.caucho.server.dispatch.ServletInvocation.service(ServletInvocatio
> > n.java:229)
> >         at
> > com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268
> > )
> >         at
> > com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
> >         at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
> >         at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
> >         at java.lang.Thread.run(Thread.java:595)
> > Caused by: org.apache.axis2.AxisFault: Connection reset; nested
> > exception is:
> >         java.net.SocketException: Connection reset
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
> > geWithCommons(CommonsHTTPTransportSender.java:329)
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
> > monsHTTPTransportSender.java:206)
> >         ... 16 more
> > 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:235)
> >         at
> > org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:
> > 77)
> >         at
> > org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105
> > )
> >         at
> > org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.
> > java:1115)
> >         at
> > org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMetho
> > dBase.java:1832)
> >         at
> > org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB
> > ase.java:1590)
> >         at
> > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
> > ava:995)
> >         at
> > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
> > pMethodDirector.java:397)
> >         at
> > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
> > thodDirector.java:170)
> >         at
> > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
> > a:396)
> >         at
> > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
> > a:346)
> >         at
> > org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abst
> > ractHTTPSender.java:534)
> >         at
> > org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPS
> > ender.java:119)
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
> > geWithCommons(CommonsHTTPTransportSender.java:323)
> >         ... 17 more
> >
> >
> >
> >
> > I would really appreciate your help.
> >
> >
> > Thanks,
> > Vinay
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: org.apache.axis2.AxisFault: Connection reset

Posted by Gnanasekaran Vinayakamurthy <Gn...@phoenix.edu>.
Axis2 client and .Net web service server(MS Reporting services) are
running on windows platform and I just tried using 'netstat -a' in the
system, where my Axis2 client is running and  found that connections
made by Axis2 were not closing for long time, however I had closed
connection using finalizeInvoke() on the client code. And due to this
connection reset is thrown.

Is this a known bug in Axis2? or is there any way, where we could close
connections completely from Axis2? 

Please let me know, how it can be fixed?

Thanks,
Vinay

-----Original Message-----
From: robert lazarski [mailto:robertlazarski@gmail.com] 
Sent: Thursday, October 19, 2006 5:51 PM
To: axis-user@ws.apache.org
Subject: Re: org.apache.axis2.AxisFault: Connection reset

Try putting a perpetual ping on the server while executing the service
calls and see if that helps. You also could try 'netstat -ancp | grep
8080'  or similar command and watch the socket activity - that may
explain what is happening. This is a common error on db's , which may
have something to do with the sql server part of the stack trace.

HTH,
Robert

On 10/19/06, Gnanasekaran Vinayakamurthy
<Gn...@phoenix.edu> wrote:
> Hi Group,
>
>
> I am getting connection reset problem in Axis2, when I try to make web
> service calls to .Net client (MS Reporting services) again and
again....
> But it works fine when called initial couple of times...
>
> Could any one help on this?
>
>
> I am getting following exception:
>
> org.apache.axis2.AxisFault: Connection reset; nested exception is:
>         java.net.SocketException: Connection reset; nested exception
is:
>         org.apache.axis2.AxisFault: Connection reset; nested exception
> is:
>         java.net.SocketException: Connection reset
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
> monsHTTPTransportSender.java:227)
>         at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
> peration.java:352)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
> isOperation.java:282)
>         at
> com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingserv
>
ices.ReportingService2005Stub.ListChildren(ReportingService2005Stub.java
> :2508)
>         at
> _jsp._jsp._folders__jsp.createChildFolderList(_folders__jsp.java:104)
>
>         at _jsp._jsp._folders__jsp._jspService(_folders__jsp.java:317)
>         at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
>         at com.caucho.jsp.Page.pageservice(Page.java:570)
>         at
> com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.j
> ava:159)
>         at
> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain
> .java:178)
>         at
> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocatio
> n.java:229)
>         at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268
> )
>         at
> com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
>         at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
>         at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault: Connection reset; nested
> exception is:
>         java.net.SocketException: Connection reset
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
> geWithCommons(CommonsHTTPTransportSender.java:329)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
> monsHTTPTransportSender.java:206)
>         ... 16 more
> 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:235)
>         at
> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:
> 77)
>         at
> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105
> )
>         at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.
> java:1115)
>         at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMetho
> dBase.java:1832)
>         at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB
> ase.java:1590)
>         at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
> ava:995)
>         at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
> pMethodDirector.java:397)
>         at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
> thodDirector.java:170)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
> a:396)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
> a:346)
>         at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abst
> ractHTTPSender.java:534)
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPS
> ender.java:119)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
> geWithCommons(CommonsHTTPTransportSender.java:323)
>         ... 17 more
>
>
>
>
> I would really appreciate your help.
>
>
> Thanks,
> Vinay
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: org.apache.axis2.AxisFault: Connection reset

Posted by robert lazarski <ro...@gmail.com>.
Try putting a perpetual ping on the server while executing the service
calls and see if that helps. You also could try 'netstat -ancp | grep
8080'  or similar command and watch the socket activity - that may
explain what is happening. This is a common error on db's , which may
have something to do with the sql server part of the stack trace.

HTH,
Robert

On 10/19/06, Gnanasekaran Vinayakamurthy
<Gn...@phoenix.edu> wrote:
> Hi Group,
>
>
> I am getting connection reset problem in Axis2, when I try to make web
> service calls to .Net client (MS Reporting services) again and again....
> But it works fine when called initial couple of times...
>
> Could any one help on this?
>
>
> I am getting following exception:
>
> org.apache.axis2.AxisFault: Connection reset; nested exception is:
>         java.net.SocketException: Connection reset; nested exception is:
>         org.apache.axis2.AxisFault: Connection reset; nested exception
> is:
>         java.net.SocketException: Connection reset
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
> monsHTTPTransportSender.java:227)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
> peration.java:352)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
> isOperation.java:282)
>         at
> com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingserv
> ices.ReportingService2005Stub.ListChildren(ReportingService2005Stub.java
> :2508)
>         at
> _jsp._jsp._folders__jsp.createChildFolderList(_folders__jsp.java:104)
>
>         at _jsp._jsp._folders__jsp._jspService(_folders__jsp.java:317)
>         at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
>         at com.caucho.jsp.Page.pageservice(Page.java:570)
>         at
> com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.j
> ava:159)
>         at
> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain
> .java:178)
>         at
> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocatio
> n.java:229)
>         at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268
> )
>         at
> com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
>         at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
>         at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault: Connection reset; nested
> exception is:
>         java.net.SocketException: Connection reset
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
> geWithCommons(CommonsHTTPTransportSender.java:329)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
> monsHTTPTransportSender.java:206)
>         ... 16 more
> 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:235)
>         at
> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:
> 77)
>         at
> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105
> )
>         at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.
> java:1115)
>         at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMetho
> dBase.java:1832)
>         at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB
> ase.java:1590)
>         at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
> ava:995)
>         at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
> pMethodDirector.java:397)
>         at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
> thodDirector.java:170)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
> a:396)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
> a:346)
>         at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abst
> ractHTTPSender.java:534)
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPS
> ender.java:119)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
> geWithCommons(CommonsHTTPTransportSender.java:323)
>         ... 17 more
>
>
>
>
> I would really appreciate your help.
>
>
> Thanks,
> Vinay
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org