Skip to main content

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

Hi,

On Thu, Oct 18, 2018 at 3:29 PM Michele Rossi <michele.rossi@xxxxxxxxx> wrote:
>
> 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?

It's correct.

> 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?

9.4.13.
We are waiting for ASM 7.0 and we'll link against that.

Would be great if you can try branch jetty-9.4.x-2941-asm_jdk11 and
report back if it works for you.

Thanks!
-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top