[ 
https://issues.apache.org/jira/browse/CAMEL-10076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-10076.
---------------------------------
    Resolution: Cannot Reproduce
      Assignee: Claus Ibsen

> camel jetty http server does not respond
> ----------------------------------------
>
>                 Key: CAMEL-10076
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10076
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.16.0, 2.17.0
>            Reporter: sander hautvast
>            Assignee: Claus Ibsen
>
> 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"));
>             }
>         };
>     }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to