Search code examples
apache-camelapache-servicemix

NoSuchMethodError for errorHandler when deploying into ServiceMix


I have a servicemix module, which is basicly a camel based route.

It works fine during development and also when deploying in older version of FUSE. However, when deploying in a later version of FUSE, I get

Caused by: java.lang.NoSuchMethodError: com.company.integration.MyRouteBuilder.errorHandler(Lorg/apache/camel/builder/ErrorHandlerBuilder;)Lorg/apache/camel/builder/RouteBuilder;

I do not quite get why :-)

The old version used camel 2.6, the new uses Camel 2.9. Both have RouteBuilder.errorHandler as far as i can tell..

br


Solution

  • Reinstalling (or rather, recreating the instance) helped.