【问题标题】:handle 404 error in ws:outbound-gateway处理 ws:outbound-gateway 中的 404 错误
【发布时间】:2017-11-20 19:31:54
【问题描述】:

是否可以在 ws:outbound-gateway 中使用 Spring 集成 4.3.5 处理 404 错误 以下错误,

[org.springframework.jms.listener.DefaultMessageListenerContainer] (jmsIn.container-1) JMS消息监听器执行失败,没有设置ErrorHandler。:org.springframework.messaging.MessageHandlingException:消息处理程序发生错误[ org.springframework.integration.ws.MarshallingWebServiceOutboundGateway#0];嵌套异常是 org.springframework.ws.client.WebServiceTransportException: Not Found [404]

【问题讨论】:

    标签: java web-services spring-integration


    【解决方案1】:

    向网关添加ExpressionEvaluatingRequestHandlerAdvice;它允许您处理错误、抛出不同的异常或返回一些其他回复。

    here for a general discussion about adding advices to endpoints

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-11
      • 2015-10-31
      • 2015-04-07
      • 2017-03-02
      • 2013-11-24
      相关资源
      最近更新 更多