My first thought is that you're doing something funny with a session somewhere (e.g. concurrent access).
thanks for your answers.
but in my code, there only one consumer has a consumerSession, and 25 producers share one producerSession,
and the consumerSession is different with producerSession.
The above error occurred in the consumer side.
when i upgrade the hornetq version to 2.4.3.Final, and have another round testing, this issue didn't come up any more. :-)
so i am still monitoring the status.