Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route logging-route: Route(logging-route)[From[direct:LogPoint] -> [Log[${body}],... because of Failed to resolve endpoint: direct://LogPoint due to: Value false converted to boolean cannot be null
I only get this error when running my project from an executable jar as opposed to the ide. Function Failing In:
logContext = new DefaultCamelContext();
try{
logContext.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct:LogPoint")
.routeId("logging-route")
.log("${body}")
.to("stream:out");
}
});
}catch (Exception e){
System.out.println("Failed createLoggingContext()");
System.out.println(e.getStackTrace().toString());
}
return logContext;