Hello,

Most probably you have a mismatch of Netty versions.
Check this StackOverflow question
https://stackoverflow.com/questions/79054855/netty-issues-after-update-spring-boot-version-from-3-2-0-to-3-3-0


Best Regards,
Violeta Georgieva

На ср, 4.12.2024 г. в 6:43 'Peloso Michael' via Netty discussions <
[email protected]> написа:

> Hello, Maybe one of you can help me,
>
> We are updating our jar from
>
>
>
> <reactor-netty-http.version>1.0.36</reactor-netty-http.version>
>
> To
>
> <reactor-netty-http.version>1.1.21</reactor-netty-http.version>
>
>
>
> But we are having the following issue I cant seem to resolve.
>
> *Caused by: java.lang.NoSuchMethodError:
> 'io.netty.resolver.dns.DnsNameResolverBuilder
> io.netty.resolver.dns.DnsNameResolverBuilder.socketChannelFactory(io.netty.channel.ChannelFactory,
> boolean)'*
>
> I tried to update the dns, but either I did the wrong one or its just not
> working
>
>
>
>
>
> *The WebClient*
>
> HttpClient httpClient = HttpClient.*create*().wiretap(
> "reactor.netty.http.client.HttpClient", LogLevel.*DEBUG*,
> AdvancedByteBufFormat.*TEXTUAL*).secure(sslSpec -> sslSpec.sslContext(
> sslContext)).option(ChannelOption.*SO_KEEPALIVE*, *true*)
>
> .option(ChannelOption.*CONNECT_TIMEOUT_MILLIS*, connectionTimeout * 1000)
>
> .option(EpollChannelOption.*TCP_KEEPIDLE*, keepIdleTime)
>
> .option(EpollChannelOption.*TCP_KEEPINTVL*, keepInterval
> ).option(EpollChannelOption.*TCP_KEEPCNT*, keepCnt)
>
> .doOnConnected(connection -> connection.addHandlerLast(*new*
> ReadTimeoutHandler(readTimeout))
>
> .addHandlerLast(*new* WriteTimeoutHandler(writeTimeout)));
>
>
>
> webClient = WebClient.*builder*().clientConnector(*new*
> ReactorClientHttpConnector(httpClient))
>
> .exchangeStrategies(objMapper())
>
> .build();
>
>
>
> *The Repository*
>
> *return*
> webClient.getWebClient().post().uri(XXXXXXXXXXXXX).headers(headers -> {
>
> headers.add(HttpHeaders.*CONTENT_TYPE*, MediaType.
> *APPLICATION_FORM_URLENCODED_VALUE*);
>
> headers.add("EnterpriseBusCorrelationId", util.newUUID());
>
> }).contentType(*APPLICATION_JSON*).bodyValue(vl).retrieve()
>
> .onStatus(org.springframework.http.HttpStatus::is4xxClientError, response
> -> {
>
> *throw* *new* ResponseStatusException(HttpStatus.*BAD_REQUEST*);
>
> }).onStatus(org.springframework.http.HttpStatus::is5xxServerError,
> response -> {
>
> *throw* *new* ResponseStatusException(HttpStatus.*INTERNAL_SERVER_ERROR*);
>
> }).bodyToMono(AMSVinLookup.*class*);
>
>
>
>
>
> Do you know the appropriate fix?
>
> Thanks,
>
> Mike
>
>
>
>
>
> *Mike Peloso*
>
> OS:IT:AD:C:AMS:AMD
>
> 240.613.5869 Work
>
> 732.581.0901 Cell
>
> *    There is no Cloud, its just someone else’s computer*
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/netty/BY5PR09MB5619BA5927CB384FDAC6124681362%40BY5PR09MB5619.namprd09.prod.outlook.com
> <https://groups.google.com/d/msgid/netty/BY5PR09MB5619BA5927CB384FDAC6124681362%40BY5PR09MB5619.namprd09.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/netty/CAFmzfTX_RBZkJgcqw%3D%2BoYC7O7j0UR2aYCJEHtubCZSun9N0RyA%40mail.gmail.com.
  • Netty update issue 'Peloso Michael' via Netty discussions
    • Re: Netty update issue Violeta Georgieva

Reply via email to