Monday, October 31, 2011

ActiveMQ 5.3 / System.IO.EndOfStreamException / "Unable to read beyond the end of the stream.

Issue

I've got a problem with long-running message listeners in ActiveMQ. After approximately 60s, long-running operation breaks with exception - Thread was aborted.

Solution

Solution and reason are described there: https://issues.apache.org/jira/browse/AMQNET-196

After adding: ?transport.keepAliveResponseRequired=true to connection string everything became working like a charm.