On Mon, Jul 22, 2019 at 8:24 PM Ruwen Schwedewsky < ruwen.schwedew...@messagemedia.com.au> wrote:
> Hi! > > I just tried to run my tests. When my application server tried to start, I > got errors: > > Suppressed: java.lang.RuntimeException: Error scanning entry > module-info.class from jar > file:/home/ruwen/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.10.0.pr1/jackson-core-2.10.0.pr1.jar > at > org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:913) > at > org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:831) > at > org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163) > at > org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:548) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) > at java.lang.Thread.run(Thread.java:748) > 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:973) > at > org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:956) > at > org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:909) > ... 6 more > > 11:05 ruwen@ruwenwork:~$ java -version > openjdk version "1.8.0_212" > OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-2~deb9u1-b03) > OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) > > The blame was on an older version of Jetty. Since this was used only in > test, the version was quite old. But other people might get similar > problems with byte-code manipulating libraries. It might be worth while to > explicitly mention that in the release notes. > First of all, thank you very much for reporting this! (and checking out pre-release in the first place). That's exactly why they are released. The problem is rather unfortunate one, as it occurs on older JDK(s). I would like to know how common this might be, so I would be interested if others are bumping into this issue as well. It might even jeopardize inclusion of module info for 2.10, if it's prevalent enough :-( This because as much as I would like to improve forwards-compatibility, I do not want to cause breakages to existing users, especially as I suspect Java 8 is still the dominant deployment platform for users. I will add a note on release notes page. -+ Tatu +- -- You received this message because you are subscribed to the Google Groups "jackson-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to jackson-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-dev/CAGrxA27CJNrg9_Hz-CZ591TYgaihtyydfgU3jvNne16PdoaPUw%40mail.gmail.com.