-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FastCamelContext.clearModel() causes NPEs at runtime #69
Comments
Reproducible with the code in #72 |
Getting back to this one now. So clearing the model causes two known issues: (1) a NPE when calling (1) is, I think, quite harmless. We can either ignore it or find a way how to describe a route without having the RouteDef available, perhaps by storing the description at build time somewhere, e.g. in (2) is I believe harder to solve. Here is the stack trace from the bean itest after
The question is whether the |
Agreed with @gnodet that I should create a Camel Jira for this. |
Right, this definitely needs to be fixed asap in Camel. |
I've just created https://issues.apache.org/jira/browse/CAMEL-13912 for that, i'll have a look asap. |
I've commited a fix but testing it in camel-quarkus requires an upgrade to camel 3.0.0-SNAPSHOT / RC1 which is not trivial, so need to work on that first. |
FastCamelContext.clearModel()
was introducted with the upgrade to Camel 3.0.0-M3. It causes some NPEs at runtime, e.g. inorg.apache.camel.reifier.errorhandler.ErrorHandlerReifier.lookupErrorHandlerFactory(RouteContext, String, boolean)
or inFastCamelRuntime.dumpRoutes()
becauseRouteContext.getRoute()
returns null afterFastCamelContext.clearModel()
was calledThe text was updated successfully, but these errors were encountered: