spring-integration - Spring Integration:"no output channel or replyChannel header available"

我正在使用 SI flow:


<integration:gateway id="notificationGateway"
 default-request-channel="start" 
 default-reply-channel="end"
 service-interface="com.supplier.NotificationGateway"/>
<integration:channel id="start"/>
<integration:service-activator id="securedFileTransfer" 
 input-channel="start" 
 ref="Submitter" 
 method="submit" 
 output-channel="end"/>
<integration:publish-subscribe-channel id="end"/>

获取以下错误:


no output-channel or replyChannel header available?borg.springframework.integration.support.channel.ChannelResolutionException: no output-channel or replyChannel header available

时间:


createSlotGateway.send(MessageBuilder.withPayload(myPayload).copyHeaders(messagePrev.getHeaders()).build());

...