[
https://issues.apache.org/jira/browse/CAMEL-22536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18029715#comment-18029715
]
Philippe Brossier edited comment on CAMEL-22536 at 10/14/25 9:13 AM:
---------------------------------------------------------------------
I removed camel-jackson-starter and at startup, I had the following exception:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No
qualifying bean of type 'org.apache.camel.CamelContext' available: expected at
least 1 bean which qualifies as autowire candidate.
So, I added:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-core-starter</artifactId>
<version>${camel.version}</version>
</dependency>
where <camel.version>4.15.0</camel.version>
And in the pom, I also have:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-bom</artifactId>
<version>${camel.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-bom</artifactId>
<version>${camel.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
where <spring-boot.version>3.5.6</spring-boot.version>
At startup, I can see the exception:
Caused by: java.lang.UnsupportedClassVersionError:
org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor has
been compiled by a more recent version of the Java Runtime (class file version
65.0), this version of the Java Runtime only recognizes class file versions up
to 61.0
So the problem is with both camel-core-starter & camel-jackson-starter.
was (Author: JIRAUSER311207):
I removed camel-jackson-starter and at startup, I had the following exception:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No
qualifying bean of type 'org.apache.camel.CamelContext' available: expected at
least 1 bean which qualifies as autowire candidate.
So, I added:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-core-starter</artifactId>
<version>${camel.version}</version>
</dependency>
where <camel.version>4.15.0</camel.version>
And in the pom, I also have:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>6.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-bom</artifactId>
<version>${camel.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
where <spring-boot.version>3.5.6</spring-boot.version>
At startup, I can see the exception:
Caused by: java.lang.UnsupportedClassVersionError:
org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor has
been compiled by a more recent version of the Java Runtime (class file version
65.0), this version of the Java Runtime only recognizes class file versions up
to 61.0
So the problem is with both camel-core-starter & camel-jackson-starter.
> camel-spring-boot - Seems to not support and run on JDK 17
> ----------------------------------------------------------
>
> Key: CAMEL-22536
> URL: https://issues.apache.org/jira/browse/CAMEL-22536
> Project: Camel
> Issue Type: Bug
> Components: camel-spring-boot
> Affects Versions: 4.15.0
> Reporter: Philippe Brossier
> Priority: Minor
> Fix For: 4.16.0
>
>
> We use Java 17 and a few org.apache.camel dependencies. All works OK with
> version 4.14.1. When moving to 4.15.0, there is an issue with
> org.apache.camel.springboot:camel-jackson-starter where we get the following
> exception at startup (our library is plugged into a Spring Boot app):
> Caused by: java.lang.UnsupportedClassVersionError:
> org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor has
> been compiled by a more recent version of the Java Runtime (class file
> version 65.0), this version of the Java Runtime only recognizes class file
> versions up to 61.0
>
> If we revert camel-jackson-starter only to 4.14.1, all works fine.
>
> Raising this issue as https://camel.apache.org/releases/release-4.15.0/ says
> that it supports Java 17 & 21.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)