ActiveMQ Issue Reproduced – Similar to AMQ-6594. NUll Pointer Exception
Maintainers usually reply within 1 day
@jbonofre is already working on this.
Since Apr 28, 2026.
Assessment
This issue has not been assessed yet.
Description
I have encountered and successfully reproduced an issue in my application that appears to be similar to AMQ-6594. https://issues.apache.org/jira/browse/AMQ-6594
It is occurring everytime in my logs
Logs:
2026-04-20T11:43:06.242794Z, warning, , [NTFDispatcherThreadPool-thread-3465] [CustomMessageListener:refreshConnectionUntilSuccessful:982] | Could not refresh JMS Connection for destination 'HSS-RR-DEFAULT13' - retrying in 5000 ms. Cause: Error while attempting to add new Connection to the pool; nested exception is java.lang.NullPointerException: Cannot invoke "org.apache.activemq.jms.pool.ConnectionPool.incrementReferenceCount()" because "connection" is null
jakarta.jms.JMSException: Error while attempting to add new Connection to the pool
at org.apache.activemq.jms.pool.PooledConnectionFactory.createJmsException(PooledConnectionFactory.java:312)
at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:231)
at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:210)
at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:208)
at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:434)
at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:416)
at notifs.messaging_camel.wrapper.CustomMessageListener.refreshConnectionUntilSuccessful(CustomMessageListener.java:963)
at notifs.messaging_camel.wrapper.CustomMessageListener.recoverAfterListenerSetupFailure(CustomMessageListener.java:942)
at notifs.messaging_camel.wrapper.CustomMessageListener$AsyncMessageListenerInvoker.run(CustomMessageListener.java:1113)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.activemq.jms.pool.ConnectionPool.incrementReferenceCount()" because "connection" is null
at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:229)
... 10 more
Versions :
JDK – 21
activeMQVersion = '6.2.0'
camelVersion = '4.18.0'
spring-7.0.2
Can u please let us know in version do we have the fix for this?
- Dominant language
- Java
- Stars
- 2.5k
- Forks
- 1.5k
- Avg merge
- 14h 42m
- Merged PRs (30d)
- 85
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/activemq
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
apache/activemq#2558 · 2 comments ·
Maintainers usually reply within 1 day
-
Stale
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/activemq#1999 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 74/100
apache/activemq#1871 · 2 comments ·
Maintainers usually reply within 1 day
-
Topic expiry task loads the whole JDBC topic store into the heap on PostgreSQL (AMQ-6067 fix is ineffective with pgjdbc)Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apache/activemq#2630 · 3 comments ·
Maintainers usually reply within 1 day
Similar issues
-
new feature
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
apache/rocketmq-dashboard#5594 ·
Maintainers usually reply within 3 days
-
bug pkg:sdk
Difficulty 1/5 Under an hour Newbie friendliness 90/100
aws/aws-durable-execution-sdk-java#773 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
PCL-Community/PCL-CE#3652 ·
Maintainers usually reply within 1 day
-
TaskSecret.vue: replace explicit `any` with real typesPossibly taken @prayas-bit claimed this today. Openarea/frontend good first issue kind/cooldown
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
kestra-io/kestra#20352 · 1 comment ·
Maintainers usually reply within 1 day