Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue while uploading document more than 4MB by using Apache Axis 2

 
chandrasekhar bodireddy
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using Apache Axis 2.x in my application for generating client for service (WSDL). I am using RAD 7.5.
I am trying to upload files into sharepoint. I can able to upload files with smaller in size.
If I try to upload a file greater than 4MB it is showing me the following error...

Jul 27, 2011 8:32:36 PM org.apache.axis.Message writeTo
SEVERE: java.io.IOException:
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:105)
at java.net.SocketOutputStream.write(SocketOutputStream.java:149)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:128)
at org.apache.axis.utils.ByteArray.writeTo(ByteArray.java:375)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:265)
at org.apache.axis.Message.writeTo(Message.java:539)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
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 com.abc.invoice.wsclient.sharepoint.SharepointCopyEndpoint1BindingStub.copyIntoItemsOp(SharepointCopyEndpoint1BindingStub.java:187)
at com.abc.invoice.wsclient.sharepoint.SharepointCopyProxy.copyIntoItemsOp(SharepointCopyProxy.java:50)
at com.abc.invoice.service.impl.CreateInvoiceServiceImpl.main(CreateInvoiceServiceImpl.java:1456)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Connection reset
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:197)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)
at java.io.BufferedInputStream.read(BufferedInputStream.java:246)
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 com.abc.invoice.wsclient.sharepoint.SharepointCopyEndpoint1BindingStub.copyIntoItemsOp(SharepointCopyEndpoint1BindingStub.java:187)
at com.abc.invoice.wsclient.sharepoint.SharepointCopyProxy.copyIntoItemsOp(SharepointCopyProxy.java:50)
at com.abc.invoice.service.impl.CreateInvoiceServiceImpl.main(CreateInvoiceServiceImpl.java:1456)

{http://xml.apache.org/axis/}hostname:WS-838468VQQBC

java.net.SocketException: Connection reset
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)error while uploading to sharepoint; nested exception is:
java.net.SocketException: Connection reset

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 com.abc.invoice.wsclient.sharepoint.SharepointCopyEndpoint1BindingStub.copyIntoItemsOp(SharepointCopyEndpoint1BindingStub.java:187)
at com.abc.invoice.wsclient.sharepoint.SharepointCopyProxy.copyIntoItemsOp(SharepointCopyProxy.java:50)
at com.abc.invoice.service.impl.CreateInvoiceServiceImpl.main(CreateInvoiceServiceImpl.java:1456)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:197)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)
at java.io.BufferedInputStream.read(BufferedInputStream.java:246)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)

Plase let me know anyone has a solution for this issue.

Response is highly appreciable


Thanks in advance
Chandra Sekhar Bodireddy


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic