Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13102

Exception on consuming a Rest service with return code 202, using CXF rsClient

    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • fuse-7.5-GA
    • fuse-7.7-GA
    • CXF, Fuse Standalone
    • None
    • fuse-7.7-build1
    • Hide

      Attached reproducer

      0. unzip, and install reproducer from ENTESB-13049

      $ mvn clean install

      1. Fresh installer of any Fuse 6.3.0 (I tested on R15)
      2. install cxf-rs-security-cors

      karaf> features:install cxf-rs-security-cors

      3. install reproducer

      karaf> install -s mvn:com.reproducer.bundles/fuse-bundle-processes/0.fuse-630-SNAPSHOT

      4. you should see the exception on logs

      Show
      Attached reproducer 0. unzip, and install reproducer from ENTESB-13049 $ mvn clean install 1. Fresh installer of any Fuse 6.3.0 (I tested on R15) 2. install cxf-rs-security-cors karaf> features:install cxf-rs-security-cors 3. install reproducer karaf> install -s mvn:com.reproducer.bundles/fuse-bundle-processes/0.fuse-630-SNAPSHOT 4. you should see the exception on logs
    • +

    Description

      Cloned from ENTESB-13049:

      When consuming a service that returns code 202, it returns this exception

      javax.ws.rs.ProcessingException: java.lang.IllegalStateException: The entity is not backed by an input stream, entity class is : java.lang.String
      	at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:1191)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1160)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1098)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:894)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:428)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(CxfRsProducer.java:222)[241:org.apache.camel.camel-cxf:2.17.0.redhat-630434]
      	at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:89)[241:org.apache.camel.camel-cxf:2.17.0.redhat-630434]
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:681)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:609)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:238)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:170)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.RecipientList.process(RecipientList.java:131)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:192)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:76)[232:org.apache.camel.camel-core:2.17.0.redhat-630434]
      	at java.util.TimerThread.mainLoop(Timer.java:555)[:1.8.0_221]
      	at java.util.TimerThread.run(Timer.java:505)[:1.8.0_221]
      Caused by: java.lang.IllegalStateException: The entity is not backed by an input stream, entity class is : java.lang.String
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:393)[139:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.5.redhat-630434]
      	at org.apache.cxf.jaxrs.client.AbstractClient.readBody(AbstractClient.java:521)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:1172)[140:org.apache.cxf.cxf-rt-rs-client:3.1.5.redhat-630434]
      	... 28 more
      

      Attachments

        Issue Links

          Activity

            People

              yfang@redhat.com Freeman(Yue) Fang
              rhn-support-tmielke Torsten Mielke
              Branislav Smolicek Branislav Smolicek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: