You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "apupier (via GitHub)" <gi...@apache.org> on 2025/10/24 13:08:13 UTC

[I] [JDK25] JpaTestBase.findFruit ServiceConfiguration jakarta.json.bind.spi.JsonbProvider: org.eclipse.yasson.JsonBindingProvider not a subtype [camel-quarkus]

apupier opened a new issue, #7895:
URL: https://github.com/apache/camel-quarkus/issues/7895

   ### Bug description
   
   ```
   [ERROR] org.apache.camel.quarkus.component.jpa.it.NamedJpaTest.testConsumer -- Time elapsed: 0.138 s <<< ERROR!
   java.util.ServiceConfigurationError: jakarta.json.bind.spi.JsonbProvider: org.eclipse.yasson.JsonBindingProvider not a subtype
   	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:559)
   	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1115)
   	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1142)
   	at java.base/java.util.ServiceLoader$1.hasNext(ServiceLoader.java:1164)
   	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1246)
   	at jakarta.json.bind.spi.JsonbProvider.provider(JsonbProvider.java:89)
   	at jakarta.json.bind.JsonbBuilder.create(JsonbBuilder.java:86)
   	at org.apache.camel.quarkus.component.jpa.it.JpaTestBase.findFruit(JpaTestBase.java:161)
   	at org.apache.camel.quarkus.component.jpa.it.JpaTestBase.lambda$testConsumer$1(JpaTestBase.java:85)
   	at org.awaitility.core.CallableCondition$ConditionEvaluationWrapper.eval(CallableCondition.java:99)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
   	at java.base/java.lang.Thread.run(Thread.java:1474)
   ```
   
   ```
   [ERROR] org.apache.camel.quarkus.component.jpa.it.JpaTest.testConsumer -- Time elapsed: 0.227 s <<< ERROR!
   java.util.ServiceConfigurationError: jakarta.json.bind.spi.JsonbProvider: org.eclipse.yasson.JsonBindingProvider not a subtype
   	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:559)
   	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1115)
   	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1142)
   	at java.base/java.util.ServiceLoader$1.hasNext(ServiceLoader.java:1164)
   	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1246)
   	at jakarta.json.bind.spi.JsonbProvider.provider(JsonbProvider.java:89)
   	at jakarta.json.bind.JsonbBuilder.create(JsonbBuilder.java:86)
   	at org.apache.camel.quarkus.component.jpa.it.JpaTestBase.findFruit(JpaTestBase.java:161)
   	at org.apache.camel.quarkus.component.jpa.it.JpaTestBase.lambda$testConsumer$1(JpaTestBase.java:85)
   	at org.awaitility.core.CallableCondition$ConditionEvaluationWrapper.eval(CallableCondition.java:99)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
   	at java.base/java.lang.Thread.run(Thread.java:1474)
   ```


-- 
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: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [JDK25] JpaTestBase.findFruit ServiceConfiguration jakarta.json.bind.spi.JsonbProvider: org.eclipse.yasson.JsonBindingProvider not a subtype [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton closed issue #7895: [JDK25] JpaTestBase.findFruit ServiceConfiguration jakarta.json.bind.spi.JsonbProvider: org.eclipse.yasson.JsonBindingProvider not a subtype
URL: https://github.com/apache/camel-quarkus/issues/7895


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [JDK25] JpaTestBase.findFruit ServiceConfiguration jakarta.json.bind.spi.JsonbProvider: org.eclipse.yasson.JsonBindingProvider not a subtype [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on issue #7895:
URL: https://github.com/apache/camel-quarkus/issues/7895#issuecomment-3472493695

   I think the problem is due to `.parallel()` here:
   
   https://github.com/apache/camel-quarkus/blob/main/integration-tests/jpa/src/test/java/org/apache/camel/quarkus/component/jpa/it/JpaTestBase.java#L84-L86
   
   `JsonbBuilder.create()` will trigger usage of `ServiceLoader`, which IIRC, is not thread safe (not sure why it works on < JDK 25). Thus you can hit issues when using the `ServiceLoader` `Iterator` methods like `hasNext()`, `next()` etc.
   
   I don't see any reason to use `.parallel()`, so we can solve this issue by removing it.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org