Summary
NullPointerException is thrown in WebClientRequestException.<init>
Environment
- Spring Boot: 2.7.7
- Apache HttpClient: 4.5.12 (
org.apache.httpcomponents:httpclient)
HttpComponentsClientHttpConnector is used.
This is the whole stack trace i have:
j.l.NullPointerException: null
at o.s.w.r.f.c.WebClientRequestException.<init>(WebClientRequestException.java:48)
Suppressed: r.c.p.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpoint ⇢ Request to POST <some url> [DefaultWebClient]
Original Stack Trace:
at o.s.w.r.f.c.WebClientRequestException.<init>(WebClientRequestException.java:48)
at o.s.w.r.f.c.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141)
at r.c.p.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:55)
at r.c.publisher.Mono.subscribe(Mono.java:4490)
at r.c.p.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:103)
at r.c.p.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222)
at r.c.p.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222)
at o.s.c.s.i.r.ScopePassingSpanSubscriber.onError(ScopePassingSpanSubscriber.java:96)
at r.c.p.MonoIgnoreThen$ThenIgnoreMain.onError(MonoIgnoreThen.java:278)
at o.s.c.s.i.r.ScopePassingSpanSubscriber.onError(ScopePassingSpanSubscriber.java:96)
at r.c.p.MonoCreate$DefaultMonoSink.error(MonoCreate.java:201)
at o.s.h.c.r.HttpComponentsClientHttpConnector$MonoFutureCallbackAdapter.failed(HttpComponentsClientHttpConnector.java:166)
at o.a.h.c.c.BasicFuture.failed(BasicFuture.java:166)
at o.a.h.c.r.ReactiveResponseConsumer.failed(ReactiveResponseConsumer.java:141)
at o.a.h.c.h.i.a.InternalAbstractHttpAsyncClient$2.failed(InternalAbstractHttpAsyncClient.java:353)
at o.a.h.c.h.i.a.AsyncRedirectExec$1.failed(AsyncRedirectExec.java:246)
at o.a.h.c.h.i.a.AsyncHttpRequestRetryExec$1.failed(AsyncHttpRequestRetryExec.java:195)
at o.a.h.c.h.i.a.AsyncProtocolExec$1.failed(AsyncProtocolExec.java:295)
at o.a.h.c.h.i.a.HttpAsyncMainClientExec$1.failed(HttpAsyncMainClientExec.java:136)
at o.a.h.c.h.i.n.ClientH2StreamHandler.failed(ClientH2StreamHandler.java:253)
at o.a.h.c.h.i.n.AbstractH2StreamMultiplexer$H2Stream.reset(AbstractH2StreamMultiplexer.java:1669)
at o.a.h.c.h.i.n.AbstractH2StreamMultiplexer.onTimeout(AbstractH2StreamMultiplexer.java:557)
at o.a.h.c.h.i.n.AbstractH2IOEventHandler.timeout(AbstractH2IOEventHandler.java:83)
at o.a.h.c.h.i.n.ClientH2IOEventHandler.timeout(ClientH2IOEventHandler.java:39)
at o.a.h.c.r.s.SSLIOSession$1.timeout(SSLIOSession.java:223)
at o.a.h.c.r.InternalDataChannel.onTimeout(InternalDataChannel.java:170)
at o.a.h.c.r.InternalChannel.checkTimeout(InternalChannel.java:67)
at o.a.h.c.r.SingleCoreIOReactor.checkTimeout(SingleCoreIOReactor.java:239)
at o.a.h.c.r.SingleCoreIOReactor.validateActiveChannels(SingleCoreIOReactor.java:166)
at o.a.h.c.r.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:128)
at o.a.h.c.r.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:92)
at o.a.h.c.r.IOReactorWorker.run(IOReactorWorker.java:44)
at java.lang.Thread.run(Thread.java:829)
Could you please help to fix this issue or give any tips what i should be doing?
Summary
NullPointerExceptionis thrown inWebClientRequestException.<init>Environment
org.apache.httpcomponents:httpclient)HttpComponentsClientHttpConnectoris used.This is the whole stack trace i have:
Could you please help to fix this issue or give any tips what i should be doing?