org.springframework.amqp.UncategorizedAmqpException: java.lang.IllegalStateException: Invalid configuration: 'routingKey' must be non-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

Solutions on the web

via Spring JIRA by Nils Plaschke, 1 year ago
java.lang.IllegalStateException: Invalid configuration: 'routingKey' must be non-null.
via Spring JIRA by Nils Plaschke, 1 year ago
java.lang.IllegalStateException: Invalid configuration: 'routingKey' must be non-null.
via Stack Overflow by mangusbrother
, 2 years ago
java.lang.IllegalArgumentException: Send-and-receive methods can only be used if the Message does not already have a replyTo property.
via GitHub by nebhale
, 7 months ago
java.lang.IllegalStateException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections.
via GitHub by trisberg
, 6 months ago
java.lang.IllegalStateException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections.
via Stack Overflow by jandres
, 11 months ago
java.lang.IllegalStateException: Listener expects us to be listening on '[amq.gen-Xg5MG5n42ecpoW4-DA198A]'; our queues: [amq.gen-2qRLgfUmMxskshFCi1dzuA]
org.springframework.amqp.UncategorizedAmqpException: java.lang.IllegalStateException: Invalid configuration: 'routingKey' must be non-null.
at com.rabbitmq.client.impl.AMQImpl$Queue$Bind.(AMQImpl.java:1577)
at com.rabbitmq.client.AMQP$Queue$Bind$Builder.build(AMQP.java:870)
at com.rabbitmq.client.impl.ChannelN.queueBind(ChannelN.java:918)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.sun.proxy.$Proxy0.queueBind(Unknown Source)
at org.springframework.amqp.rabbit.core.RabbitAdmin.declareBindings(RabbitAdmin.java:480)
at org.springframework.amqp.rabbit.core.RabbitAdmin.access$300(RabbitAdmin.java:54)
at org.springframework.amqp.rabbit.core.RabbitAdmin$12.doInRabbit(RabbitAdmin.java:386)
at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1118)
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1101)
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1077)
at org.springframework.amqp.rabbit.core.RabbitAdmin.initialize(RabbitAdmin.java:381)
at org.springframework.amqp.rabbit.core.RabbitAdmin$11.onCreate(RabbitAdmin.java:323)
at org.springframework.amqp.rabbit.connection.CompositeConnectionListener.onCreate(CompositeConnectionListener.java:32)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:446)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils$1.createConnection(ConnectionFactoryUtils.java:80)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.doGetTransactionalResourceHolder(ConnectionFactoryUtils.java:130)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactoryUtils.java:67)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:451)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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