camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10427) CXFRS client gets "Response timeout" exception when used with Camel transport
Date Tue, 01 Nov 2016 11:41:58 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15625210#comment-15625210
] 

ASF GitHub Bot commented on CAMEL-10427:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/camel/pull/1240


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

Mime
View raw message