[
http://issues.apache.org/jira/browse/AXIS-1872?page=comments#action_12315785 ]
Brian Husted commented on AXIS-1872:
------------------------------------
Unfortunutely, I have run into some difficulties regarding streaming
attachments using DIME with the Axis patch. It works fine when submitting
attachments from the Axis server to the Axis client. However, when I attempt to
submit an attachment from the Axis client to the Axis server running the Web
Services it has problems. I am using Axis version 1.2.1, running the client in
Java JDK 1.4.2_05 and server running Weblogic 7 on JDK 1.3.1.
Below is the server side stack trace:
java.io.IOException: End of physical stream detected when 11 more bytes
expected.
at
org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:273)
at
org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:201)
at
org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445)
at
org.apache.axis.attachments.ManagedMemoryDataSource.<init>(ManagedMemoryDataSource.java:146)
at
org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163)
at
org.apache.axis.attachments.MultiPartDimeInputStream.readAll(MultiPartDimeInputStream.java:100)
at
org.apache.axis.attachments.MultiPartDimeInputStream.getAttachments(MultiPartDimeInputStream.java:108)
at
org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(AttachmentsImpl.java:156)
at
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:515)
> Allow for streaming of DIME attachments
> ---------------------------------------
>
> Key: AXIS-1872
> URL: http://issues.apache.org/jira/browse/AXIS-1872
> Project: Apache Axis
> Type: New Feature
> Components: SAAJ
> Versions: 1.2RC3
> Reporter: Marc Dumontier
> Attachments: DimeBodyPart.diff, DynamicContentDataHandler.java,
> dime-patch.txt
>
> The current system does not allow for streaming DIME attachments because the
> size of the data is requested from the DataHandler first (this usually means
> reading the entire stream, then resetting it), and then a single DIME record
> is created.
> The DIME specification allows for the use of record chunking so that dynamic
> content generators can stream back data with a small memory footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira