There are multiple threads involved and an asynchronous core in play,
so there just isn't a guarantee that it's going to be in the necessary
state to throw before it gets to the createTextMessage call as opposed
to say when it gets to the subsequent send call that actually tries to
hit the network, it's simply a race.

Aside, you say you are on 0.45.0; thats closing on a year old, the
current release is 0.52.0.

Robbie

On Mon, 6 Jul 2020 at 18:27, akabhishek1
<[email protected]> wrote:
>
> Hi Tim,
>
> I was doing testing and found that Session.createTextMessage not throwing
> exception in the absence of connection. Please find below steps to reproduce
> this issue and attached "TestQpidSendSessionRecoverableError.java".
>
> Actual Behavior - Session successfully created text message in absence of
> connection
> Expected Behavior -  session.createTextMessage("Hello World") - should throw
> exception in the absence of connection.
>
> Steps to reproduce this issue -
> 1. Provide correct ServiceBus endpoint details
> 2. Add debug point at Line no 55  (before creating text message)
> 3. Start class in debug mode
> 5. Application should stop at debug point, and disable network
> 6. Click on resume button
>
> We can see that, class successfully created text message instead of
> connection exception. Please find attached log "ApplicationLog.txt".
>
>
> TestQpidSendSessionRecoverableError.java
> <http://qpid.2158936.n2.nabble.com/file/t396358/TestQpidSendSessionRecoverableError.java>
> ApplicationLog.txt
> <http://qpid.2158936.n2.nabble.com/file/t396358/ApplicationLog.txt>
>
> I think this issue is related with our issue. Could you please take a look
> on this issue and suggest some solution.
>
> Regards,
> Abhishek Kumar
>
>
>
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to