相关疑难解决方法(0)

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

My web application runs fine on JDK 1.7 but crashes on 1.8 with the following exception (during application server startup with Jetty 8). I am using Spring version: 3.2.5.RELEASE.

Exception:

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

I assume that problem occurs because of spring and "asm.jar" library on which it depends.

How do I resolve this?

java spring java-8

78
推荐指数
2
解决办法
8万
查看次数

ASM ClassReader 无法解析类文件 - 可能是由于不支持新的 Java 类文件版本 - 我使用的是 Apache 7 和 JDK 1.8

我收到以下错误 **ASM ClassReader 无法解析类文件 - 可能是由于尚不支持的新 Java 类文件版本 **

我使用 JDK 1.8 和 Apache 7 并且使用 Spring 3.2.9 版本来运行我的 web 项目

[jar:file:/apps/tomcat/instances/tomcat01/work/Catalina/localhost/ConcurArchival_Web/WEB-INF/lib/ecl-test-1.0.0.jar!/com/tgt/ecl/framework/test/MVCTest.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: URL 
Run Code Online (Sandbox Code Playgroud)

退伍军人的帮助表示赞赏

下面添加了堆栈跟踪:

 SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/apps/tomcat/instances/tomcat01/work/Catalina/localhost/ConcurArchival_Web/WEB-INF/lib/tgt-ecl-test-1.0.0.jar!/com/tgt/ecl/framework/test/MVCTest.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse …
Run Code Online (Sandbox Code Playgroud)

java spring-mvc

5
推荐指数
1
解决办法
2万
查看次数

hibernate验证器的注释,用于将来至少24小时的日期

我知道存在注释@Future.

如果我使用此注释注释字段

@Future
private Date date;
Run Code Online (Sandbox Code Playgroud)

日期必须在将来意味着在当前时刻之后.

现在我需要在当前时刻之后至少24小时验证该日期.
我该怎么做?

java validation date spring-mvc hibernate-validator

4
推荐指数
1
解决办法
3914
查看次数