hornetq/hornetq — pull request #1598 by soul2zimate (2014-03-31 07:45:38+00:00)
Title: JBPAPP-11049, throw IllegalStateException instead of returning null.

https://issues.jboss.org/browse/JBPAPP-11049
issue's description proposes to throw JMSException, however from JMSExceptionHelper in master, it throws an IllegalStateException when HornetQException's type is ILLEGAL_STATE