Hi,
I'm using SAAJ at the server side to send SOAP message with attachments to the client. It works perfectly fine for attachments of size 10MB. But when I tried attaching a file of size 100 MB , its giving me the following exception:
SEVERE: SAAJ0540: Error during saving a multipart message
com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Error during saving a multipart message
at com.sun.xml.internal.messaging.saaj.soap.MessageIm pl.writeTo(Unknown Source)
at myPack.MyServer.doPost(MyServer.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:163)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:556)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:401)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:242)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:267)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:245)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
at org.apache.catalina.connector.OutputBuffer.realWri teBytes(OutputBuffer.java:361)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(B yteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteCh unk.java:351)
at org.apache.catalina.connector.OutputBuffer.writeBy tes(OutputBuffer.java:384)
at org.apache.catalina.connector.OutputBuffer.write(O utputBuffer.java:373)
at org.apache.catalina.connector.CoyoteOutputStream.w rite(CoyoteOutputStream.java:93)
at javax.activation.DataHandler.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.packaging.mime .internet.MimeBodyPart.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.packaging.mime .internet.MimeMultipart.writeTo(Unknown Source)
... 20 more
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at org.apache.coyote.http11.InternalOutputBuffer.real WriteBytes(InternalOutputBuffer.java:248)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(B yteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteCh unk.java:351)
at org.apache.coyote.http11.InternalOutputBuffer$Outp utStreamOutputBuffer.doWrite(InternalOutputBuffer. java:272)
at org.apache.coyote.http11.filters.ChunkedOutputFilt er.doWrite(ChunkedOutputFilter.java:126)
at org.apache.coyote.http11.AbstractOutputBuffer.doWr ite(AbstractOutputBuffer.java:201)
at org.apache.coyote.Response.doWrite(Response.java:5 60)
at org.apache.catalina.connector.OutputBuffer.realWri teBytes(OutputBuffer.java:356)
... 28 more
CAUSE:
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
at org.apache.catalina.connector.OutputBuffer.realWri teBytes(OutputBuffer.java:361)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(B yteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteCh unk.java:351)
at org.apache.catalina.connector.OutputBuffer.writeBy tes(OutputBuffer.java:384)
at org.apache.catalina.connector.OutputBuffer.write(O utputBuffer.java:373)
at org.apache.catalina.connector.CoyoteOutputStream.w rite(CoyoteOutputStream.java:93)
at javax.activation.DataHandler.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.packaging.mime .internet.MimeBodyPart.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.packaging.mime .internet.MimeMultipart.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.soap.MessageIm pl.writeTo(Unknown Source)
at myPack.MyServer.doPost(MyServer.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:163)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:556)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:401)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:242)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:267)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:245)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at org.apache.coyote.http11.InternalOutputBuffer.real WriteBytes(InternalOutputBuffer.java:248)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(B yteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteCh unk.java:351)
at org.apache.coyote.http11.InternalOutputBuffer$Outp utStreamOutputBuffer.doWrite(InternalOutputBuffer. java:272)
at org.apache.coyote.http11.filters.ChunkedOutputFilt er.doWrite(ChunkedOutputFilter.java:126)
at org.apache.coyote.http11.AbstractOutputBuffer.doWr ite(AbstractOutputBuffer.java:201)
at org.apache.coyote.Response.doWrite(Response.java:5 60)
at org.apache.catalina.connector.OutputBuffer.realWri teBytes(OutputBuffer.java:356)
... 28 more
CAUSE:
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
at org.apache.catalina.connector.OutputBuffer.realWri teBytes(OutputBuffer.java:361)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(B yteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteCh unk.java:351)
at org.apache.catalina.connector.OutputBuffer.writeBy tes(OutputBuffer.java:384)
at org.apache.catalina.connector.OutputBuffer.write(O utputBuffer.java:373)
at org.apache.catalina.connector.CoyoteOutputStream.w rite(CoyoteOutputStream.java:93)
at javax.activation.DataHandler.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.packaging.mime .internet.MimeBodyPart.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.packaging.mime .internet.MimeMultipart.writeTo(Unknown Source)
at com.sun.xml.internal.messaging.saaj.soap.MessageIm pl.writeTo(Unknown Source)
at myPack.MyServer.doPost(MyServer.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:163)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:556)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:401)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:242)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:267)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:245)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at org.apache.coyote.http11.InternalOutputBuffer.real WriteBytes(InternalOutputBuffer.java:248)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(B yteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteCh unk.java:351)
at org.apache.coyote.http11.InternalOutputBuffer$Outp utStreamOutputBuffer.doWrite(InternalOutputBuffer. java:272)
at org.apache.coyote.http11.filters.ChunkedOutputFilt er.doWrite(ChunkedOutputFilter.java:126)
at org.apache.coyote.http11.AbstractOutputBuffer.doWr ite(AbstractOutputBuffer.java:201)
at org.apache.coyote.Response.doWrite(Response.java:5 60)
at org.apache.catalina.connector.OutputBuffer.realWri teBytes(OutputBuffer.java:356)
... 28 more
Please suggest a solution.
Thanks in advance.
Veronica.