This content has been marked as final.
Show 2 replies
-
1. Re: SwitchYard File input service stops after a while
tsluijter Apr 15, 2014 5:11 AM (in response to tsluijter)It seems that the file input service isn't the problem.
But a rest service call.
After some 40 calls the rest call hangs.
We've added a timeout of 5 seconds for the rest call and get following logging:
10:56:40,609 ERROR [org.switchyard.component.resteasy.OutboundHandler] (Camel (camel-1) thread #2 - file:///home/jboss/jboss-eap-6.1/standalone/input) Unexpected exception composing inbound Message from Outbound: java.lang.RuntimeException: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection at org.switchyard.component.resteasy.util.ClientInvoker.invoke(ClientInvoker.java:285) [switchyard-component-resteasy-1.1.0.Final.jar:1.1.0.Final] at org.switchyard.component.resteasy.OutboundHandler.handleMessage(OutboundHandler.java:138) [switchyard-component-resteasy-1.1.0.Final.jar:1.1.0.Final] at org.switchyard.bus.camel.processors.ProviderProcessor.process(ProviderProcessor.java:29) [switchyard-bus-camel-1.1.0.Final.jar:1.1.0.Final] at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [camel-core-2.10.0.jar:2.10.0]
After this timeout all next rest calls timeout. But why?
-
2. Re: SwitchYard File input service stops after a while
tsluijter Apr 16, 2014 4:53 AM (in response to tsluijter)We've solved the problem ourselves.
We used a javax.ws.rs.core.Response object to get a response from a rest call.
We've changed this to a org.jboss.resteasy.client.ClientResponse object and call the response.releaseConnection at the end.