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

netty4-http requires the path for dynamic endpoint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • fuse-7.11.1-GA
    • Spring Boot
    • False
    • None
    • False
    • % %
    • Todo
    • Very Likely

      netty4-http requires the path for dynamic endpoint

      For instance:

      <route id="proxy-route">
                  <from id="proxy-route" uri="direct:proxy-route" />
                  
                  <log loggingLevel="INFO" message="Scheme: ${header.CamelHttpScheme}" />
                  <log loggingLevel="INFO" message="Host: ${header.CamelHttpHost}" />
                  <log loggingLevel="INFO" message="Port: ${header.CamelHttpPort}" />
                  <log loggingLevel="INFO" message="Path: ${header.CamelHttpPath}" />
                  <toD uri="netty4-http:${header.CamelHttpScheme}://${header.CamelHttpHost}:${header.CamelHttpPort}?throwExceptionOnFailure=false&amp;chunkedMaxContentLength=104857600" />
                  <log loggingLevel="INFO" message="Remove WS Security Header in Response" />
                  <process ref="headerProcessor" />
              </route>
      

      it result to:

      023-01-23 16:09:14,781 [main] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.23.2.fuse-7_11_1-00015-redhat-00002 (CamelContext: proxyContext) started in 2.365 seconds
      2023-01-23 16:09:31,460 [Camel (proxyContext) thread #7 - NettyEventExecutorGroup] INFO  proxy-route - Scheme: http
      2023-01-23 16:09:31,462 [Camel (proxyContext) thread #7 - NettyEventExecutorGroup] INFO  proxy-route - Host: localhost
      2023-01-23 16:09:31,462 [Camel (proxyContext) thread #7 - NettyEventExecutorGroup] INFO  proxy-route - Port: 9443
      2023-01-23 16:09:31,462 [Camel (proxyContext) thread #7 - NettyEventExecutorGroup] INFO  proxy-route - Path: /receiver
      2023-01-23 16:09:33,639 [Camel Thread #8 - NettyClientTCPWorker] ERROR proxy-route - Exception in proxy: Cannot connect to localhost:80
      

              ldemasi Luigi De Masi
              rhn-support-aboucham Abel Bouchama
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: