处理从特定服务器响应收到的请求后 但是"无法找到Outbound socket"发生错误。
错误讯息是......
2016-06-15 10:06:41.784 ERROR 5916 --- [task-scheduler-6] o.s.integration.handler.LoggingHandler : org.springframework.messaging.MessageHandlingException: Unable to find outbound socket
at org.springframework.integration.ip.tcp.TcpSendingMessageHandler.handleMessageInternal(TcpSendingMessageHandler.java:113)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:101)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
....
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
调试日志是......
2016-06-15 10:06:41.773 DEBUG 5916 --- [task-scheduler-6] o.s.integration.channel.DirectChannel : preSend on channel 'flowForConvertingPlainJsonToBytes.channel#2', message: GenericMessage [payload=byte[201], headers={json__ContentTypeId__=class java.lang.String, json__TypeId__=class java.util.HashMap, ip_tcp_remotePort=62114, ip_connectionId=192.168.3.96:62114:5001:9f5bfc60-9e72-44e8-813d-2884b2e12ae1, ip_address=192.168.3.96, id=6dccdee4-7edd-d9bc-c0ac-aa58ebd8a6c7, json__KeyTypeId__=class java.lang.String, contentType=application/json, ip_hostname=192.168.3.96, timestamp=1465952801773}]
2016-06-15 10:06:41.775 DEBUG 5916 --- [task-scheduler-6] o.s.i.ip.tcp.TcpSendingMessageHandler : plainHandler received message: GenericMessage [payload=byte[201], headers={json__ContentTypeId__=class java.lang.String, json__TypeId__=class java.util.HashMap, ip_tcp_remotePort=62114, ip_connectionId=192.168.3.96:62114:5001:9f5bfc60-9e72-44e8-813d-2884b2e12ae1, ip_address=192.168.3.96, id=6dccdee4-7edd-d9bc-c0ac-aa58ebd8a6c7, json__KeyTypeId__=class java.lang.String, contentType=application/json, ip_hostname=192.168.3.96, timestamp=1465952801773}]
2016-06-15 10:06:41.778 ERROR 5916 --- [task-scheduler-6] o.s.i.ip.tcp.TcpSendingMessageHandler : Unable to find outbound socket for GenericMessage [payload=byte[201], headers={json__ContentTypeId__=class java.lang.String, json__TypeId__=class java.util.HashMap, ip_tcp_remotePort=62114, ip_connectionId=192.168.3.96:62114:5001:9f5bfc60-9e72-44e8-813d-2884b2e12ae1, ip_address=192.168.3.96, id=6dccdee4-7edd-d9bc-c0ac-aa58ebd8a6c7, json__KeyTypeId__=class java.lang.String, contentType=application/json, ip_hostname=192.168.3.96, timestamp=1465952801773}]
2016-06-15 10:06:41.780 DEBUG 5916 --- [task-scheduler-6] o.s.i.channel.PublishSubscribeChannel : preSend on channel 'errorChannel', message: ErrorMessage [payload=org.springframework.messaging.MessageHandlingException: Unable to find outbound socket, headers={id=152129a7-062a-409b-2f2d-7c5843ba8296, timestamp=1465952801780}]
2016-06-15 10:06:41.782 DEBUG 5916 --- [task-scheduler-6] o.s.integration.handler.LoggingHandler : (inner bean)#8c49d03 received message: ErrorMessage [payload=org.springframework.messaging.MessageHandlingException: Unable to find outbound socket, headers={id=152129a7-062a-409b-2f2d-7c5843ba8296, timestamp=1465952801780}]
ip_connectionId
存在。问题是什么?
答案 0 :(得分:0)
相应的套接字已关闭,或者您正在发送与错误连接工厂关联的出站适配器。
DEBUG日志记录可以帮助您。
此外,在提出这样的问题时,您应该始终包含您的配置。