[undertow-dev] SSL error: java.lang.NoSuchFieldError: DEFAULT

Edgar Espina espina.edgar at gmail.com
Mon Feb 20 08:11:17 EST 2017


Your groovy script is really helpful.

Thank you.

On Fri, Feb 17, 2017 at 7:57 AM Karm Michal Babacek <karm at redhat.com> wrote:

> ----- Original Message -----
> > From: "Stuart Douglas" <sdouglas at redhat.com>
> > To: "Edgar Espina" <espina.edgar at gmail.com>
> > Cc: undertow-dev at lists.jboss.org
> > Sent: Thursday, February 16, 2017 9:41:46 PM
> > Subject: Re: [undertow-dev] SSL error: java.lang.NoSuchFieldError:
> DEFAULT
> >
> > Undertow can use the Jetty provider, but it will use its own built in
> > approach by default. A big problem with the Jetty provider is that you
> > need to use the correct version for the version of the JDK you are
>
> I have some systems that need ALPN Jetty hack to run
> tests using OKHttp client. I have this in my pom's surefire:
>
> https://gist.github.com/Karm/ec00f490b7318a62be76bc6120f052a6
>
> and then this nasty groovy oneliner determines which version to use
> with the particular JDK before Maven is started:
>
> https://gist.github.com/Karm/b1f89653966a10349d9d89e7d0c33472
>
> HTH
> K.
>
> > using. If the version is incorrect you will get errors like you are
> > seeing.
> >
> > Stuart
> >
> > On Fri, Feb 17, 2017 at 7:33 AM, Edgar Espina <espina.edgar at gmail.com>
> wrote:
> > > I thought Undertow used the Jdk8 SSL Hack but yes the Jetty ALPN jar
> is in
> > > the boot classpath.
> > >
> > > I need ALPN to run integration tests. Those integration tests run
> against
> > > undertow, netty and jetty.
> > >
> > > Local tests work perfectly on OSX, but not in Travis CI (ubuntu).
> > >
> > > Do you think this is an alpn issue?
> > >
> > > Thanks.
> > >
> > > On Thu, Feb 16, 2017 at 5:06 PM Stuart Douglas <sdouglas at redhat.com>
> wrote:
> > >>
> > >> Are you using Jetty ALPN?
> > >>
> > >> Stuart
> > >>
> > >> On Thu, Feb 16, 2017 at 11:52 PM, Edgar Espina <
> espina.edgar at gmail.com>
> > >> wrote:
> > >> > Hi,
> > >> >
> > >> >  Got this error using undertow 1.4.9.Final. on jre 1.8.0_121:
> > >> >
> > >> > Exception in thread "utow task-1" java.lang.NoSuchFieldError:
> DEFAULT
> > >> > at
> > >> >
> > >> >
> sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys(ServerHandshaker.java:1482)
> > >> > at
> > >> >
> > >> >
> sun.security.ssl.ServerHandshaker.trySetCipherSuite(ServerHandshaker.java:1272)
> > >> > at
> > >> >
> > >> >
> sun.security.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:1076)
> > >> > at
> > >> >
> sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:742)
> > >> > at
> > >> >
> > >> >
> sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:225)
> > >> > at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
> > >> > at sun.security.ssl.Handshaker$1.run(Handshaker.java:966)
> > >> > at sun.security.ssl.Handshaker$1.run(Handshaker.java:963)
> > >> > at java.security.AccessController.doPrivileged(Native Method)
> > >> > at
> sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1416)
> > >> > at io.undertow.protocols.ssl.SslConduit$5.run(SslConduit.java:1034)
> > >> > at
> > >> >
> > >> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> > >> > at
> > >> >
> > >> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > >> > at java.lang.Thread.run(Thread.java:745)
> > >> >
> > >> > Thanks.
> > >> >
> > >> >
> > >> > _______________________________________________
> > >> > undertow-dev mailing list
> > >> > undertow-dev at lists.jboss.org
> > >> > https://lists.jboss.org/mailman/listinfo/undertow-dev
> > _______________________________________________
> > undertow-dev mailing list
> > undertow-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/undertow-dev
> >
>
> --
> Sent from my Hosaka Ono-Sendai Cyberspace 7
>
> --
> Michal Karm Babacek
>     ☕ JBoss QE
> Red Hat Czech | GMT+1
>
> ☎ +420 737 778 560 <+420%20737%20778%20560> (cell)
> ☎ +420 532 294 547 <+420%20532%20294%20547> (⇖forwarded⇖)
> freenode: #wildfly #mod_cluster #fedora-devel
>http://modcluster.iokarm at redhat.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20170220/1de1b0f5/attachment-0001.html 


More information about the undertow-dev mailing list