java.lang.IllegalArgumentException: Connection must not be null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Solutions on the web

via Spring JIRA by Artem Bilan, 1 year ago
Connection must not be null
via Spring JIRA by Artem Bilan, 1 year ago
Connection must not be null
via Spring JIRA by Gary Russell, 1 year ago
Connection must not be null
via Spring JIRA by Gary Russell, 1 year ago
Connection must not be null
java.lang.IllegalArgumentException: Connection must not be null
at org.springframework.amqp.rabbit.connection.RabbitResourceHolder.addConnection(RabbitResourceHolder.java:101)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.doGetTransactionalResourceHolder(ConnectionFactoryUtils.java:131)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactoryUtils.java:67)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:456)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
12 times, 10 hours ago
Once, 8 months ago
Once, 9 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.