From fe1f22467226873ebf3a95cbae204c5a7e3581d7 Mon Sep 17 00:00:00 2001 From: Bipin kumar Date: Wed, 31 May 2023 19:58:13 +0530 Subject: [PATCH] =?UTF-8?q?JAVA-21305:=20Changes=20made=20for=20removing?= =?UTF-8?q?=20exception=20execController=20not=20sp=E2=80=A6=20(#14122)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * JAVA-21305: Chnages made for removing excpetion execController not specified causing serverstart fail * JAVA-21305: Chnages made for removing excpetion execController not specified causing serverstart fail --------- Co-authored-by: Bipin Kumar --- .../ratpack/src/main/java/com/baeldung/Application.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-modules/ratpack/src/main/java/com/baeldung/Application.java b/web-modules/ratpack/src/main/java/com/baeldung/Application.java index 235a6f0068..8035a1d0e3 100644 --- a/web-modules/ratpack/src/main/java/com/baeldung/Application.java +++ b/web-modules/ratpack/src/main/java/com/baeldung/Application.java @@ -8,6 +8,7 @@ import com.baeldung.repository.EmployeeRepository; import com.baeldung.repository.EmployeeRepositoryImpl; import com.zaxxer.hikari.HikariConfig; import io.netty.buffer.PooledByteBufAllocator; +import ratpack.exec.internal.DefaultExecController; import ratpack.func.Action; import ratpack.func.Function; import ratpack.guice.BindingsSpec; @@ -42,7 +43,7 @@ public class Application { .maxContentLength(ServerConfig.DEFAULT_MAX_CONTENT_LENGTH) .responseMaxChunkSize(16384) .readTimeout(Duration.of(60, ChronoUnit.SECONDS)) - .byteBufAllocator(PooledByteBufAllocator.DEFAULT); + .byteBufAllocator(PooledByteBufAllocator.DEFAULT).execController(new DefaultExecController(2)); }); final Function registryFunction = Guice.registry(bindingsSpecAction);