Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10427

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.0
    • 2.18.1, 2.19.0
    • camel-cxfrs
    • None
    • Unknown

    Description

      When a CXFRS client is used with Camel transport:

        <cxf:rsClient id="rsClient" address="camel://direct:cxf.in" ...>
      

      it throws the following exception waiting for a response from the target REST server:

      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)
          [...]
      

      unless you explicitly remap the following header:

          <setHeader headerName="org.apache.cxf.message.Message.RESPONSE_CODE">
              <simple>${headers.CamelHttpResponseCode}</simple>
          </setHeader>
      

      Attachments

        1. camel-cxf-transport.zip
          8 kB
          Tadayoshi Sato

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              tadayosi Tadayoshi Sato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: