SOLVED. It seems that java.lang.NullPointerException was for the CamelContext and not for routeId in line 174:
camelContext.stopRoute(routeId); where even though camelContext was an instance variable, it wasn't instantiated by the time terminate() was called. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-stopping-route-camelContext-stopRoute-String-routeId-throws-java-lang-NullPointerExceptn-tp5741141p5741224.html Sent from the Camel - Users mailing list archive at Nabble.com.