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

camel jetty http server does not respond

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.16.0, 2.17.0
    • Fix Version/s: None
    • Component/s: camel-jetty
    • Labels:
      None
    • Estimated Complexity:
      Unknown
    • Regression:
      Regression

      Description

      this works up to camel 2.15.6 and stops working in 2.16.0 and higher:

      from("jetty:http://0.0.0.0:8080/ping").log("${in.body}").setBody(constant("bar"));

      in the affected versions the log is written, but the client keeps waiting for a response

      build.gradle:
      plugins {
      id 'java'
      id 'eclipse'
      }

      repositories {
      jcenter()
      }

      sourceCompatibility = '1.8'
      targetCompatibility = '1.8'

      ext.camelVersion='2.17.1'

      dependencies{
      compile group: 'org.springframework.boot', name: 'spring-boot-starter', version: '1.3.5.RELEASE'
      compile group: 'org.apache.camel', name: 'camel-spring-boot', version: "$camelVersion"
      compile group: 'org.apache.camel', name: 'camel-jetty', version: "$camelVersion"
      }

      complete code:
      import org.apache.camel.RoutesBuilder;
      import org.apache.camel.builder.RouteBuilder;
      import org.springframework.boot.SpringApplication;
      import org.springframework.boot.autoconfigure.SpringBootApplication;
      import org.springframework.context.annotation.Bean;

      @SpringBootApplication
      public class App {

      public static void main(String[] args)

      { SpringApplication.run(App.class, args); }

      @Bean
      RoutesBuilder myRouter() {
      return new RouteBuilder() {
      @Override
      public void configure() throws Exception {
      from("jetty:http://0.0.0.0:8080/ping").log("${in.body}").setBody(constant("bar"));

      }

      };
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              shautvast sander hautvast
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: