tomcat启动期间出现java.lang.ArrayIndexOutOfBoundsException:41981

Jer*_*rry 2 java tomcat

我在 tomcat 启动期间遇到此异常。我正在使用jdk1.8.0_152apache-tomcat-8.5.24

我一直在将我的elasticsearch从版本1.7更新到6.0。为此,我必须包含一些新的罐子,并且必须将一些现有的版本更新到最新版本。(commons-io-2.6,lucene-core-7.0.1,log4j-api-2.9.1)之后我收到此错误雄猫启动。

严重 [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable java.lang.ArrayIndexOutOfBoundsException: 41981 at org.objectweb.asm.ClassReader.(未知来源) at org.objectweb.asm.ClassReader .(来源不明) 位于 org.objectweb.asm.ClassReader.(来源不明)

Tho*_*win 5

你用什么版本的asm?根据这篇文章https://github.com/joaoarthurbm/designwizard/issues/36

asm-3.1 不支持 JDK 8 中可用的 lambdas 表达式。

因此您可能想要升级到 asm 5.0.1 或更高版本。