java.lang.IllegalStateException

It is invalid to call isReady() when the response has not been put into non-blocking mode

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Unknown by Jose Antonio Iñigo,
  • Stack trace

    • java.lang.IllegalStateException: It is invalid to call isReady() when the response has not been put into non-blocking mode at org.apache.coyote.Response.isReady(Response.java:616)[tomcat-embed-core-8.5.5.jar:8.5.5] at org.apache.catalina.connector.OutputBuffer.isReady(OutputBuffer.java:677)[tomcat-embed-core-8.5.5.jar:8.5.5] at org.apache.catalina.connector.CoyoteOutputStream.isReady(CoyoteOutputStream.java:155)[tomcat-embed-core-8.5.5.jar:8.5.5] at org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseBodyProcessor.isWritePossible(ServletServerHttpResponse.java:168)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.AbstractResponseBodyProcessor.writeIfPossible(AbstractResponseBodyProcessor.java:142)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.AbstractResponseBodyProcessor.access$300(AbstractResponseBodyProcessor.java:47)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.AbstractResponseBodyProcessor$State$2.onNext(AbstractResponseBodyProcessor.java:223)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.AbstractResponseBodyProcessor.onNext(AbstractResponseBodyProcessor.java:77)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.AbstractResponseBodyProcessor.onNext(AbstractResponseBodyProcessor.java:47)[spring-web-5.0.0.M2.jar:5.0.0.M2] at reactor.core.publisher.FluxConcatArray$ConcatArraySubscriber.onNext(FluxConcatArray.java:162)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:1508)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:1225)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:1188)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxConcatArray$ConcatArraySubscriber.onComplete(FluxConcatArray.java:193)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxConcatArray.subscribe(FluxConcatArray.java:96)[reactor-core-3.0.2.RELEASE.jar:na] at org.springframework.http.server.reactive.AbstractResponseBodyFlushProcessor$State$2.onNext(AbstractResponseBodyFlushProcessor.java:150)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.AbstractResponseBodyFlushProcessor.onNext(AbstractResponseBodyFlushProcessor.java:72)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.AbstractResponseBodyFlushProcessor.onNext(AbstractResponseBodyFlushProcessor.java:44)[spring-web-5.0.0.M2.jar:5.0.0.M2] at org.springframework.http.server.reactive.ChannelSendOperator$WriteWithBarrier.doNext(ChannelSendOperator.java:95)[spring-web-5.0.0.M2.jar:5.0.0.M2] at reactor.core.publisher.Operators$SubscriberAdapter.onNext(Operators.java:1021)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:122)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:122)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxPeek$PeekSubscriber.onNext(FluxPeek.java:168)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.innerNext(FluxConcatMap.java:261)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxConcatMap$ConcatMapInner.onNext(FluxConcatMap.java:743)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:122)[reactor-core-3.0.2.RELEASE.jar:na] at reactor.core.publisher.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:88)[reactor-core-3.0.2.RELEASE.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)[na:1.8.0-internal] at java.util.concurrent.FutureTask.run(FutureTask.java:277)[na:1.8.0-internal] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:191)[na:1.8.0-internal] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)[na:1.8.0-internal] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)[na:1.8.0-internal] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)[na:1.8.0-internal] at java.lang.Thread.run(Thread.java:785)[na:1.8.0-internal]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.