axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Moved: (TRANSPORTS-19) Mail transport: synchronous invocation style doesn't work correctly
Date Wed, 22 Sep 2010 20:12:32 GMT


Andreas Veithen moved WSCOMMONS-544 to TRANSPORTS-19:

        Project: Axis2 Transports  (was: WS-Commons)
            Key: TRANSPORTS-19  (was: WSCOMMONS-544)
    Component/s: Mail
                     (was: Transport)

> Mail transport: synchronous invocation style doesn't work correctly
> -------------------------------------------------------------------
>                 Key: TRANSPORTS-19
>                 URL:
>             Project: Axis2 Transports
>          Issue Type: Bug
>          Components: Mail
>            Reporter: Andreas Veithen
> The change in r698486 introduced support for the synchronous invocation style in the
mail transport. This was implemented by using a callback pattern where the transport sender
waits until the transport listener receives the response message and invokes the callback.
This however doesn't work as expected. The reason is that after receiving the message, the
mail transport listener will close the input stream for the message (and potentially release
some other resources, such as closing the mail folder). On the server side, this works well
because the listener invokes AxisEngine.receive, which only returns after the service has
processed the message. However, on the client side, it will invoke the callback, which will
not process the message, but only store it. By the time the client attempts to process the
response, the underlying input stream is already closed. This leads to errors such as this
> java.lang.RuntimeException: [was class] Stream closed
>         at com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(
>         at
>         at
>         at
>         at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getText(
>         at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getText(
>         at
>         at
>         at

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message