• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Axis errors, SocketException

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there all, Can I get Axis1.3 help here? Here goes.

I am having an intermittent error with our application here and was wondering if you guys could shed any light, or perhaps give me some ideas what to look at.

This application will not be hosted to the outside, it is housed internally at a fairly large company. So there no secutiry added to the webservices, or any SSL. All calls from the client to the webservice are made internally behind the same firewall. That said, let me try to describe oru environment and the error that we're experiencing.

I have written the server side code for this project that I'm on and used the axis ant tool to generate the server side stubs for this method, as well as the wsdl file. Then on the client side I used axis ant tool to generate the client side stubs from the wsdl.

<taskdef name="wsdl2java"
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
loaderref="axis" classpathref="classpath" />
<taskdef name="java2wsdl"
classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask"
loaderref="axis" classpathref="classpath" />
and then
<java2wsdl output="${build.wsdl}/${appreq.wsdl}"
location="${WebServiceUrl.appReq}"
namespace="urn:appreq.services.nurse.recurring.momentum.co.za"
classname="xxx.services.AppReqService"
typemappingversion="1.2">
<classpath refid="build.classpath" />
</java2wsdl>
to create the wsdl. and then
<wsdl2java
output="${build.gensrc}"
deployscope="Application"
skeletondeploy="true"
serverside="true"
url="${build.wsdl}/${appreq.wsdl}"
verbose="false"
debug="true">
</wsdl2java>
to generate the server side stubs, that end up calling the method that I wrote.

Then the client also generates the client side stubs with the use of the axis ant tool, and generates the TO's that we're sending or receiving from the webservice method, as well as the Service Locator and interface fall calling the webservice.

We have a number of these webservices available, and they are all working. They actually all work for most of the day. But every now and then, about 2 - 5 times a day something odd happens. When the client makes the call to the webservice, it seems to get stuck, and takes a lot longer than normal to get the response back from the server. Also there is no activity on the server. Eventually a some timeout get's reached (it seems) and the following is the returned object from the webservice call.

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Software caused connection abort:
recv failed
faultActor:
faultNode:
faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Software
caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
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)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
xxx.services.appreq.AppReqServiceSoapBindingStub.searchAppReqs(AppReqServiceSoapBindingStub.java:1200)
at
xxx.client.sao.appreq.AppReqServiceManager$13.performService(AppReqServiceManager.java:445)
at xxx.client.sao.ServiceAction.executeAction(ServiceAction.java:30)
at xxx.client.sao.AbstractServiceAction.run(AbstractServiceAction.java:49)

{http://xml.apache.org/axis/}hostname:AWD00421
java.net.SocketException: Software caused connection abort: recv failed
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
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)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
za.co.momentum.recurring.nurse.services.appreq.AppReqServiceSoapBindingStub.searchAppReqs(AppReqServiceSoapBindingStub.java:1200)
at
za.co.momentum.recurring.nurse.client.sao.appreq.AppReqServiceManager$13.performService(AppReqServiceManager.java:445)
at
za.co.momentum.recurring.nurse.client.sao.ServiceAction.executeAction(ServiceAction.java:30)
at
za.co.momentum.recurring.nurse.client.sao.AbstractServiceAction.run(AbstractServiceAction.java:49)

Caused by: java.net.SocketException: Software caused connection abort: recv
failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
... 13 more

All the research I have done with regard to this seem to point to continuous errors, ie never working, and also something to do with SSL.

Whatever more you guys want with regard to this, give me a shout, I'll post it.

Any help is much appreciated.

Thanks
Darryl
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic