uploading files with Axis2
843833Aug 19 2008 — edited Aug 21 2008I'm developing a web service (using axis2) that requires uploading a potentially large file. The upload is done by chunks that are afterwards assembled on the server side.
Everything works fine while the files are small, but when I try to upload something bigger I get this error:
org.apache.axis2.AxisFault: Address already in use: connect
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 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at org.uol.test.llfeatextrws.TestClient.uploadFile(TestClient.java:103)
This allways happens around 39th Mbyte of data.
I'm using Axis2 with Tomcat. I'm testing with chunks of 10 kbyte in size.
Is there something wrong with my approach?
Could this problem be related to Tomcat rather than Axis?
Any help greatly appreciated.
Thx