You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/11/01 11:41:58 UTC
[jira] [Resolved] (CAMEL-10427) CXFRS client gets "Response
timeout" exception when used with Camel transport
[ https://issues.apache.org/jira/browse/CAMEL-10427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-10427.
---------------------------------
Resolution: Fixed
Assignee: Claus Ibsen
Fix Version/s: 2.19.0
2.18.1
Thanks for the PR
> CXFRS client gets "Response timeout" exception when used with Camel transport
> -----------------------------------------------------------------------------
>
> Key: CAMEL-10427
> URL: https://issues.apache.org/jira/browse/CAMEL-10427
> Project: Camel
> Issue Type: Bug
> Components: camel-cxfrs
> Affects Versions: 2.18.0
> Reporter: Tadayoshi Sato
> Assignee: Claus Ibsen
> Fix For: 2.18.1, 2.19.0
>
> Attachments: camel-cxf-transport.zip
>
>
> When a CXFRS client is used with Camel transport:
> {code:java}
> <cxf:rsClient id="rsClient" address="camel://direct:cxf.in" ...>
> {code}
> it throws the following exception waiting for a response from the target REST server:
> {code}
> javax.ws.rs.ProcessingException: Response timeout
> at org.apache.cxf.jaxrs.client.AbstractClient.waitForResponseCode(AbstractClient.java:617)
> at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:598)
> at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:580)
> at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1098)
> at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1035)
> at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:892)
> at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:863)
> at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:329)
> at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(CxfRsProducer.java:210)
> at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:89)
> [...]
> {code}
> unless you explicitly remap the following header:
> {code:xml}
> <setHeader headerName="org.apache.cxf.message.Message.RESPONSE_CODE">
> <simple>${headers.CamelHttpResponseCode}</simple>
> </setHeader>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)