Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
2.16.0, 2.17.0
-
None
-
None
-
Unknown
-
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"));
}
};
}
}