java.lang.IllegalStateException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections.

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

,

You need to set the type property in your bean XML file. <property name="targetType" value="some value" />

,
Expert tip

If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.

Solutions on the web

via Stack Overflow by Shan
, 1 year ago
The ApplicationContext is closed and the ConnectionFactory can no longer create connections.
via GitHub by artembilan
, 11 months ago
The ApplicationContext is closed and the ConnectionFactory can no longer create connections.
via GitHub by artembilan
, 8 months ago
The 'filter' and 'locker' options must be present on the provided external 'scanner': Mock for DirectoryScanner, hashCode: 1770070706
via GitHub by arey
, 1 year ago
java.lang.IllegalStateException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections.
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:543)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils$1.createConnection(ConnectionFactoryUtils.java:90)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.doGetTransactionalResourceHolder(ConnectionFactoryUtils.java:140)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactoryUtils.java:76)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:472)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 4 days ago
5 times, 1 week ago
7 times, 4 weeks ago
Once, 1 month ago
2 times, 1 month ago

Write tip

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