OS : Windows
App Server: Wildfly 10
Java Version: 8
We have our application running in a remote environment isolated from the internet connection (it completely offline). It will run continuously until any new patch delivered to that server. In that case, we often facing the problem with ActiveMQ Artemis server (with in Wildfly 10) which is getting unreachable from the application code seems like it's getting shutdown. But note that Undertow server is fine able to access application features.
Observed that if the server is continuously running for more than 30 days then the problem is occurring. At present to resolve the issue we have been instructed to restart the apps in a frequency. But looking for the real root cause and how to resolve it.
Exception:
javax.jms.JMSException: Failed to create session factory
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:727)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:284)
at
Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:778)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:724)
... 71 more