I created an issue for this: https://issues.apache.org/jira/browse/CAMEL-14510.
Op 31 jan. 2020, om 17:24 heeft Andrea Cosentino <anco...@gmail.com<mailto:anco...@gmail.com>> het volgende geschreven: Can you open a JIRA issue if you think this is a bug ? Thank you Il giorno ven 31 gen 2020 alle ore 17:23 Remco Schoen <r.sch...@topdesk.com<mailto:r.sch...@topdesk.com>> ha scritto: I added a null-check in the method getInjectionBeanValue of the CamelPostProcessorHelper and that seemed to solve it: if (camelContext != null && type.isAssignableFrom(camelContext.getClass())) { return camelContext; } Op 31 jan. 2020, om 17:13 heeft Remco Schoen <r.sch...@topdesk.com<mailto:r.sch...@topdesk.com>> het volgende geschreven: Hi, When testing if I can use Camel 3, I’m getting a NullPointerException when trying to start Camel. Part of the stacktrace: Exception in thread "main" org.apache.camel.RuntimeCamelException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'route.dlc.ErrorRoutes': Initialization of bean failed; nested exception is org.apache.camel.spring.GenericBeansException: Error post processing bean: route.dlc.ErrorRoutes; nested exception is java.lang.NullPointerException Caused by: java.lang.NullPointerException at org.apache.camel.impl.engine.CamelPostProcessorHelper.getInjectionBeanValue(CamelPostProcessorHelper.java:292) at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.injectFieldBean(DefaultCamelBeanPostProcessor.java:234) at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.lambda$injectFields$0(DefaultCamelBeanPostProcessor.java:192) at org.apache.camel.util.ReflectionHelper.doWithFields(ReflectionHelper.java:108) at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.injectFields(DefaultCamelBeanPostProcessor.java:184) at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:95) at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:162) ... 30 more I’m using the Spring Main class to run camel. Any clue what could be wrong? I’m trying to create a simple test-case. Kind regards, Remco Schoen