You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Bjorn Beskow (Jira)" <ji...@apache.org> on 2024/12/12 07:09:00 UTC

[jira] [Created] (CAMEL-21536) camel-platform-http-starter throws "No ThreadPoolTaskExecutor configured" if virtual threads are enabled

Bjorn Beskow created CAMEL-21536:
------------------------------------

             Summary: camel-platform-http-starter throws "No ThreadPoolTaskExecutor configured" if virtual threads are enabled
                 Key: CAMEL-21536
                 URL: https://issues.apache.org/jira/browse/CAMEL-21536
             Project: Camel
          Issue Type: Bug
          Components: camel-spring-boot-starters
    Affects Versions: 4.9.0, 4.8.2
         Environment: SpringBoot 3.4.0, Java 21.
            Reporter: Bjorn Beskow


{color:#000000}If spring.threads.virtual.enabled = true, a Camel application that uses camel-platform-http-starter fails at startup with{color}

{color:#000000}Caused by: java.lang.RuntimeException: No ThreadPoolTaskExecutor configured{color}
{color:#000000} {color}{color:#000000}at org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpAutoConfiguration.lambda$springBootPlatformHttpEngine$1(SpringBootPlatformHttpAutoConfiguration.java:54) ~[camel-platform-http-starter-4.9.0.jar:4.9.0]{color}
{color:#000000} {color}{color:#000000}at java.base/java.util.Optional.orElseThrow(Optional.java:403) ~[na:na]{color}
{color:#000000} {color}{color:#000000}at org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpAutoConfiguration.springBootPlatformHttpEngine(SpringBootPlatformHttpAutoConfiguration.java:54) ~[camel-platform-http-starter-4.9.0.jar:4.9.0]{color}
{color:#000000} {color}{color:#000000}at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na]{color}
{color:#000000} {color}{color:#000000}at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na]{color}
{color:#000000} {color}{color:#000000}at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:171) ~[spring-beans-6.2.0.jar:6.2.0]{color}
{color:#000000} {color}{color:#000000}... 24 common frames omitted{color}

{color:#000000}unless a ThreadPoolTaskExecutor is explicitly configured.{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)