Hi Erik,

I don't have an answer to your question, but it might help someone
answer if you could detail the version of client/broker you are using,
and possibly outline what you are doing a little. Knowing why the
session is ending might also be useful. Some protocol trace logging
might help there, which Rob detailed in this post:

http://mail-archives.apache.org/mod_mbox/qpid-users/201402.mbox/%3CCACsaS94QyZbYrScWNtChgk=gn3ojdzgsl5sk5rrnvoj9izj...@mail.gmail.com%3E

Robbie

On 18 February 2015 at 11:50, Erik Aschenbrenner <easch...@icubic.de> wrote:
> Dear Qpid users,
>
> I'm using the Qpid AMQP 1.0 JMS client to connect to a ActiveMQ message
> broker.
>
> Sometimes I'm getting a MessageProducerException (Force detach the link
> because the session is remotely ended.) when I'm trying to send a message to
> the broker.
>
> As for as I understand the error message, the broker ended the session and
> that´s why sending the message failed. I added an ExceptionListener to the
> JMS connection (via Connection.setExceptionListener(...)) and would expect
> that there will be an exception when the session is remotly ended by the
> broker so that I can react on this case. Why is there not exception for this
> case?
>
> Regards,
> Erik
>
> PS: here are the exceptions that happen when trying to send a message if the
> session was remotly ended:
>
> MessageProducerException (Force detach the link because the session is
> remotely ended.), trace:
> org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl$2.run(MessageProducerImpl.java:125),
> java.lang.Thread.run(Thread.java:744)
>
> JMSException (Force detach the link because the session is remotely ended.),
> trace:
> org.apache.qpid.amqp_1_0.jms.impl.MessageConsumerImpl.checkReceiverError(MessageConsumerImpl.java:296),
> org.apache.qpid.amqp_1_0.jms.impl.SessionImpl$Dispatcher.run(SessionImpl.java:964),
> java.lang.Thread.run(Thread.java:744)
>
>
>
>
>
> --
> View this message in context: 
> http://qpid.2158936.n2.nabble.com/QPID-JMS-Java-Client-no-exception-when-session-is-remotely-ended-tp7620473.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to