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

Issue with the ref endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.11-GA
    • fuse-7.10-GA
    • Camel
    • None
    • False
    • False
    • Medium
    • % %
    • +
    • Automated
    • Hide

      The http4 endpoint works fine if accessed directly instead of using ref component 

      Show
      The http4 endpoint works fine if accessed directly instead of using ref component 
    • Hide

      1. Compile the attached source code.
      2. Deploy the compiled bundle on Fuse 7.10
      3. Install camel-http4 feature
      4. Hit the rest endpoint: curl -X GET "http://localhost:9090/sample/get3" -H "accept: application/json"
      This will throw the exception in the fuse logs.

      Show
      1. Compile the attached source code. 2. Deploy the compiled bundle on Fuse 7.10 3. Install camel-http4 feature 4. Hit the rest endpoint: curl -X GET " http://localhost:9090/sample/get3 " -H "accept: application/json" This will throw the exception in the fuse logs.

    Description

      When http4 endpoint is triggered using "ref" component, the application throws below exception

      java.lang.IllegalStateException: Connection pool shut down
      at org.apache.http.util.Asserts.check(Asserts.java:34) ~[?:?]
      at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.requestConnection(PoolingHttpClientConnectionManager.java:269) ~[?:?]
      at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:176) ~[?:?]
      at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[?:?]
      at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[?:?]
      at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]
      at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[?:?]
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[?:?]
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[?:?]
      at org.apache.camel.component.http4.HttpProducer.executeMethod(HttpProducer.java:334) ~[?:?]
      at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:193) ~[?:?]
      at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) ~[!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97) [!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at org.apache.camel.component.undertow.UndertowConsumer.handleRequest(UndertowConsumer.java:196) [!/:2.23.2.fuse-7_10_0-00020-redhat-00001]
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387) [!/:2.2.12.Final-redhat-00001]
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:852) [!/:2.2.12.Final-redhat-00001]
      at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415) [!/:?]
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1426) [!/:?]
      at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280) [!/:3.8.4.Final-redhat-00001]
      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282] 

      Attachments

        Activity

          People

            yfang@redhat.com Freeman(Yue) Fang
            rhn-support-shchavan Shrikant Chavan (Inactive)
            Branislav Smolicek Branislav Smolicek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: