简体   繁体   中英

handle 404 error in ws:outbound-gateway

Is there away to handle 404 error in ws:outbound-gateway am using Spring integration 4.3.5 error below,

[org.springframework.jms.listener.DefaultMessageListenerContainer] (jmsIn.container-1) Execution of JMS message listener failed, and no ErrorHandler has been set.: org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.integration.ws.MarshallingWebServiceOutboundGateway#0]; nested exception is org.springframework.ws.client.WebServiceTransportException: Not Found [404]

Add an ExpressionEvaluatingRequestHandlerAdvice to the gateway; it allows you to handle the error, throw a different exception, or return some other reply.

See here for a general discussion about adding advices to endpoints .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM