Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" SocketException:Connection reset " doesn't throw any exeption [INT-3103] #7082

Closed
spring-operator opened this issue Aug 5, 2013 · 4 comments

Comments

@spring-operator
Copy link
Contributor

yuri opened INT-3103 and commented

" SocketException:Connection reset " doesn't throw any exeption , but just logs and then throws org.springframework.integration.MessageTimeoutException: Timed out waiting for response

17:43:06.429 [pool-2-thread-2] ERROR o.s.i.i.t.c.TcpNetConnection - Read exception localhost:27000:630ad5b9-0938-4918-87a5-af6d453aa33b SocketException:Connection reset
17:44:03.269 [http-bio-8080-exec-8] DEBUG o.s.i.ip.tcp.TcpOutboundGateway - Remote Timeout on 0e29b23c-1d13-40a3-800e-7b10492b3298
17:44:03.271 [http-bio-8080-exec-8] WARN o.s.i.g.GatewayProxyFactoryBean$MethodInvocationGateway - failure occurred in gateway sendAndReceive
org.springframework.integration.MessageTimeoutException: Timed out waiting for response
at org.springframework.integration.ip.tcp.TcpOutboundGateway.handleRequestMessage(TcpOutboundGateway.java:131) ~[spring-integration-ip-2.2.4.RELEASE.jar:na]
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:134) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:115) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:102) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.core.MessagingTemplate.doSendAndReceive(MessagingTemplate.java:318) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.core.MessagingTemplate.sendAndReceive(MessagingTemplate.java:239) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.core.MessagingTemplate.convertSendAndReceive(MessagingTemplate.java:274) ~[spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.gateway.MessagingGatewaySupport.doSendAndReceive(MessagingGatewaySupport.java:224) [spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.gateway.MessagingGatewaySupport.sendAndReceive(MessagingGatewaySupport.java:203) [spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.gateway.GatewayProxyFactoryBean.invokeGatewayMethod(GatewayProxyFactoryBean.java:306) [spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.gateway.GatewayProxyFactoryBean.doInvoke(GatewayProxyFactoryBean.java:269) [spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.integration.gateway.GatewayProxyFactoryBean.invoke(GatewayProxyFactoryBean.java:260) [spring-integration-core-2.2.4.RELEASE.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at com.sun.proxy.$Proxy32.send(Unknown Source) [na:na]


Affects: 2.2.4

1 votes, 3 watchers

@spring-operator
Copy link
Contributor Author

Gary Russell commented

It's not entirely clear what you are asking for.

Is it just that you want the calling thread to fail faster (at the time the socket reset was detected, rather than waiting to time out)?

@spring-operator
Copy link
Contributor Author

yuri commented

Yes,something like this. I need to detect the situation when the reset connection was thrown and return the error code: "reset connection" to the client.

@spring-operator
Copy link
Contributor Author

spring-operator commented Aug 18, 2013

Gary Russell commented

Branch ready for PR...

https://github.com/garyrussell/spring-integration/commits/INT-3103

... but depends on merge of fix for #7036, which is waiting for another PR merge.

@spring-operator
Copy link
Contributor Author

Gary Russell commented

PR: #853

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants