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.

(Visited 67 times, 1 visits today)
READ :   Autowire Spring Bean Constructor Injection Examples

Leave a Reply

Your email address will not be published. Required fields are marked *

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