You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "adutra (via GitHub)" <gi...@apache.org> on 2025/01/14 19:00:46 UTC

[I] Import Quarkus BOM with enforcedPlatform everywhere [polaris]

adutra opened a new issue, #750:
URL: https://github.com/apache/polaris/issues/750

   ### Describe the bug
   
   Similar to #739, we should use `enforcedPlatform` consistently in all modules. But that is currently blocked by #749 and we can't do it for `polaris-quarkus-service`.
   
   ### To Reproduce
   
   _No response_
   
   ### Actual Behavior
   
   When attempting to run `quarkusRun` from `polaris-quarkus-service` without `enforcedPlatform`, we get mixed versions of some artifacts like the OpenTelemetry ones.
   
   The typical error message is:
   
   ```
   2025-01-14 09:28:33,370 ERROR [io.qua.run.Application] [,] [,,,] (main) Failed to start application: java.lang.RuntimeException: Failed to start quarkus
   	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
   	at io.quarkus.runtime.Application.start(Application.java:101)
   	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:121)
   	at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
   	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)
   	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
   	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:62)
   	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:33)
   Caused by: java.lang.NoClassDefFoundError: io/opentelemetry/sdk/metrics/internal/export/CardinalityLimitSelector
   	at io.opentelemetry.sdk.autoconfigure.MeterProviderConfiguration.lambda$configureMeterProvider$1(MeterProviderConfiguration.java:65)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   	at io.opentelemetry.sdk.autoconfigure.MeterProviderConfiguration.configureMeterProvider(MeterProviderConfiguration.java:63)
   	at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder.build(AutoConfiguredOpenTelemetrySdkBuilder.java:452)
   	at io.quarkus.opentelemetry.runtime.OpenTelemetryRecorder$1.apply(OpenTelemetryRecorder.java:81)
   	at io.quarkus.opentelemetry.runtime.OpenTelemetryRecorder$1.apply(OpenTelemetryRecorder.java:54)
   	at io.opentelemetry.api.OpenTelemetry_Le6zQbzkojAYO_OiKIQWJf4lGa4_Synthetic_Bean.createSynthetic(Unknown Source)
   	at io.opentelemetry.api.OpenTelemetry_Le6zQbzkojAYO_OiKIQWJf4lGa4_Synthetic_Bean.doCreate(Unknown Source)
   	at io.opentelemetry.api.OpenTelemetry_Le6zQbzkojAYO_OiKIQWJf4lGa4_Synthetic_Bean.create(Unknown Source)
   	at io.opentelemetry.api.OpenTelemetry_Le6zQbzkojAYO_OiKIQWJf4lGa4_Synthetic_Bean.create(Unknown Source)
   	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:119)
   	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:38)
   	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:35)
   	at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:32)
   	at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
   	at io.quarkus.arc.impl.ComputingCacheContextInstances.computeIfAbsent(ComputingCacheContextInstances.java:19)
   	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:35)
   	at io.opentelemetry.api.OpenTelemetry_Le6zQbzkojAYO_OiKIQWJf4lGa4_Synthetic_Bean.get(Unknown Source)
   	at io.opentelemetry.api.OpenTelemetry_Le6zQbzkojAYO_OiKIQWJf4lGa4_Synthetic_Bean.get(Unknown Source)
   	at io.quarkus.arc.impl.InstanceImpl.getBeanInstance(InstanceImpl.java:325)
   	at io.quarkus.arc.impl.InstanceImpl.getInternal(InstanceImpl.java:309)
   	at io.quarkus.arc.impl.InstanceImpl.get(InstanceImpl.java:190)
   	at io.quarkus.arc.runtime.BeanContainerImpl.beanInstance(BeanContainerImpl.java:26)
   	at io.quarkus.opentelemetry.runtime.tracing.intrumentation.InstrumentationRecorder.setupVertxTracer(InstrumentationRecorder.java:59)
   	at io.quarkus.deployment.steps.OpenTelemetryProcessor$setupVertx1012958309.deploy_0(Unknown Source)
   	at io.quarkus.deployment.steps.OpenTelemetryProcessor$setupVertx1012958309.deploy(Unknown Source)
   	... 11 more
   Caused by: java.lang.ClassNotFoundException: io.opentelemetry.sdk.metrics.internal.export.CardinalityLimitSelector
   	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
   	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
   	at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:114)
   	at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:72)
   	... 37 more
   ```
   
   ### Expected Behavior
   
   We should be able to run `quarkusRun` from `polaris-quarkus-service` without errors.
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


-- 
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: issues-unsubscribe@polaris.apache.org.apache.org

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


Re: [I] Import Quarkus BOM with enforcedPlatform everywhere [polaris]

Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy commented on issue #750:
URL: https://github.com/apache/polaris/issues/750#issuecomment-5021642802

   This is now implemented, closing,


-- 
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: issues-unsubscribe@polaris.apache.org

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


Re: [I] Import Quarkus BOM with enforcedPlatform everywhere [polaris]

Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy closed issue #750: Import Quarkus BOM with enforcedPlatform everywhere
URL: https://github.com/apache/polaris/issues/750


-- 
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: issues-unsubscribe@polaris.apache.org

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