Announcement Announcement Module
Collapse
No announcement yet.
Dispatcher has no subscribers exception? can you help Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dispatcher has no subscribers exception? can you help

    Hello
    I am getting this exception, not sure why, any suggestion would be helpful

    Exception in thread "main" org.springframework.integration.MessageDeliveryExc eption: Dispatcher has no subscribers.
    at org.springframework.integration.dispatcher.Unicast ingDispatcher.doDispatch(UnicastingDispatcher.java :108)
    at org.springframework.integration.dispatcher.Unicast ingDispatcher.dispatch(UnicastingDispatcher.java:1 01)
    at org.springframework.integration.channel.AbstractSu bscribableChannel.doSend(AbstractSubscribableChann el.java:61)
    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.handler.AbstractRe plyProducingMessageHandler.sendMessage(AbstractRep lyProducingMessageHandler.java:175)
    at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.sendReplyMessage(Abstra ctReplyProducingMessageHandler.java:159)
    at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.produceReply(AbstractRe plyProducingMessageHandler.java:124)
    at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.handleResult(AbstractRe plyProducingMessageHandler.java:118)
    at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.handleMessageInternal(A bstractReplyProducingMessageHandler.java:100)
    at org.springframework.integration.handler.AbstractMe ssageHandler.handleMessage(AbstractMessageHandler. java:73)
    at org.springframework.integration.dispatcher.Unicast ingDispatcher.doDispatch(UnicastingDispatcher.java :114)
    at org.springframework.integration.dispatcher.Unicast ingDispatcher.dispatch(UnicastingDispatcher.java:1 01)
    at org.springframework.integration.channel.AbstractSu bscribableChannel.doSend(AbstractSubscribableChann el.java:61)
    at org.springframework.integration.channel.AbstractMe ssageChannel.send(AbstractMessageChannel.java:157)
    at org.springframework.integration.channel.AbstractMe ssageChannel.send(AbstractMessageChannel.java:128)
    at com.follett.fheg.efollett.ftpmessage.service.impl. TempTestigClass2.execute(TempTestigClass2.java:72)
    at com.follett.fheg.efollett.ftpmessage.CTFTPInvoker2 .main(CTFTPInvoker2.java:25)
    ==================
    snippet of my code

    Message<File> xmlDataMsg = MessageBuilder.withPayload(xmlData).build();

    //filesInChannel.send(xmlDataMsg);
    MessageChannel filesInChannel = (MessageChannel)ctx.getBean("filesInChannel",Messa geChannel.class );
    filesInChannel.send(xmlDataMsg);


    My xml configuration

    <int:channel id="filesInChannel"/>
    <int:channel id="objectOutChannel"/>

    <int:service-activator input-channel="filesInChannel" output-channel="objectOutChannel"
    ref="preprocessServiceImpl" method="processMessage">
    <!-- <bean class="preprocessService"/>-->
    </int:service-activator>

  • #2
    Hi!
    Please, use [ CODE ] [ /CODE ] or [ HTML ][ /HTML ] without whitespaces to show sample. It makes you posts more readable.
    Dispatcher has no subscribers
    Is there anybody who is subscribed to the objectOutChannel?
    I recommend read more about Spring Integration to understand "why", "where" and "how".

    Take care,
    Artem

    Comment


    • #3
      Also, what version of Spring Integration are you using? We changed the MessageDeliveryException "Dispatcher has no subscribers" to include the channel name over a year ago.

      Comment

      Working...
      X