ASM ClassReader failed to parse class file

来源:互联网 发布:2017淘宝店铺开店流程 编辑:程序博客网 时间:2024/05/29 03:46

ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn’t supported yet:

运行了下之前的项目报了这个异常。
无法读取候选组件类:嵌套异常是org.springframework.core.NestedIOException:ASM ClassReader无法解析类文件 - 可能是由于不支持的新的Java类文件版本。


org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/usr/tomcat/webapps/ccicapi/WEB-INF/classes/com/csjbx/aspect/AspectLog.class]; 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: file [/usr/tomcat/webapps/ccicapi/WEB-INF/classes/com/csjbx/aspect/AspectLog.class]; nested exception is java.lang.IllegalArgumentException


原因:由于使用的spring3.2.8,编译的版本是JDK 1.8导致了不支持新的Java类文件版本。

解决:将本地编译环境降低,我使用了1.7重新编译后就可以正常运行了。

我这是我解决的方案,但不知道大家遇到时候是否适用。

阅读全文
1 0
原创粉丝点击