jamesnetherton opened a new issue, #4444: URL: https://github.com/apache/camel-quarkus/issues/4444
I think this recent Quarkus change caused a few failures on the `quarkus-main` branch nightly build: https://github.com/quarkusio/quarkus/commit/a37a5f88ce0d5e369408e1de5b1fe66ff03ee939 There's a somewhat cryptic error that I don't fully understand. Here's an example for the Caffeine test. There are some producer methods: https://github.com/apache/camel-quarkus/blob/main/integration-tests/caffeine/src/main/java/org/apache/camel/quarkus/component/caffeine/it/CaffeineCaches.java#L34-L42 Camel is able to resolve the bean named `SHARED_CACHE_NAME`. It cannot resolve the `LOADING_CACHE_NAME` bean. It fails with: ``` Caused by: java.lang.IllegalArgumentException: Type interface com.github.benmanes.caffeine.cache.Cache is not a bean type of PRODUCER_METHOD bean [class=org.apache.camel.quarkus.component.caffeine.it.CaffeineCaches, id=3c28ddefd7b4cc0e1cabebcb36c68b1e5409524a] at io.quarkus.arc.impl.BeanManagerImpl.getReference(BeanManagerImpl.java:61) at org.apache.camel.quarkus.core.RuntimeBeanRepository.getReference(RuntimeBeanRepository.java:79) at org.apache.camel.quarkus.core.RuntimeBeanRepository.lambda$getReferenceByName$1(RuntimeBeanRepository.java:75) at java.base/java.util.Optional.map(Optional.java:260) at org.apache.camel.quarkus.core.RuntimeBeanRepository.getReferenceByName(RuntimeBeanRepository.java:75) at org.apache.camel.quarkus.core.RuntimeBeanRepository.lambda$lookupByNameAndType$2(RuntimeBeanRepository.java:114) at java.base/java.util.Optional.flatMap(Optional.java:289) at org.apache.camel.quarkus.core.RuntimeBeanRepository.lookupByNameAndType(RuntimeBeanRepository.java:114) at org.apache.camel.support.DefaultRegistry.lookupByNameAndType(DefaultRegistry.java:260) at org.apache.camel.support.CamelContextHelper.lookup(CamelContextHelper.java:202) at org.apache.camel.component.caffeine.cache.CaffeineCacheEndpoint.doStart(CaffeineCacheEndpoint.java:69) ``` Failure point is here: https://github.com/apache/camel-quarkus/blob/main/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/RuntimeBeanRepository.java#L79 Which for the Caffeine test is doing something like `beanManager.getReference(bean, com.github.benmanes.caffeine.cache.LoadingCache.class, beanManager.createCreationalContext(bean))`. -- 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]
