Jerry
Jerry

Reputation: 1007

java.lang.ArrayIndexOutOfBoundsException: 41981 during tomcat start

I am getting this exception during tomcat start. I am using jdk1.8.0_152, apache-tomcat-8.5.24

I have been updating my elasticsearch from version 1.7 to 6.0. For that I had to include few new jars and had to update few existing to latest versions.(commons-io-2.6,lucene-core-7.0.1,log4j-api-2.9.1) After that I am getting this error on tomcat starting.

SEVERE [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable java.lang.ArrayIndexOutOfBoundsException: 41981 at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source)

Upvotes: 2

Views: 2455

Answers (1)

ThomasEdwin
ThomasEdwin

Reputation: 2145

What version of asm do you use? According to this post https://github.com/joaoarthurbm/designwizard/issues/36:

asm-3.1 doesn't support lambdas expression available in JDK 8.

So you might be want to upgrade to asm 5.0.1 or higher.

Upvotes: 5

Related Questions