[rabbitmq-discuss] exception starting consumer and adding a binding

PATAR, SAGAR sp345s at att.com
Tue May 27 19:29:07 BST 2014


Not sure why I keep getting the below exception ..
>From the logs it looks like it has exchange reference ..but still get this ... any help

   27 May 2014 14:24:52,765 SimpleAsyncTaskExecutor-1 - Starting consumer Consumer: tag=[null], channel=null, acknowledgeMode=AUTO local queue size=0
   27 May 2014 14:24:52,835 SimpleAsyncTaskExecutor-1 - Initializing declarations
   27 May 2014 14:24:52,835 SimpleAsyncTaskExecutor-1 - Returning cached instance of singleton bean 'exchange1'
   27 May 2014 14:24:52,836 SimpleAsyncTaskExecutor-1 - Returning cached instance of singleton bean 'queue1'
   27 May 2014 14:24:52,836 SimpleAsyncTaskExecutor-1 - Returning cached instance of singleton bean 'org.springframework.amqp.rabbit.config.DLCoreBindingFactoryBean#0'
   27 May 2014 14:24:52,847 SimpleAsyncTaskExecutor-1 - Creating cached Rabbit Channel from AMQChannel(amqp://mongo@192.168.128.102:5672/,1)
   27 May 2014 14:24:52,858 SimpleAsyncTaskExecutor-1 - Executing callback on RabbitMQ Channel: Cached Rabbit Channel: AMQChannel(amqp://mongo@192.168.128.102:5672/,1)
   27 May 2014 14:24:52,858 SimpleAsyncTaskExecutor-1 - declaring Exchange 'mongo.device.entity.exchange'
   27 May 2014 14:24:52,863 SimpleAsyncTaskExecutor-1 - declaring Queue 'mongo.device.entity.exchange.QUEUE'
   27 May 2014 14:24:52,870 SimpleAsyncTaskExecutor-1 - Binding destination [mongo.device.entity.exchange.QUEUE (QUEUE)] to exchange [null] with routing key [*]
   27 May 2014 14:24:52,872 main - Successfully started bean 'dlListenerContainer'
   27 May 2014 14:24:52,873 main - Returning cached instance of singleton bean 'org.springframework.context.annotation.internalScheduledAnnotationProcessor'
   27 May 2014 14:24:52,874 main - Returning cached instance of singleton bean 'org.springframework.amqp.rabbit.config.DLCoreBindingFactoryBean#0'
   27 May 2014 14:24:52,879 main - ***********************************************
   27 May 2014 14:24:52,879 main - ************DLCORE MBUS - START****************
   27 May 2014 14:24:52,879 main - ***********************************************
   27 May 2014 14:24:57,873 SimpleAsyncTaskExecutor-1 - Consumer raised exception, processing can restart if the connection factory supports it
   org.springframework.amqp.UncategorizedAmqpException: java.lang.IllegalStateException: Invalid configuration: 'exchange' must be non-null.
       at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:60)
       at org.springframework.amqp.rabbit.connection.RabbitAccessor.convertRabbitAccessException(RabbitAccessor.java:108)
       at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:632)
       at org.springframework.amqp.rabbit.core.RabbitAdmin.initialize(RabbitAdmin.java:352)
       at org.springframework.amqp.rabbit.core.RabbitAdmin$11.onCreate(RabbitAdmin.java:286)
       at org.springframework.amqp.rabbit.connection.CompositeConnectionListener.onCreate(CompositeConnectionListener.java:31)
       at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:230)
       at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils$1.createConnection(ConnectionFactoryUtils.java:77)
       at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.doGetTransactionalResourceHolder(ConnectionFactoryUtils.java:125)
       at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactoryUtils.java:67)
       at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:200)
       at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:527)
       at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: Invalid configuration: 'exchange' must be non-null.
       at com.rabbitmq.client.impl.AMQImpl$Queue$Bind.<init>(AMQImpl.java:1506)
       at com.rabbitmq.client.AMQP$Queue$Bind$Builder.build(AMQP.java:840)
       at com.rabbitmq.client.impl.ChannelN.queueBind(ChannelN.java:790)
       at com.rabbitmq.client.impl.ChannelN.queueBind(ChannelN.java:61)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:348)
       at $Proxy7.queueBind(Unknown Source)
       at org.springframework.amqp.rabbit.core.RabbitAdmin.declareBindings(RabbitAdmin.java:446)
       at org.springframework.amqp.rabbit.core.RabbitAdmin.access$300(RabbitAdmin.java:51)
       at org.springframework.amqp.rabbit.core.RabbitAdmin$12.doInRabbit(RabbitAdmin.java:356)
       at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:627)
       ... 10 more
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140527/540bd98a/attachment.html>


More information about the rabbitmq-discuss mailing list