You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ForkJoinPool.commonPool-worker-3] ERROR i.m.s.StackdriverMeterRegistry - unable to create stackdriver client
java.lang.IllegalStateException: getTransportChannel() called when needsExecutor() is true
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:186)
at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:205)
at com.google.cloud.monitoring.v3.stub.GrpcMetricServiceStub.create(GrpcMetricServiceStub.java:176)
at com.google.cloud.monitoring.v3.stub.MetricServiceStubSettings.createStub(MetricServiceStubSettings.java:192)
at com.google.cloud.monitoring.v3.MetricServiceClient.<init>(MetricServiceClient.java:157)
at com.google.cloud.monitoring.v3.MetricServiceClient.create(MetricServiceClient.java:138)
at io.micrometer.stackdriver.StackdriverMeterRegistry.start(StackdriverMeterRegistry.java:119)
at io.micrometer.stackdriver.StackdriverMeterRegistry.<init>(StackdriverMeterRegistry.java:105)
at io.micrometer.stackdriver.StackdriverMeterRegistry.<init>(StackdriverMeterRegistry.java:88)
at io.micronaut.configuration.metrics.micrometer.stackdriver.StackdriverMeterRegistryFactory.stackdriverMeterRegistry(StackdriverMeterRegistryFactory.java:58)
at io.micronaut.configuration.metrics.micrometer.stackdriver.$StackdriverMeterRegistryFactory$StackdriverMeterRegistry0$Definition.build(Unknown Source)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2341)
at io.micronaut.context.DefaultBeanContext.addCandidateToList(DefaultBeanContext.java:3700)
at io.micronaut.context.DefaultBeanContext.getBeanRegistrations(DefaultBeanContext.java:3602)
at io.micronaut.context.DefaultBeanContext.getBeansOfType(DefaultBeanContext.java:1381)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBeansOfType(AbstractInitializableBeanDefinition.java:1663)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeansOfTypeForConstructorArgument(AbstractInitializableBeanDefinition.java:1102)
at io.micronaut.configuration.metrics.micrometer.$MeterRegistryFactory$CompositeMeterRegistry0$Definition.build(Unknown Source)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2341)
at io.micronaut.context.DefaultBeanContext.createAndRegisterSingletonInternal(DefaultBeanContext.java:3289)
at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:3275)
at io.micronaut.context.DefaultBeanContext.getBeanForDefinition(DefaultBeanContext.java:2825)
at io.micronaut.context.DefaultBeanContext.getBeanInternal(DefaultBeanContext.java:2787)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1643)
at io.micronaut.inject.provider.BeanProviderDefinition$1.get(BeanProviderDefinition.java:66)
at io.micronaut.configuration.metrics.binder.executor.ExecutorServiceMetricsBinder.onCreated(ExecutorServiceMetricsBinder.java:77)
at io.micronaut.configuration.metrics.binder.executor.ExecutorServiceMetricsBinder.onCreated(ExecutorServiceMetricsBinder.java:48)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2398)
at io.micronaut.context.DefaultBeanContext.createAndRegisterSingletonInternal(DefaultBeanContext.java:3289)
at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:3275)
at io.micronaut.context.DefaultBeanContext.getBeanForDefinition(DefaultBeanContext.java:2825)
at io.micronaut.context.DefaultBeanContext.getBeanInternal(DefaultBeanContext.java:2787)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1643)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:1566)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1044)
at io.micronaut.scheduling.$ScheduledExecutorTaskScheduler$Definition.build(Unknown Source)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2341)
at io.micronaut.context.DefaultBeanContext.createAndRegisterSingletonInternal(DefaultBeanContext.java:3289)
at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:3275)
at io.micronaut.context.DefaultBeanContext.getBeanForDefinition(DefaultBeanContext.java:2825)
at io.micronaut.context.DefaultBeanContext.getBeanInternal(DefaultBeanContext.java:2787)
at io.micronaut.context.DefaultBeanContext.findBean(DefaultBeanContext.java:1709)
at io.micronaut.context.DefaultBeanContext.findBean(DefaultBeanContext.java:1683)
at io.micronaut.context.DefaultBeanContext.findBean(DefaultBeanContext.java:910)
at io.micronaut.scheduling.processor.ScheduledMethodProcessor.process(ScheduledMethodProcessor.java:104)
at io.micronaut.context.DefaultBeanContext.lambda$null$28(DefaultBeanContext.java:2006)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Environment Information
Operating System: Arch Linux - 5.14.14-arch1-1
JDK Version: Zulu17.28.13-CA
Example Application
No response
Version
3.1.1
The text was updated successfully, but these errors were encountered:
Expected Behavior
The application should not throw an exception when using the micrometer stackdriver exporter alongside with the
micronaut-gcp-tracing
dependency.Actual Behaviour
The application throws an exception on startup when both dependencies are included.
I have been able to sidestep this issue by including the latest version of the
gax-grpc
dependency in my pom.xml.Steps To Reproduce
./mvnw mn:run
Stacktrace:
Environment Information
Example Application
No response
Version
3.1.1
The text was updated successfully, but these errors were encountered: