Closed
Description
In what version(s) of Spring Integration are you seeing this issue?
6.1.4.RELEASE
Describe the bug
WebSocketInboundChannelAdapter does not capture exceptions raised by it's IntegrationWebSocketContainer start() method.
To Reproduce
- Create a
StandardWebSocketClient
; - Create a
ClientWebSocketContainer
pointing to an invalid URI using theStandardWebSocketClient
; - Create a
WebSocketInboundChannelAdapter
using theClientWebSocketContainer
and set it's errorChannel; - Create an
IntegrationFlow
from theWebSocketInboundChannelAdapter
; - Create an
IntegrationFlowContext
and register theIntegrationFlow
in it with autorun set to false; - Retrieve the
IntegrationFlow
from theIntegrationFlowContext
and call it'sstart()
method.
Expected behavior
Since the URI in the ClientWebSocketContainer is invalid, the thrown Exception should be captured and directed to the errorChannel.
Sample