wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring exception" Watch "Spring exception" New topic
Author

Spring exception

Joyce Kind
Greenhorn

Joined: Nov 27, 2008
Posts: 8
Hi,

My application was working before. After I added some spring schema in the applicationContext.xml header and changed the spring-beans version from 2.5 to 3.0, and I got the following exceptions when I start my application.

java.lang.NoSuchMethodError: org.springframework.core.MethodParameter.getParameterAnnotations()[Ljava/lang/Object;
at org.springframework.beans.factory.config.DependencyDescriptor.getAnnotations(DependencyDescriptor.java:203)
at org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver.isAutowireCandidate(QualifierAnnotationAutowireCandidateResolver.java:106)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.isAutowireCandidate(DefaultListableBeanFactory.java:377)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.isAutowireCandidate(DefaultListableBeanFactory.java:364)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:670)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:982)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:329)
at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:191)
at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:254)

Do you know what is about? By the way, I am not using autowiring in my application.

Thanks!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Please post your application config file? What do you have in it that was in the 2.5 schema that isn't in the 3.0 schema?

We need more context.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
bennie Zhang
Greenhorn

Joined: Mar 02, 2011
Posts: 1
Any one got this issue fixed ? I also facing the same ,when upgrading to Spring 3.0.5
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

bennie Zhang wrote:Any one got this issue fixed ? I also facing the same ,when upgrading to Spring 3.0.5


Like I asked the Original Poster a couple months ago. Post your configuration file. But do this in a new thread.

Thanks

Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring exception
 
Similar Threads
spring bean property is not writable or has an invalid setter method
Integrating hibernate with spring
BeanCreationException in an standalone application using Spring
Spring
WLS 10.3 + hibernate: DuplicateMappingException while deploying the war file