Hi everyone, I am new to spring integration and I am trying to send and recieve messages from a rabbit-mq messaging server. I keep getting the following ChannelResolutionException
...
INFO: started org.springframework.integration.endpoint.EventDriv enConsumer@1bbd3e2
01-Feb-2011 12:05:36 org.springframework.amqp.rabbit.listener.AbstractM essageListenerContainer invokeErrorHandler
WARNING: Execution of Rabbit message listener failed, and no ErrorHandler has been set.
org.springframework.integration.support.channel.Ch annelResolutionException: no output-channel or replyChannel header available
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.sendReplyMessage(Abstra ctReplyProducingMessageHandler.java:166)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.produceReply(AbstractRe plyProducingMessageHandler.java:125)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.handleResult(AbstractRe plyProducingMessageHandler.java:119)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.handleMessageInternal(A bstractReplyProducingMessageHandler.java:101)
at org.springframework.integration.handler.AbstractMe ssageHandler.handleMessage(AbstractMessageHandler. java:78)
at org.springframework.integration.dispatcher.Unicast ingDispatcher.doDispatch(UnicastingDispatcher.java :110)
at org.springframework.integration.dispatcher.Unicast ingDispatcher.dispatch(UnicastingDispatcher.java:9 7)
at org.springframework.integration.channel.AbstractSu bscribableChannel.doSend(AbstractSubscribableChann el.java:44)
at org.springframework.integration.channel.AbstractMe ssageChannel.send(AbstractMessageChannel.java:157)
at org.springframework.integration.channel.AbstractMe ssageChannel.send(AbstractMessageChannel.java:128)
at org.springframework.integration.core.MessagingTemp late.doSend(MessagingTemplate.java:288)
at org.springframework.integration.core.MessagingTemp late.send(MessagingTemplate.java:149)
at org.springframework.integration.endpoint.MessagePr oducerSupport.sendMessage(MessageProducerSupport.j ava:92)
at org.springframework.integration.amqp.AmqpInboundEn dpoint.access$000(AmqpInboundEndpoint.java:34)
at org.springframework.integration.amqp.AmqpInboundEn dpoint$1.onMessage(AmqpInboundEndpoint.java:55)
at org.springframework.amqp.rabbit.listener.AbstractM essageListenerContainer.doInvokeListener(AbstractM essageListenerContainer.java:298)
at org.springframework.amqp.rabbit.listener.AbstractM essageListenerContainer.invokeListener(AbstractMes sageListenerContainer.java:246)
at org.springframework.amqp.rabbit.listener.AbstractM essageListenerContainer.doExecuteListener(Abstract MessageListenerContainer.java:222)
at org.springframework.amqp.rabbit.listener.AbstractM essageListenerContainer.executeListener(AbstractMe ssageListenerContainer.java:192)
at org.springframework.amqp.rabbit.listener.SimpleMes sageListenerContainer$AsyncMessageProcessingConsum er.receiveAndExecute(SimpleMessageListenerContaine r.java:388)
at org.springframework.amqp.rabbit.listener.SimpleMes sageListenerContainer$AsyncMessageProcessingConsum er.run(SimpleMessageListenerContainer.java:307)
at java.lang.Thread.run(Thread.java:619)
01-Feb-2011 12:05:36 org.springframework.amqp.rabbit.listener.SimpleMes sageListenerContainer$AsyncMessageProcessingConsum er run
INFO: Closing consumer on channel: AMQChannel(amqp://[user]@[host]:[port]/,1)
My inbound channel adapter is configured as follows:
Can anyone explain to me what is going on? Or maybe even what i need to do to get past this? I can submit more of the applicationContext.xml or provide more information if you need. At the moment I'm not sure what is wrong so I'm not sure what would help.HTML Code:<amqp:inbound-channel-adapter queue-name="[valid-queue-name]" channel="httpResponseChannel" connection-factory="rabbitConnectionFactory" />
Thanks in advance


Reply With Quote