synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: Hudson build became unstable: Synapse - Trunk » Apache Synapse - Non-blocking HTTP/s Transport #2901
Date Sun, 14 Nov 2010 12:23:34 GMT
This build actually failed because of a mismatch between the Axis2 and
Axiom versions. Interestingly, the only trace of the error in the logs
is this:

9 [main] DEBUG org.apache.synapse.transport.nhttp.Axis2HttpRequest -
Remote server aborted request being sent, and responded

The exception handling is done by the following piece of code in
Axis2HttpRequest:

Integer errorCode = msgContext == null ? null :
    (Integer) msgContext.getProperty(NhttpConstants.ERROR_CODE);
if (errorCode == null || errorCode == NhttpConstants.SEND_ABORT) {
    if (log.isDebugEnabled()) {
        log.debug("Remote server aborted request being sent, and responded");
    }
} else {
    if (e instanceof AxisFault) {
        throw (AxisFault) e;
    } else {
        handleException("Error streaming message context", e);
    }
}

Since the exception occurs in Axis2 (SOAPMessageFormatter) which
doesn't know anything about the NHTTP transport, errorCode is
obviously null in this case. I would expect this kind of exception to
be rethrown instead of just causing a debug log. What is the rationale
for the errorCode == null condition in the if statement?

Andreas

On Sun, Nov 14, 2010 at 12:58, Apache Hudson Server
<hudson@hudson.apache.org> wrote:
> See <https://hudson.apache.org/hudson/job/Synapse%20-%20Trunk/org.apache.synapse$synapse-nhttp-transport/2901/>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message