-
1. Re: spring.CamelBeanPostProcessor - NPE
davsclaus Apr 15, 2011 4:05 AM (in response to miccab)Yeah seems like you hit a big. Let me try to reproduce the issue in an unit test.
-
2. Re: spring.CamelBeanPostProcessor - NPE
njiang Apr 15, 2011 4:18 AM (in response to miccab)Can I know version of Spring are you using?
I just write a simple test according to your description and cannot reproduce the error that you mentioned, even I let the factorybean return a null object.
I'm using Spring 3.0.5 and Camel trunk (2.8-SNAPSHOT), the CamelBeanPostProcessor doesn't change much.
Willem
-
3. Re: spring.CamelBeanPostProcessor - NPE
davsclaus Apr 15, 2011 4:29 AM (in response to davsclaus)I can't reproduce the issue on trunk.
-
4. Re: spring.CamelBeanPostProcessor - NPE
miccab Apr 15, 2011 4:07 PM (in response to njiang)I am using 2.5.6
-
5. Re: spring.CamelBeanPostProcessor - NPE
njiang Apr 18, 2011 4:42 AM (in response to miccab)Hi
I did some tests on Camel2.4.x branch with spring 2.5.6 and can't reproduce the error that you mentioned.
Can you double check your factory bean to make sure it doesn't return a null object?
Willem
-
6. Re: spring.CamelBeanPostProcessor - NPE
miccab Apr 18, 2011 5:10 AM (in response to njiang)hello,
yes, indeed I return null object! I will work on workaround this issue then.
But can you plan on checking the null? after all you can just ignore the rest of the logic then.
thanks,
Michal
-