[ http://issues.apache.org/jira/browse/AXIS-2012?page=all ]
     
Davanum Srinivas resolved AXIS-2012:
------------------------------------

    Resolution: Fixed

added code to rethrow Exception

thanks,
dims

> Call swallows exceptions when serializing input
> -----------------------------------------------
>
>          Key: AXIS-2012
>          URL: http://issues.apache.org/jira/browse/AXIS-2012
>      Project: Axis
>         Type: Bug
>     Versions: 1.2.1
>     Reporter: David Jencks

>
> Calling MessageFactory.    public abstract SOAPMessage 
> createMessage(MimeHeaders mimeHeaders, InputStream inputStream) throws 
> IOException, SOAPException;
> with an input stream that is an invalid soap message eventually ends up 
> sending a message of 0 length.  The culprit seems to be this code in Call 
> (together with a possible fix):
> Index: src/org/apache/axis/client/Call.java
> ===================================================================
> RCS file: /home/cvspublic/ws-axis/java/src/org/apache/axis/client/Call.java,v
> retrieving revision 1.241
> diff -u -w -r1.241 Call.java
> --- src/org/apache/axis/client/Call.java        24 Apr 2005 03:00:50 -0000    
>   1.241
> +++ src/org/apache/axis/client/Call.java        23 May 2005 21:45:28 -0000
> @@ -2737,6 +2737,8 @@
>                                                                     
> msgContext);
>                  requestMessage.getSOAPEnvelope().output(ctx);
>                  writer.close();
> +            } catch (AxisFault af) {
> +                throw af;
>              } catch (Exception e) {
>                  log.debug(Messages.getMessage("exceptionPrinting"), e);
>              } finally {
> ------------
> I think it might be better to rethrow any exception thrown here, but I don't 
> know enough about the other possibilities to judge.

-- 
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

Reply via email to