astefanutti commented on pull request #2536:
URL: https://github.com/apache/camel-k/pull/2536#issuecomment-889859916
Here is the exception that's thrown at start time, with a Java Integration:
```console
$ kamel run examples/rest/RestDSL.java
ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start
application: org.apache.camel.RuntimeCamelException: org.joor.ReflectException:
Error while compiling RestDSL
at
org.apache.camel.k.support.SourcesSupport.load(SourcesSupport.java:170)
at
org.apache.camel.k.support.SourcesSupport.loadSources(SourcesSupport.java:84)
at
org.apache.camel.k.listener.SourcesConfigurer.accept(SourcesConfigurer.java:80)
at
org.apache.camel.k.listener.AbstractPhaseListener.accept(AbstractPhaseListener.java:32)
at
org.apache.camel.k.quarkus.Application$ListenerAdapter.invokeListeners(Application.java:135)
at
org.apache.camel.k.quarkus.Application$ListenerAdapter.beforeConfigure(Application.java:97)
at
org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:531)
at
org.apache.camel.quarkus.main.CamelMain.initCamelContext(CamelMain.java:116)
at org.apache.camel.quarkus.main.CamelMain.doInit(CamelMain.java:86)
at
org.apache.camel.support.service.BaseService.init(BaseService.java:83)
at
org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:137)
at
org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
at
org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
at
io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy_0(CamelBootstrapProcessor$boot-173480958.zig:101)
at
io.quarkus.deployment.steps.CamelBootstrapProcessor$boot-173480958.deploy(CamelBootstrapProcessor$boot-173480958.zig:40)
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:799)
at io.quarkus.runtime.Application.start(Application.java:101)
at
io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:101)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:119)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
Caused by: org.joor.ReflectException: Error while compiling RestDSL
at org.joor.Compile.compile(Compile.java:158)
at org.joor.Reflect.compile(Reflect.java:104)
at org.joor.Reflect.compile(Reflect.java:79)
at
org.apache.camel.dsl.java.joor.JavaRoutesBuilderLoader.doLoadRouteBuilder(JavaRoutesBuilderLoader.java:50)
at
org.apache.camel.dsl.support.RouteBuilderLoaderSupport.loadRoutesBuilder(RouteBuilderLoaderSupport.java:59)
at
org.apache.camel.impl.engine.DefaultRoutesLoader.findRoutesBuilders(DefaultRoutesLoader.java:100)
at
org.apache.camel.spi.RoutesLoader.findRoutesBuilders(RoutesLoader.java:66)
at
org.apache.camel.k.support.SourcesSupport.load(SourcesSupport.java:163)
... 21 more
Caused by: java.lang.NullPointerException
at org.joor.Compile.compile(Compile.java:66)
... 28 more
```
I'm not sure JOOR is supposed to work in combination of native builds.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]