Announcement Announcement Module
Collapse
No announcement yet.
xml-validating-filter : Dispatcher has no subscribers Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • xml-validating-filter : Dispatcher has no subscribers

    Hi !

    Something strange happens with my xml-validating-filter.
    This works :
    Code:
    <int-ws:inbound-gateway id="wsdalWsInboundGateway" request-channel="wsdalChannelValidatorToUnMarshall" error-channel="wsdalErrorChannel" />
    
    <int:channel id="wsdalChannelValidatorToUnMarshall" />
    <int-xml:unmarshalling-transformer unmarshaller="dopaconnectWSMarshaller" output-channel="wsdalChannelUnMarshallToRouter"
    		id="wsdalUnMarshallTransformer" input-channel="wsdalChannelValidatorToUnMarshall" />
    
    <int:channel id="wsdalChannelUnMarshallToRouter" />
    <int:transformer output-channel="wsdalChannelToWsRouting" expression="payload.value" id="wsdalRemoveJaxbElementTransformer"
    		input-channel="wsdalChannelUnMarshallToRouter" />
    	
    <int:channel id="wsdalChannelToWsRouting" />
    <int:payload-type-router input-channel="wsdalChannelToWsRouting" id="wsdalWsRouter">
    	<int:mapping ... /> ...
    </int:payload-type-router> ...
    But, when I add the validating filter :
    Code:
    <int-ws:inbound-gateway id="wsdalWsInboundGateway" request-channel="wsdalChannelToInputValidator" error-channel="wsdalErrorChannel" />
    
    <int:channel id="wsdalChannelToInputValidator" />
    <int-xml:validating-filter input-channel="wsdalChannelToInputValidator" output-channel="wsdalChannelValidatorToUnMarshall"
    		id="wsdalValidatorFilter" schema-location="/schemas/WSAll.xsd" throw-exception-on-rejection="true" />
    
    <int:channel id="wsdalChannelValidatorToUnMarshall" />
    <int-xml:unmarshalling-transformer unmarshaller="dopaconnectWSMarshaller" output-channel="wsdalChannelUnMarshallToRouter"
    		id="wsdalUnMarshallTransformer" input-channel="wsdalChannelValidatorToUnMarshall" />
     ...
    I have this error :
    Code:
    org.springframework.integration.MessageDeliveryException: Dispatcher has no subscribers for channel wsdalChannelToInputValidator.
    	at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:82) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.core.MessagingTemplate.doSendAndReceive(MessagingTemplate.java:318) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.core.MessagingTemplate.sendAndReceive(MessagingTemplate.java:239) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.gateway.MessagingGatewaySupport.doSendAndReceive(MessagingGatewaySupport.java:233) [spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.gateway.MessagingGatewaySupport.sendAndReceiveMessage(MessagingGatewaySupport.java:207) [spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.ws.SimpleWebServiceInboundGateway.doInvoke(SimpleWebServiceInboundGateway.java:58) [spring-integration-ws-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.ws.AbstractWebServiceInboundGateway.invoke(AbstractWebServiceInboundGateway.java:53) [spring-integration-ws-2.1.3.RELEASE.jar:na]
    	at org.springframework.ws.server.endpoint.adapter.MessageEndpointAdapter.invoke(MessageEndpointAdapter.java:41) [spring-ws-core-2.1.1.RELEASE.jar:na]
    	at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:233) [spring-ws-core-2.1.1.RELEASE.jar:na]
    	at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:173) [spring-ws-core-2.1.1.RELEASE.jar:na]
    	at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88) [spring-ws-core-2.1.1.RELEASE.jar:na]
    	at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:59) [spring-ws-core-2.1.1.RELEASE.jar:na]
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) [servlet-api.jar:na]
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) [servlet-api.jar:na]
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) [catalina.jar:na]
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) [catalina.jar:na]
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) [catalina.jar:na]
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) [catalina.jar:na]
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) [catalina.jar:na]
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) [catalina.jar:na]
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) [catalina.jar:na]
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) [catalina.jar:na]
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) [tomcat-http.jar:na]
    	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) [tomcat-http.jar:na]
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) [tomcat-util.jar:5.1]
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) [tomcat-util.jar:5.1]
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) [tomcat-util.jar:5.1]
    	at java.lang.Thread.run(Thread.java:662) [na:1.6.0_35]
    Caused by: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers
    	at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:109) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:102) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77) ~[spring-integration-core-2.1.3.RELEASE.jar:na]
    	... 33 common frames omitted
    Can anyone help me ?

    Regards,
    Gabe
    Last edited by Piscenois; Oct 2nd, 2012, 02:52 AM.

  • #2
    Problem solved.
    A bad copy / paste and the filter was duplicated with the same id.

    Comment

    Working...
    X