You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "vlad.balan" <vl...@gmail.com> on 2011/03/11 20:00:42 UTC
NullPointerException when ClassPathApplication finds my unrelated
FactoryBean in Spring context
When using OpenEJB with Spring and using
if accidentally i have my class that is a factory bean (that implements
org.springframework.beans.factory.FactoryBean) declared in the same spring
config file then i get NullPointerExcetption.
Seems like ClassPathApplication also looks at the definitions in the spring
context and it is something he does not like when stumping upon my unrelated
to EJB BeanFactory.
Stack trace:
Error creating bean with name 'classPathApplication': Invocation of init
method failed; nested exception is java.lang.NullPointerException
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
--
View this message in context: http://openejb.979440.n4.nabble.com/NullPointerException-when-ClassPathApplication-finds-my-unrelated-FactoryBean-in-Spring-context-tp3348841p3348841.html
Sent from the OpenEJB User mailing list archive at Nabble.com.