You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tadayoshi Sato (JIRA)" <ji...@apache.org> on 2016/11/01 02:21:00 UTC

[jira] [Updated] (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 ]

Tadayoshi Sato updated CAMEL-10427:
-----------------------------------
    Attachment: camel-cxf-transport.zip

Reproducer {{camel-cxf-transport.zip}} attached. See {{README.md}} inside.

> 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
>         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)