upgrading from 2.22.2 to 2.25 give illegalArgumentException in asm-all-repackaged.jar

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

upgrading from 2.22.2 to 2.25 give illegalArgumentException in asm-all-repackaged.jar

Rj Ewing
I am trying to update to jersey 2.25 as there was a bug fix that I need.

jersey-spring3 has asm-all-repackaged as a dependency.

However I am getting an illegalArgumentException coming from asm-all-repackaged-2.5.0-b30.jar.

It looks like asm was upgraded from 5.0.3 used in jersey 2.22.2 to 5.1 used in 2.5.0-b05 onwards.

Does anyone have any suggestions on how to fix this? And if anyone else is getting this error using jersey-spring3 2.25?

it seems to work okay if I just specify asm-all-repackaged-2.5.0-b04 to be used with jersey 2.25. And looking at the hk2:class-model code that specifies the dependency doesn't seem to have changed since 2.22.2.

It could be related to using spring4 with jersey-spring3 package, but I haven't had any issues for the last year using spring4 with jersey-spring3 2.22.2

The stacktrace is:

java.lang.RuntimeException: Error scanning entry module-info.class from jar file:///.../exploded/nmnh-fims-fat.war/WEB-INF/lib/asm-all-repackaged-2.5.0-b30.jar
at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:906)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:851)
at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)
at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:546)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:745)
Caused by: 
java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:977)
at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:958)
at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:902)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:851)
at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)
at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:546)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:745)