我正在使用gradle,最近升级为使用Spring Boot 2.2.2。但是,在运行我的应用程序时,出现此错误:
Exception in thread "main" java.lang.VerifyError: StackMapTable error: bad offset
Exception Details:
Location:
org/apache/commons/logging/LogAdapter.<clinit>()V @0: aconst_null
Reason:
Invalid stackmap specification.
Current Frame:
bci: @33
flags: { }
locals: { }
stack: { }
Bytecode:
0x0000000: 0112 7512 77b8 007d 120d b800 0e99 0025
0x0000010: 120f b800 0e99 0014 1210 b800 0e99 000c
0x0000020: b200 11b3 0003 a700 34b2 0012 b300 03a7
0x0000030: 002b 1210 b800 0e99 000c b200 11b3 0003
0x0000040: a700 1a12 13b8 000e 9900 0cb2 0014 b300
0x0000050: 03a7 0009 b200 15b3 0003 b1
Stackmap Table:
same_frame(@33)
same_frame(@42)
same_frame(@59)
same_frame(@76)
same_frame(@82)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:67)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:59)
at org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:196)
我尝试升级其他gradle依赖项。当我使用Spring Boot 2.1.10及更高版本时,似乎似乎开始出现此错误,而对于2.1.9及更低版本,该错误消失了。我正在使用Java 1.8。