[jetty-dev] jetty-alpn-java-server-${jetty.version}.jar missing from distro?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jetty-dev] jetty-alpn-java-server-${jetty.version}.jar missing from distro?

Michele Rossi
hi guys,

I have just tried to start up my system with the new Jetty build, 9.4.13, Oracle JDK 11.0.1 and I immediately got the error that I report at the end of the email.

Looking into things I found that ALPN for Java 11 still relies on the Java 9 module:

alpn-11.mod:
[depend]
alpn-impl/alpn-9


alpn-9.mod
[lib]
lib/jetty-alpn-java-server-${jetty.version}.jar
lib/alpn-api-*.jar


Now in the 9.4.13 distro of Jetty there are no jars matching either lines: no alpn-api*.jar, no jetty-alpn-java-server.

I then tried to hack my start.ini adding the lines below (and the corresponding conscrypt-openjdk-uber-1.4.1.jar Jar under <JETTY_BASE>/lib) and I got this message

--lib=lib/jetty-alpn-conscrypt-server-${jetty.version}.jar
--lib=lib/conscrypt-openjdk-uber-1.4.1.jar
--lib=lib/alpn-api-*.jar



10:19:23.288|INFO |o.e.j.s.AbstractConnector||Started ServerConnector@64337702{SSL,[http/1.1, h2, ssl, alpn]}{0.0.0.0:21443}
10:19:23.288|INFO |           o.e.j.s.Server||Started @27749ms
10:20:10.544|WARN |  o.e.j.i.ManagedSelector||java.lang.IllegalStateException: Connection rejected: No ALPN Processor for sun.security.ssl.SSLEngineImpl from [org.eclipse.jetty.alpn.conscrypt.server.ConscryptServerALPNProcessor@111f386]



I am pretty sure I am doing something very obviously wrong but I can't see what at the moment.

If it's a "DOH" moment please accept my apologies for wasting your time.

thanks a lot,
Michele







09:45:33.758|WARN | o.e.j.x.XmlConfiguration||
java.security.PrivilegedActionException: null
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:220)
        at org.eclipse.jetty.start.Main.start(Main.java:490)
        at org.eclipse.jetty.start.Main.main(Main.java:77)
Caused by: java.lang.reflect.InvocationTargetException: null
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at org.eclipse.jetty.util.TypeUtil.construct(TypeUtil.java:663)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:858)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1309)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1214)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:326)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1442)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1417)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:780)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:472)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:413)
        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:311)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1558)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1512)
        ... 9 common frames omitted
Caused by: java.lang.IllegalStateException: No Server ALPNProcessors!
        at org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory.<init>(ALPNServerConnectionFactory.java:53)
        at org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory.<init>(ALPNServerConnectionFactory.java:46)
        ... 26 common frames omitted


_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] jetty-alpn-java-server-${jetty.version}.jar missing from distro?

Joakim Erdfelt-8
You are correct.

Those 2 artifacts ... jetty-alpn-java-server and jetty-alpn-java-client are missing, both from the maven repository, AND (more critically) the jetty-home artifact.
The jetty-distribution (which is jetty-home + demo-base + documentation) is also consequently missing these libraries.

While we can correct for the missing artifacts on maven central (and have), the missing libs in jetty-home cannot be fixed without a new release.
There's a bad regression (that we didn't have tests for) in servlet listeners (they are being called too often) and we need to roll out 9.4.14 soon (this week) anyway.
We'll correct this in 9.4.14.

Joakim Erdfelt / [hidden email]


On Tue, Nov 13, 2018 at 3:23 AM Michele Rossi <[hidden email]> wrote:
hi guys,

I have just tried to start up my system with the new Jetty build, 9.4.13, Oracle JDK 11.0.1 and I immediately got the error that I report at the end of the email.

Looking into things I found that ALPN for Java 11 still relies on the Java 9 module:

alpn-11.mod:
[depend]
alpn-impl/alpn-9


alpn-9.mod
[lib]
lib/jetty-alpn-java-server-${jetty.version}.jar
lib/alpn-api-*.jar


Now in the 9.4.13 distro of Jetty there are no jars matching either lines: no alpn-api*.jar, no jetty-alpn-java-server.

I then tried to hack my start.ini adding the lines below (and the corresponding conscrypt-openjdk-uber-1.4.1.jar Jar under <JETTY_BASE>/lib) and I got this message

--lib=lib/jetty-alpn-conscrypt-server-${jetty.version}.jar
--lib=lib/conscrypt-openjdk-uber-1.4.1.jar
--lib=lib/alpn-api-*.jar



10:19:23.288|INFO |o.e.j.s.AbstractConnector||Started ServerConnector@64337702{SSL,[http/1.1, h2, ssl, alpn]}{0.0.0.0:21443}
10:19:23.288|INFO |           o.e.j.s.Server||Started @27749ms
10:20:10.544|WARN |  o.e.j.i.ManagedSelector||java.lang.IllegalStateException: Connection rejected: No ALPN Processor for sun.security.ssl.SSLEngineImpl from [org.eclipse.jetty.alpn.conscrypt.server.ConscryptServerALPNProcessor@111f386]



I am pretty sure I am doing something very obviously wrong but I can't see what at the moment.

If it's a "DOH" moment please accept my apologies for wasting your time.

thanks a lot,
Michele







09:45:33.758|WARN | o.e.j.x.XmlConfiguration||
java.security.PrivilegedActionException: null
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:220)
        at org.eclipse.jetty.start.Main.start(Main.java:490)
        at org.eclipse.jetty.start.Main.main(Main.java:77)
Caused by: java.lang.reflect.InvocationTargetException: null
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at org.eclipse.jetty.util.TypeUtil.construct(TypeUtil.java:663)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:858)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1309)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1214)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:326)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1442)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1417)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:780)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:472)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:413)
        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:311)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1558)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1512)
        ... 9 common frames omitted
Caused by: java.lang.IllegalStateException: No Server ALPNProcessors!
        at org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory.<init>(ALPNServerConnectionFactory.java:53)
        at org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory.<init>(ALPNServerConnectionFactory.java:46)
        ... 26 common frames omitted

_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-dev

_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-dev