messaginghub / pooled-jms

A JMS Connection pool for messaging applications supporting JMS 1.1 and 2.0 and Jakarta JMS clients
Apache License 2.0
50 stars 24 forks source link

Cause: Error while attempting to add new Connection to the pool #24

Closed ghost closed 2 years ago

ghost commented 2 years ago

When trying to reconnect the connection after idle timeout, we are receiving following error. Can you help me to find out what the problem is? MessageBroker is ActiveMQ Artemis

2022-03-15 20:57:39.949 ERROR 1184 --- [Camel (camel-1) thread #26 - JmsConsumer[agrar.sfm.cloud.salesinvoice.invoices.import.internal]] c.c.j.DefaultJmsMessageListenerContainer : Could not refresh JMS Connection for destination 'agrar.sfm.cloud.salesinvoice.invoices.import.internal' - retrying using FixedBackOff{interval=5000, currentAttempts=0, maxAttempts=unlimited}. Cause: Error while attempting to add new Connection to the pool

tabish121 commented 2 years ago

Not really enough information in the snippet of the stack trace to get any clue. In general the pool is just trying to create connections using the JMS client's own connection factory, if that is failing it is usually a client or broker specific issue.

ghost commented 2 years ago

So it can be that the broker can't create the connection for some reason?

tabish121 commented 2 years ago

Could be the client can connect, or the broker isn't accepting connections I don't know. Provide a full stack trace if you want more insights

ghost commented 2 years ago

Unfortunately that's the whole stacktrace that is printed... :/ Thank you for helping to isolate that issue. I will give you feedback as soon i find out more about.