axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Ludwig <>
Subject Re: Exception in Axis2 Client when reading Attachment
Date Thu, 07 Feb 2008 07:37:42 GMT


On Wed, Feb 06, 2008 at 06:13:49PM -0500, Kiran Sriram wrote:
> Hello, I am getting this exception when trying to read an attachment in Axis2 client.

> javax.mail.MessagingException: Error in input stream;
> nested exception is:
> Attempted read on closed stream.
> at org.apache.axiom.attachments.Attachments.getPart(
> at org.apache.axiom.attachments.Attachments.getNextPartDataHandler(
> at org.apache.axiom.attachments.Attachments.getDataHandler(
> at org.apache.axis2.context.MessageContext.getAttachment(
> at PCMClient.main( by: javax.mail.MessagingException: Error in
input stream; This is how i am reading attachment on client side, client side stubs are generated
using Axis2 WSDL2Java utility. 
> stub2.ContentExportAsAttachment(false, "nolock", "binary");
> MessageContext messageContext = stub2._getServiceClient().getLastOperationContext().getMessageContext("In");

could this be the same issue as the one I reported in #3488
<URL:>? There ar no
attachments involved in my testcase, but we also get an exception due to an
attempted read on a closed stream.



FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany

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

View raw message