axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5302) Enable streaming of the root part of a SwA/MTOM message
Date Sat, 28 Apr 2012 09:21:48 GMT


Andreas Veithen commented on AXIS2-5302:

With AXIOM-416 implemented the patch would be as follows:

Index: modules/kernel/src/org/apache/axis2/builder/
--- modules/kernel/src/org/apache/axis2/builder/	(revision 1331561)
+++ modules/kernel/src/org/apache/axis2/builder/	(working copy)
@@ -71,7 +71,7 @@
                 type = startInfo;
-        return builder.processDocument(attachments.getRootPartInputStream(),
+        return builder.processDocument(attachments.getRootPartInputStream(false),
                 type, msgContext);

However, this causes an issue in JAX-WS. In fact, multiple test cases in jaxws-integration
are failing with the following exception:

ava.lang.IllegalStateException: The content of the MIME part has already been consumed
        at org.apache.axiom.attachments.PartImpl.getContent(
        at org.apache.axiom.attachments.PartImpl.getDataSource(
        at org.apache.axiom.attachments.PartDataHandler.getDataSource(
        at org.apache.axis2.jaxws.message.attachments.AttachmentUtils.findCachedAttachment(
        at org.apache.axis2.jaxws.message.impl.MessageImpl.setMessageContext(
        at org.apache.axis2.jaxws.core.MessageContext.<init>(
        at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(
> Enable streaming of the root part of a SwA/MTOM message
> -------------------------------------------------------
>                 Key: AXIS2-5302
>                 URL:
>             Project: Axis2
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 1.6.2
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
> The Axiom API that Axis2 is currently using to process a SwA or MTOM message will always
load the root part of the MIME message into memory, although Axiom 1.2.13 introduced a feature
to avoid that. The Axis2 code (MIMEBuilder) needs to be changed to take advantage of that
new feature.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message