Click here to Skip to main content
15,566,615 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a spring boot application based on reactor but it can't be launched on Window 10 although it works fine on Linux. It failed to start Netty. This application uses spring boot 2.5.13 now. This issue doesn't exist for the old spring boot 2.3.

The exception was thrown by reactor.core.publisher.BlockingSingleSubscriber.blockingGet.

Is there any config change that could fix this problem? So far, it looks to me like that this problem came from the reactor library and I can't fix by any config change.

Here is the exception stack.

Caused by: org.springframework.boot.web.server.WebServerException: Unable to start Netty at org.springframework.boot.web.embedded.netty.NettyWebServer.start(NettyWebServer.java:108) at org.springframework.boot.web.reactive.context.WebServerManager.start(WebServerManager.java:55) at org.springframework.boot.web.reactive.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:40) at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178) ... 14 common frames omitted Caused by: reactor.core.Exceptions$ReactiveException: java.lang.InterruptedException at reactor.core.Exceptions.propagate(Exceptions.java:392) at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:128) at reactor.core.publisher.Mono.block(Mono.java:1731) at reactor.netty.transport.ServerTransport.bindNow(ServerTransport.java:145) at reactor.netty.transport.ServerTransport.bindNow(ServerTransport.java:130) at org.springframework.boot.web.embedded.netty.NettyWebServer.startHttpServer(NettyWebServer.java:145) at org.springframework.boot.web.embedded.netty.NettyWebServer.start(NettyWebServer.java:100) ... 17 common frames omitted Suppressed: java.lang.Exception: #block has been interrupted at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:130) ... 22 common frames omitted Caused by: java.lang.InterruptedException: null at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1367) at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:278) at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:121) ... 22 common frames omitted

What I have tried:

I have tried to run the Spring boot application on Windows 10 and Linux.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900