Thank you for the recommendation about using the latest nightly builds.
I have downloaded and deployed it, and it's now working fine with sending
10MB of data, it's actually pretty fast too.
So i am now move on trying to send the bigger file size which is
approximately 100MB and i got the following errors
Sathita
Exception in thread "main" org.apache.axis2.AxisFault: null; nested
exception is:
java.lang.reflect.InvocationTargetException
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:451)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393)
at fileT.fileC.sendFile(fileC.java:117)
at fileT.fileC.main(fileC.java:50)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: null; nested
exception is:
java.lang.reflect.InvocationTargetException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:144)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:483)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.handle(Server.java:245)
at
org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:192)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
at
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:114)
... 22 more
Caused by: java.lang.OutOfMemoryError
at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
... 5 more
From: "Davanum Srinivas" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Re: [Axis2] sending large file problem
Date: Thu, 22 Jun 2006 15:15:25 -0400
you need to bump up the timeout. For which you need to use latest
nightly builds.
thanks,
dims
On 6/22/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
Dear All Axis2 users
I am working on Axis2 1.0 version. I am now trying to send
large
attachment file the size is about 10 MB. But it causes the error as
follow.
Everything work file with the file in smaller size...approximate 5MB. I
don't think that it is something wrong with the code. But if anyone know
what is the problem please let me know. I am also enable the MTOM both on
client and server.
Many thanks, looking forward to hear
Sathita
Exception in thread "main" org.apache.axiom.om.OMException: Problem with
the
OutputStream.
at
org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:62)
at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:127)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:382)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSender.java:145)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:180)
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:530)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:92)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
at fileT.fileC.sendFile(fileC.java:102)
at fileT.fileC.main(fileC.java:50)
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
at
java.io.BufferedOutputStream.write(BufferedOutputStream.java:110)
at
org.apache.commons.httpclient.WireLogOutputStream.write(WireLogOutputStream.java:67)
at
org.apache.commons.httpclient.ChunkedOutputStream.flushCacheWithAppend(ChunkedOutputStream.java:121)
at
org.apache.commons.httpclient.ChunkedOutputStream.write(ChunkedOutputStream.java:178)
at javax.activation.DataHandler.writeTo(DataHandler.java:85)
at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:222)
at
org.apache.axiom.om.impl.MIMEOutputUtils.writeBodyPart(MIMEOutputUtils.java:112)
at
org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:57)
... 22 more
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Davanum Srinivas : http://people.apache.org/~dims/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]