Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] JDK 11 support on 9.4.12

hi all,

I have just tried to run my web app on Jetty 9.4.12 and I couldn't get it work when compiling it with target = java 11.

This is the type of stuff that I was getting:


        Suppressed: java.lang.RuntimeException: Error scanning file /home/dev01/release_manager/server/RELMAN_SERVER_1.1.7-SNAPSHOT/relman-base/webapps/relman/WEB-INF/classes/com/iontrading/release/config/AsyncConfiguration.class                 at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:743)                 at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:829)                 at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)                 at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:471)                 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)                 at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)                 at java.base/java.lang.Thread.run(Thread.java:834)         Caused by: java.lang.UnsupportedOperationException: null                 at org.objectweb.asm.ClassVisitor.visitNestMemberExperimental(ClassVisitor.java:248)                 at org.objectweb.asm.ClassReader.accept(ClassReader.java:651)                 at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)                 at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:933)                 at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:737)                 ... 6 common frames omitted         Suppressed: java.lang.RuntimeException: Error scanning file /home/dev01/release_manager/server/RELMAN_SERVER_1.1.7-SNAPSHOT/relman-base/webapps/relman/WEB-INF/classes/com/iontrading/release/config/AsyncConfiguration$LoggingContextPreservingExecutorDecorator.class                 at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:743)                 at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:829)                 at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)                 at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:471)                 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)                 at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)                 at java.base/java.lang.Thread.run(Thread.java:834)         Caused by: java.lang.UnsupportedOperationException: null                 at org.objectweb.asm.ClassVisitor.visitNestHostExperimental(ClassVisitor.java:158)                 at org.objectweb.asm.ClassReader.accept(ClassReader.java:541)                 at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)                 at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:933)                 at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:737)                 ... 6 common frames omitted         Suppressed: java.lang.RuntimeException: Error scanning file /home/dev01/release_manager/server/RELMAN_SERVER_1.1.7-SNAPSHOT/relman-base/webapps/relman/WEB-INF/classes/com/iontrading/release/web/dto/ServiceResponse.class                 at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:743)                 at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:829)                 at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)                 at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:471)                 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)                 at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)                 at java.base/java.lang.Thread.run(Thread.java:834)  



Looking into it a bit I noticed that only ASM 7.0 which is still in beta supports JDK 11 classes and that Jetty 9.4.12 links ASM 6.2 (jetty-annotations module).

Does the above make sense or am I making some other type of mistake?

If indeed Jetty 9.4.12 can not run webapps compiled with Java 11 as target, when do you guys think you will issue a version that fully supports it?

I am asking just out of curiosity, happy to stay with Java 10, I am very well aware that I am not paying for your time :)

thanks for your help.
Michele




Back to the top