ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ws Wiki] Update of "FrontPage/Axis/AttachmentProblems" by BenJansen
Date Tue, 15 Aug 2006 18:17:35 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.

The following page has been changed by BenJansen:
http://wiki.apache.org/ws/FrontPage/Axis/AttachmentProblems

The comment on the change is:
Added note about "Resource has been deleted" error

------------------------------------------------------------------------------
  </deployment>
  }}}
  
+ == Disappearing Attachments (AKA java.io.IOException: Resource has been deleted.) ==
+ 
+ If you are getting a "Resource has been deleted" IOException when trying to access an attachment,
make sure you have not told the request SOAPMessage to write out anywhere. For example:
+ 
+ {{{
+ // Build the SOAP message out of the HTTP request.
+ SOAPMessage request = getSoapRequest();
+ // Output message for debugging purposes or whatever.
+ request.writeTo( System.out );
+ }}}
+ 
+ If you later try to access one of the request's AttachmentParts and write out its contents,
you'll get the "Resource has been deleted" exception.
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@ws.apache.org
For additional commands, e-mail: general-help@ws.apache.org


Mime
View raw message