Spring Application Start Throw BeanDefinitionStoreException

When your Spring application startup, you may sometimes encounter such exceptions. org.springframework.beans.factory.BeanDefinitionStoreException. And the error message maybe like below.

 Failed to read candidate component class: file nested exception is org.springframework.core.NestedIOException: 
 ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: 
 nested exception is java.lang.IllegalArgumentException

This is usually because your Spring framework version is not compatible with your jdk version. For example, Spring 3 only compatible with jdk version less than jdk 7, If you are using jdk 8,  you need use Spring 4.

Subscribe to receive more programming tricks.

We don’t spam!

close

Subscribe to receive more programming tricks.

We don’t spam!

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x