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.