You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Mark Ford (JIRA)" <ax...@ws.apache.org> on 2005/09/15 16:42:55 UTC

[jira] Created: (AXIS-2220) one-way invokes result in error parsing response message from CommonsHTTPSender

one-way invokes result in error parsing response message from CommonsHTTPSender
-------------------------------------------------------------------------------

         Key: AXIS-2220
         URL: http://issues.apache.org/jira/browse/AXIS-2220
     Project: Apache Axis
        Type: Bug
  Components: Basic Architecture  
    Versions: 1.2.1, 1.2RC2    
    Reporter: Mark Ford


RPC style one-way invokes using the Call.invokeOneWay(Object[]) with CommonsHTTPSender result in a SAXException. The CommonsHTTPSender is always populating the response message, even if the operation is a one-way. The result is that Axis attempts to read the SOAPEnvelope from the response message and the result is an error trying to read an empty xml document.

One fix is to NOT set the response message on the MessageContext for one-way invokes. 

There is no easy workaround since the CommonsHTTPSender class isn't structured well for subclassing. 

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


[jira] Resolved: (AXIS-2220) one-way invokes result in error parsing response message from CommonsHTTPSender

Posted by "Jarek Gawor (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2220?page=all ]
     
Jarek Gawor resolved AXIS-2220:
-------------------------------

    Resolution: Fixed

The CommonsHTTPSender was updated to check for an empty response, and if so it releases the connection immediately and returns without setting the response message. That should help avoid the SAXExceptions.


> one-way invokes result in error parsing response message from CommonsHTTPSender
> -------------------------------------------------------------------------------
>
>          Key: AXIS-2220
>          URL: http://issues.apache.org/jira/browse/AXIS-2220
>      Project: Apache Axis
>         Type: Bug

>   Components: Basic Architecture
>     Versions: 1.2RC2, 1.2.1
>     Reporter: Mark Ford

>
> RPC style one-way invokes using the Call.invokeOneWay(Object[]) with CommonsHTTPSender result in a SAXException. The CommonsHTTPSender is always populating the response message, even if the operation is a one-way. The result is that Axis attempts to read the SOAPEnvelope from the response message and the result is an error trying to read an empty xml document.
> One fix is to NOT set the response message on the MessageContext for one-way invokes. 
> There is no easy workaround since the CommonsHTTPSender class isn't structured well for subclassing. 

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