axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne (JIRA)" <>
Subject [jira] Commented: (AXIS2-3872) MTOM Issues
Date Fri, 05 Sep 2008 14:09:44 GMT


Thilina Gunarathne commented on AXIS2-3872:

Hi Nikolaus,
As I said earlier file caching is only for receiving large attachments, When sending DataHandlers
take care of not loading the binary data to memory as long as possible. For an example if
u create a datahandler using a file, the contents will be directly written to the output stream
when MTOM/SwA is used. But if u created a datahandler using a byte[], then the contents are
already in memory.. So u r out of luck..

Back to the original issue... Looks like ur binary data is getting sent as inline base64binary,
not as an attachment. You can verify this by sending a smaller attachment and then looking
at the message using a tool like tcpmon ( In this case
the error is unavoidable... U should get the binary data to be sent back as an attachment...

> MTOM Issues
> -----------
>                 Key: AXIS2-3872
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Tomcat 5.5 on Windows XP Pro SP2
>            Reporter: Renjith C
>            Assignee: Thilina Gunarathne
> 1) 
> When axis2.xml property,
> <parameter name="enableMTOM">true</parameter> is set to true, even though
the caching is enabled the file is not getting saved on to the disk.
> 2)
> Exception thrown when a 470M file is send over using MTOM.
> [ERROR] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 	at java.util.Arrays.copyOf(Unknown Source)
> 	at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
> 	at java.lang.AbstractStringBuilder.append(Unknown Source)
> 	at java.lang.StringBuffer.append(Unknown Source)
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(
> 	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(
> 	at
> 	at
> 	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> 	at org.apache.axis2.engine.AxisEngine.send(
> 	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(
> 	at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> 	at org.apache.axis2.engine.AxisEngine.receive(
> 	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> 	at org.apache.axis2.transport.http.AxisServlet.doPost(
> 	at javax.servlet.http.HttpServlet.service(
> 	at javax.servlet.http.HttpServlet.service(
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message