Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Spring 4 doesnt work with Jetty 8


Currently my application uses Spring 3 with Jetty 8. Now I am upgrading tech stack with Spring 4 and Jetty 9.4.14

With this exercise I want to ensure the code works with Jetty 8 in case some of the production servers didnt get upgrade or missed out by chance.

My upgraded application works absolutely fine with Jetty 9.4.14 but when I run the same on Jetty 8 to ensure backward compatibility of application then I get below error:
WARN:oeja.AnnotationParser:Problem processing jar entry org/springframework/data/auditing/MappingAuditableBeanWrapperFactory$MappingMetadataAuditableBeanWrapper.class
java.lang.ArrayIndexOutOfBoundsException: 18176
at org.objectweb.asm.ClassReader.readClass(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.eclipse.jetty.annotations.AnnotationParser.scanClass(
at org.eclipse.jetty.annotations.AnnotationParser$2.processEntry(
at org.eclipse.jetty.webapp.JarScanner.matched(
at org.eclipse.jetty.util.PatternMatcher.matchPatterns(

Below is the asm jar version in jetty servers:
Jetty 8 - asm3.1
Jetty 9.4 - asm 7

I tried to add explicitly asm 7 jar in my application but still get the mentioned error.

I understand that Jetty 8 has met its EOL, and thats why we are upgrading the servers. But currently we have 50+ production servers and it might happen that server got some error at upgradation time or it gets missed by chance. So need to resolve this error in such scenarios.

Please help me with it.

Back to the top