exporter/stats/StackdriverExporter: Exception thrown when creating MetricDescriptor. java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfInstanceOf(Ljava/lang/Throwable;Ljava/lang/Class;)V
See original GitHub issueWhen running a demo after instrumenting a Redis Java client https://gist.github.com/odeke-em/69f750885095ce50cbc409a2386495d9 with the diff at https://github.com/orijtech/jedis/pull/1 (in case you’d like to inspect the metrics or reproduce), I get back this crash in my server
May 30, 2018 2:35:26 PM io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker registerView
WARNING: Exception thrown when creating MetricDescriptor.
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfInstanceOf(Ljava/lang/Throwable;Ljava/lang/Class;)V
at com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:54)
at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
at com.google.cloud.monitoring.v3.MetricServiceClient.createMetricDescriptor(MetricServiceClient.java:747)
at io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker.registerView(StackdriverExporterWorker.java:134)
at io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker.export(StackdriverExporterWorker.java:161)
at io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker.run(StackdriverExporterWorker.java:209)
at java.base/java.lang.Thread.run(Thread.java:844)
May 30, 2018 2:35:39 PM io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker export
WARNING: Exception thrown when exporting TimeSeries.
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfInstanceOf(Ljava/lang/Throwable;Ljava/lang/Class;)V
at com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:54)
at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
at com.google.cloud.monitoring.v3.MetricServiceClient.createTimeSeries(MetricServiceClient.java:1157)
at io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker.export(StackdriverExporterWorker.java:182)
at io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker.run(StackdriverExporterWorker.java:209)
at java.base/java.lang.Thread.run(Thread.java:844)
Regardless of the metrics from userland, I believe that we shouldn’t have a crash in the exporter
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
I upgraded my appium java client from 4.1.2 to 6.1.0 ... - GitHub
0- java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V #1231.
Read more >java.lang.NoSuchMethodError when running Appium Test
I'm getting java.lang.NoSuchMethodError on my appium tests. The same tests have been running but left for a while and not running anymore ....
Read more >Throwables (Guava: Google Core Libraries for Java 23.0 API)
Use throw e or throw new RuntimeException(e) directly, or use a combination of throwIfUnchecked(java.lang.Throwable) and throw new RuntimeException(e) .
Read more >com.google.common.base.Throwables.throwIfUnchecked java ...
Returns the most concrete public methods from {@code type}. */ private static Method[] getMostConcreteMethods(Class<?> type) { Method[] methods = type.
Read more >Deprecated API - com.google.guava guava - javadoc.io
This exception is no longer thrown by com.google.common . ... Use Throwable.getStackTrace() directly, or where possible use the java.lang.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think that issue #1117 would also solve this problem by allowing users to force consistent versions of opencensus-java’s dependencies.
Great, thank you @songy23! Houston we have touchdown – it works great now!![screen shot 2018-05-30 at 3 52 29 pm](https://user-images.githubusercontent.com/4898263/40751771-7eb74664-6421-11e8-96dc-bdf7b8b98c39.png)