lsergio opened a new issue, #5758:
URL: https://github.com/apache/camel-k/issues/5758
### What happened?
I have been randomly getting an error starting Integrations that use quartz
and run on camel-k-runtime 3.2.3. The Integrations builds, but fails to start
with:
```
Exception in thread "main" java.lang.reflect.InvocationTargetException
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at
io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:61)
at
io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:32)
Caused by: java.util.ServiceConfigurationError:
org.eclipse.microprofile.config.spi.Converter:
io.quarkus.vertx.http.runtime.TrustedProxyCheckPartConverter not a subtype
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
at
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
at
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
at
io.smallrye.config.SmallRyeConfigBuilder.discoverConverters(SmallRyeConfigBuilder.java:135)
at
io.smallrye.config.SmallRyeConfig.buildConverters(SmallRyeConfig.java:78)
at io.smallrye.config.SmallRyeConfig.<init>(SmallRyeConfig.java:70)
at
io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:629)
at io.quarkus.runtime.generated.Config.<clinit>(Unknown Source)
at io.quarkus.runner.ApplicationImpl.<clinit>(Unknown Source)
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:70)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
at io.quarkus.runner.GeneratedMain.main(Unknown Source)
... 6 more
```
* Changing the runtimeVersion to 3.8.1 does not reproduce the error;
* The error happens with the Cron trait fallback enabled or not.
* There's no other information in the pod log besided the error
* Using Jib build strategy
Here is a sample Integration that eventually reproduces the error:
```
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
name: quartz-323
spec:
sources:
- name: main.yaml
content: |-
- from:
uri: quartz://ipaas/trigger?cron=0+*+*+?+*+*
steps:
- log:
message: "It worked"
traits:
camel:
runtimeVersion: 3.2.3
cron:
fallback: true
```
### Steps to reproduce
_No response_
### Relevant log output
_No response_
### Camel K version
2.4.0
--
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]