On Wed, 2025-05-07 at 09:52 -0400, Gary Gregory wrote:
> Should we make our lives easier and bump the Java requirements to 11?
> 

I would like that but enough people would not

https://lists.apache.org/thread/twk98l8fht21xscbt9hpylmf0jlvysm3

Oleg


> Gary
> 
> On Wed, May 7, 2025, 03:58 Oleg Kalnichevski <ol...@apache.org>
> wrote:
> 
> > On Wed, 2025-05-07 at 13:45 +0800, leeyazhou wrote:
> > > 
> > > Error occurred on java 1.8.0_202:
> > > 
> > > ```
> > > Exception in thread "httpclient-dispatch-1"
> > > java.lang.NoSuchMethodError:
> > > javax.net.ssl.SSLParameters.setApplicationProtocols([Ljava/lang/S
> > > trin
> > > g;)V
> > >       at
> > > org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy.applyPara
> > > mete
> > > rs(DefaultClientTlsStrategy.java:155)
> > >       at
> > > org.apache.hc.client5.http.ssl.AbstractClientTlsStrategy.lambda$u
> > > pgra
> > > de$0(AbstractClientTlsStrategy.java:154)
> > >       at
> > > org.apache.hc.core5.reactor.ssl.SSLIOSession.initialize(SSLIOSess
> > > ion.
> > > java:299)
> > >       at
> > > org.apache.hc.core5.reactor.ssl.SSLIOSession.beginHandshake(SSLIO
> > > Sess
> > > ion.java:274)
> > >       at
> > > org.apache.hc.core5.reactor.InternalDataChannel.startTls(Internal
> > > Data
> > > Channel.java:259)
> > >       at
> > > org.apache.hc.client5.http.impl.nio.DefaultManagedAsyncClientConn
> > > ecti
> > > on.startTls(DefaultManagedAsyncClientConnection.java:171)
> > >       at
> > > org.apache.hc.client5.http.ssl.AbstractClientTlsStrategy.upgrade(
> > > Abst
> > > ractClientTlsStrategy.java:127)
> > >       at
> > > org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy.upgrade(D
> > > efau
> > > ltClientTlsStrategy.java:48)
> > >       at
> > > org.apache.hc.client5.http.impl.nio.DefaultAsyncClientConnectionO
> > > pera
> > > tor$1.completed(DefaultAsyncClientConnectionOperator.java:142)
> > >       at
> > > org.apache.hc.client5.http.impl.nio.DefaultAsyncClientConnectionO
> > > pera
> > > tor$1.completed(DefaultAsyncClientConnectionOperator.java:122)
> > >       at
> > > org.apache.hc.core5.concurrent.BasicFuture.completed(BasicFuture.
> > > java
> > > :148)
> > >       at
> > > org.apache.hc.core5.concurrent.ComplexFuture.completed(ComplexFut
> > > ure.
> > > java:72)
> > >       at
> > > org.apache.hc.client5.http.impl.nio.MultihomeIOSessionRequester$2
> > > $1.c
> > > ompleted(MultihomeIOSessionRequester.java:153)
> > >       at
> > > org.apache.hc.client5.http.impl.nio.MultihomeIOSessionRequester$2
> > > $1.c
> > > ompleted(MultihomeIOSessionRequester.java:145)
> > >       at
> > > org.apache.hc.core5.concurrent.BasicFuture.completed(BasicFuture.
> > > java
> > > :148)
> > >       at
> > > org.apache.hc.core5.reactor.IOSessionRequest.completed(IOSessionR
> > > eque
> > > st.java:73)
> > >       at
> > > org.apache.hc.core5.reactor.InternalConnectChannel.onIOEvent(Inte
> > > rnal
> > > ConnectChannel.java:78)
> > >       at
> > > org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(Interna
> > > lCha
> > > nnel.java:51)
> > >       at
> > > org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(Sin
> > > gleC
> > > oreIOReactor.java:176)
> > >       at
> > > org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleC
> > > oreI
> > > OReactor.java:125)
> > >       at
> > > org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(A
> > > bstr
> > > actSingleCoreIOReactor.java:92)
> > >       at
> > > org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.j
> > > ava:
> > > 44)
> > >       at java.lang.Thread.run(Thread.java:748)
> > > ```
> > > 
> > > and SSLParameters.setApplicationProtocols is defined in Java SE 8
> > > Maintenance Release 3.
> > > 
> > > @see
> > > 
> > https://docs.oracle.com/javase/8/docs/api/javax/net/ssl/SSLParameters.html?is-external=true#setApplicationProtocols-java.lang.String:A
> > > -
> > > @see https://jdk.java.net/java-se-ri/8-MR3
> > > 
> > > So will you fix it? Thx
> > 
> > Apache HttpClient 5.x requires Java SE 8 Maintenance Release 3 or
> > newer
> > We are not going to put any effort into making it compatible with
> > earlier versions of Java JRE.
> > 
> > Oleg
> > 
> > 
> > -------------------------------------------------------------------
> > --
> > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> > For additional commands, e-mail:
> > httpclient-users-h...@hc.apache.org
> > 
> > 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to