Does anyone have any advice on how to cleanly close a session when comms to a broker is broken?
After the comms have been broken (shutting down the broker is an easy way to reproduce) and the producer attempts to send a message a Transport IO exception is raised but after this point the session cannot be cleanly closed. The sessions closed flag indicates it is not already closed. The problem seems to be mainly in the BufferedOutputStream - this objects "close" method is called but after this the same objects "flush" method is called resulting in attempts to access deleted memory. I'm presuming it is attempting to send cached data after the stream has been closed. -- View this message in context: http://www.nabble.com/ActiveMQ-CMS---Unhandled-exception-during-session-close-after-a-Transport-exception-tf4384057s2354.html#a12497913 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
