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 06:11:58 GMT

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

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

GitHub user tadayosi opened a pull request:

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

    CAMEL-10427 - CXFRS client gets "Response timeout" exception when used with Camel transport

    https://issues.apache.org/jira/browse/CAMEL-10427
    https://issues.jboss.org/browse/ENTESB-6028
    
    Made `CxfHeaderHelper` aware of mapping between Camel `Exchange.HTTP_RESPONSE_CODE` <->
CXF `Message.RESPONSE_CODE`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tadayosi/camel CAMEL-10427

Alternatively you can review and apply these changes as the patch at:

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1240
    
----
commit f7443a03264b1363cf996c98538640923012f2bd
Author: Tadayoshi Sato <sato.tadayoshi@gmail.com>
Date:   2016-11-01T05:19:01Z

    CAMEL-10427 - CXFRS client gets "Response timeout" exception when used with Camel transport

----


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

Mime
View raw message