Re: Camel 3.0.1 - NullPointerException with @BeanInject

2020-02-06 Thread Remco Schoen
I created an issue for this: https://issues.apache.org/jira/browse/CAMEL-14510. Op 31 jan. 2020, om 17:24 heeft Andrea Cosentino 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

Re: Camel 3.0.1 - NullPointerException with @BeanInject

2020-01-31 Thread Andrea Cosentino
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 ha scritto: > I added a null-check in the method getInjectionBeanValue of the > CamelPostProcessorHelper and that seemed to solve it: > > if (camelContext != null && >

Re: Camel 3.0.1 - NullPointerException with @BeanInject

2020-01-31 Thread Remco Schoen
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 het > volgende

Camel 3.0.1 - NullPointerException with @BeanInject

2020-01-31 Thread Remco Schoen
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