[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