You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/10/06 11:37:56 UTC

[GitHub] [camel] orpiske commented on pull request #8046: CAMEL-18152: implement auto-configuration for the adapters

orpiske commented on PR #8046:
URL: https://github.com/apache/camel/pull/8046#issuecomment-1269870831

   > HI @orpiske , after I switched to version 3.19.0 (with this change) My route to process some files is no longer working:
   > 
   > `Error starting consumer while taking leadership. Caused by: [java.lang.NullPointerException - Cannot invoke "org.apache.camel.resume.ResumeStrategy.setAdapter(org.apache.camel.resume.ResumeAdapter)" because "this.resumeStrategy" is null]`
   > 
   > ```
   > @Component
   > public class LocalDirectoryWatcher extends RouteBuilder {
   > 
   >     @Override
   >     public void configure() {
   >         from("{{route.in}}")
   >                 .process(this::exchange);
   >     }
   > 
   >     void exchange(Exchange exchange) {
   >     ...
   >     }
   > ```
   > 
   > `route.in` is `route.in: master:localimport:file:/some-directory-patch`
   > 
   > Other routes that just do a `from("{{foo.route.in}}").to("{{foo.route.out}}");` work fine.
   > 
   > Is there something I'm missing?
   
   Thanks for the report. Please, can you please share the whole stack trace? Aso feel free to [open a ticket on our Jira](https://issues.apache.org/jira/) with all the details, so I can take a look at it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org