vitaB opened a new issue #1086: FastHeadersMapFactory ClassNotFoundException since 1.0.0-M6 URL: https://github.com/apache/camel-quarkus/issues/1086 with the latest version the following runtime error is thrown for some example routes: ``` Exception in thread "main" java.lang.ExceptionInInitializerError at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:27) Caused by: java.lang.RuntimeException: Failed to start quarkus at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:358) ... 1 more Caused by: java.lang.ClassNotFoundException: org.apache.camel.component.headersmap.FastHeadersMapFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at io.quarkus.deployment.steps.Core$factoryFinderResolver17.deploy_0(Core$factoryFinderResolver17.zig:374) at io.quarkus.deployment.steps.Core$factoryFinderResolver17.deploy(Core$factoryFinderResolver17.zig:36) at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:304) ... 1 more ``` tested it with the kotlin-timer example: ``` package com.ditcalendar.bot import org.apache.camel.Exchange import org.apache.camel.quarkus.kotlin.routes import javax.enterprise.context.ApplicationScoped import javax.enterprise.inject.Produces @ApplicationScoped class Route() { @Produces fun myRoutes() = routes { from("timer:foo?period=1000") .process { e: Exchange -> e.message.body = "Hello from Kotlin!" } .log("\${body}") } } ``` I used gradle instead of maven, but since its **working with `1.0.0-M5`**, i don't think its because of the build file. adding this here anyway for the sake of completeness: ``` import io.quarkus.gradle.tasks.QuarkusNative import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.3.71" id("org.jetbrains.kotlin.plugin.allopen") version "1.3.71" id("io.quarkus") version "1.3.2.Final" } repositories { mavenCentral() } dependencies { val camelQuarkusVersion = "1.0.0-M6" implementation(enforcedPlatform("org.apache.camel.quarkus:camel-quarkus-bom:$camelQuarkusVersion")) implementation("org.apache.camel.quarkus:camel-quarkus-kotlin") implementation("org.apache.camel.quarkus:camel-quarkus-log") implementation("org.apache.camel.quarkus:camel-quarkus-timer") } tasks { named<QuarkusNative>("buildNative") { isEnableHttpUrlHandler = true } } java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } val compileKotlin: KotlinCompile by tasks compileKotlin.kotlinOptions { jvmTarget = "1.8" freeCompilerArgs = listOf("-Xjsr305=strict") } val compileTestKotlin: KotlinCompile by tasks compileTestKotlin.kotlinOptions { jvmTarget = "1.8" } allOpen { annotation("javax.ws.rs.Path") annotation("javax.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") annotation("javax.enterprise.inject.Produces") } ``` You can add camel-headersmap to the dependencies and it will start again, but then the native image cannot be built.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services