Hello,
recently We often got the following error in Jboss 6.1.0 Final Version /Hornetq 2.2.5 version, we changed the connection-ttl into 10mins recently.
hornetq/hornetq-jms.xml: <connection-ttl>600000</connection-ttl>
the connection-ttl is the connection timeout but we do have message to publish (since we are running 72 hours stability run).
javax.jms.JMSException: Failed to create session
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:778)
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:264)
at org.hornetq.jms.client.HornetQConnection.createSessionInternal(HornetQConnection.java:501)
at org.hornetq.jms.client.HornetQConnection.createSession(HornetQConnection.java:161)
at platform.eventbus.jms.JMSHelper.getTopicSession(JMSHelper.java:489)
at platform.eventbus.jms.JMSHelper.createMessageProducer(JMSHelper.java:526)
at platform.eventbus.jms.JMSHelper.getTopicPublisher(JMSHelper.java:504)
at platform.eventbus.jms.JMSHelper.publish(JMSHelper.java:312)
at platform.eventbus.jms.JMSPublisher$IEMSEventThread.processQueue(JMSPublisher.java:166)
at platform.util.AbstractThread.run(AbstractThread.java:147)
Caused by: HornetQException[errorCode=0 message=Failed to create session]
... 10 more Caused by: java.lang.IllegalStateException: Connection is null
Does anyone can help on this?
Any workaround or fix for this issue?