Wednesday, April 24, 2013

ChannelResolutionException in Spring Integration with Groovy

Recently, after launching Spring Integration beans I got weird exception:
ChannelResolutionException: no output-channel or replyChannel header available
After some googling I found out that this error means that Spring Integration tries to configure reply channel, which in my case meant that I am replying into channel-adapter, which is not possible. So basically, problem was that my service method was defined as:
def myServiceMethod()

which Spring understands as it returns something, even if it does not. So this should be told explicitly, like:
void myServiceMethod()

and this is it.


  1. For me this solution is now working. I am getting the below exception:

    18:01:51,317 INFO [STDOUT] 18:01:51,317 ERROR [LoggingHandler] All attempts to deliver Message to MessageHandlers failed. Multiple causes:
    Dispatcher has no subscribers for channel outputStream.
    No reply produced by handler 'null', and its 'requiresReply' property is set to true.

    See below for the stacktrace of the first Dispatcher has no subscribers for channel outputStream.
    at org.springframework.integration.core.MessagingTemplate.doSend(
    at org.springframework.integration.core.MessagingTemplate.send(
    at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(
    at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(
    at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(
    at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(
    at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(
    at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(
    at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(
    at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(
    at org.springframework.integration.core.MessagingTemplate.doSend(
    at org.springframework.integration.core.MessagingTemplate.send(
    at org.springframework.integration.endpoint.SourcePollingChannelAdapter.handleMessage(
    at org.springframework.integration.endpoint.AbstractTransactionSynchronizingPollingEndpoint.doPoll(
    at org.springframework.integration.endpoint.AbstractPollingEndpoint$

  2. The effectiveness of IEEE Project Domains depends very much on the situation in which they are applied. In order to further improve IEEE Final Year Project Domains practices we need to explicitly describe and utilise our knowledge about software domains of software engineering Final Year Project Domains for CSE technologies. This paper suggests a modelling formalism for supporting systematic reuse of software engineering technologies during planning of software projects and improvement programmes in Final Year Project Centers in Chennai.

    Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
    Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai