Hi,
After a restart of the JMS server my JMS connector ProcessingApp fails with:
ERROR | Error during postStop in [akka.stream.alpakka.jms.JmsProducerStage@39db03cd]: Cannot send, channel has already failed: tcp://127.0.0.1:8888
javax.jms.JMSException: Cannot send, channel has already failed: tcp://127.0.0.1:8888
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72)
at org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1310)
at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1302)
at org.apache.activemq.ActiveMQSession.doClose(ActiveMQSession.java:666)
at org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:657)
at akka.stream.alpakka.jms.JmsSession.closeSession(JmsConnector.scala:99)
or sometimes with:
WARN | Restarting graph due to failure. stack_trace:
javax.jms.JMSException: java.io.EOFException
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:54)
at org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1952)
at org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1971)
at org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:114)
at org.apache.activemq.transport.ResponseCorrelator.onException(ResponseCorrelator.java:126)
at org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:114)
at org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:114)
at org.apache.activemq.transport.WireFormatNegotiator.onException(WireFormatNegotiator.java:173)
at org.apache.activemq.transport.AbstractInactivityMonitor.onException(AbstractInactivityMonitor.java:345)
at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:219)
at java.lang.Thread.run(Thread.java:745)
Despite having a Supervision.Decider and a RestartSource in place.
How to reproduce:
Start JMSServer
Start ProcessingApp
Restart JMSServer
I found a similar reported issue:
where the code fails at akka.stream.alpakka.jms.JmsSession.closeSession(JmsConnector.scala:99)
as well.
Any thoughts or workarounds?
Kind regards
Paul