-
Jul 7th, 2006, 01:31 AM
#1
Spring 2.0RC2 not backward compatible ?
Once I replace the 2.0 RC1 spring.jar with the one from 2.0 RC2, I got a NullPointerException.
(See stacktrace below)
Is this a compatibility bug ? It works fine with 2.0M4 and 2.0RC1 but not 2.0RC2.
Hanson
Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlAp plicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'afterInvocationDelayQueue' defined in class path resource [spring/tkzJmx.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:97)
at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:78)
at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:156)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:548)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:352)
... 19 more
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'afterInvocationDelayQueue' defined in class path resource [spring/tkzJmx.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:402)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 40)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:132)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:237)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:153)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:254)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:337)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:92)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:77)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:494)
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:82)
... 23 more
Caused by: java.lang.NullPointerException
at org.springframework.core.annotation.AnnotationUtil s.getAnnotations(AnnotationUtils.java:41)
at org.springframework.transaction.annotation.Annotat ionTransactionAttributeSource.findAllAttributes(An notationTransactionAttributeSource.java:60)
at org.springframework.transaction.interceptor.Abstra ctFallbackTransactionAttributeSource.computeTransa ctionAttribute(AbstractFallbackTransactionAttribut eSource.java:138)
at org.springframework.transaction.interceptor.Abstra ctFallbackTransactionAttributeSource.getTransactio nAttribute(AbstractFallbackTransactionAttributeSou rce.java:98)
at org.springframework.transaction.interceptor.Transa ctionAttributeSourceAdvisor$TransactionAttributeSo urcePointcut.matches(TransactionAttributeSourceAdv isor.java:93)
at org.springframework.aop.support.AopUtils.canApply( AopUtils.java:184)
at org.springframework.aop.support.AopUtils.canApply( AopUtils.java:207)
at org.springframework.aop.support.AopUtils.findAdvis orsThatCanApply(AopUtils.java:226)
at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.findEligibleAdvisors(Abs tractAdvisorAutoProxyCreator.java:67)
at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.getAdvicesAndAdvisorsFor Bean(AbstractAdvisorAutoProxyCreator.java:53)
at org.springframework.aop.framework.autoproxy.Abstra ctAutoProxyCreator.postProcessAfterInitialization( AbstractAutoProxyCreator.java:244)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyBeanPostProcessors AfterInitialization(AbstractAutowireCapableBeanFac tory.java:282)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:884)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:396)
... 36 more
-
Jul 7th, 2006, 10:33 AM
#2
Hanson,
Is it possible for you to create a JIRA bug report for this along with a copy of your configuration? I roughly know where the error lies but I need to see your config and maybe your class structure as well.
Rob
-
Jul 9th, 2006, 10:34 AM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules