Run time issue

73 views
Skip to first unread message

Sriharsha Makkuva

unread,
Nov 24, 2021, 1:55:42 AM11/24/21
to guava-discuss
Hi,

We are facing an issue during runtime while using the 24.0.0 version of the BOM file. 

Can anyone please suggest if its an issue with the guava dependency here and how can we resolve this.

Thanks in advance!

ERROR 1 --- [nio-8084-exec-1] o.a.c.c.C.[.[.[.[dispatcherServlet]      : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/google/api/gax/tracing/BaseApiTracer] with root cause

java.lang.NoClassDefFoundError: com/google/api/gax/tracing/BaseApiTracer
        at com.google.api.gax.httpjson.HttpJsonCallContext.getTracer(HttpJsonCallContext.java:355) ~[gax-httpjson-0.83.0.jar!/:0.83.0]
        at com.google.api.gax.retrying.BasicRetryingFuture.handleAttempt(BasicRetryingFuture.java:147) ~[gax-1.65.0.jar!/:1.65.0]
        at com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.handle(CallbackChainRetryingFuture.java:135) ~[gax-1.65.0.jar!/:1.65.0]
        at com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.run(CallbackChainRetryingFuture.java:117) ~[gax-1.65.0.jar!/:1.65.0]
        at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30) ~[guava-30.1.1-jre.jar!/:?]
        at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1213) ~[guava-30.1.1-jre.jar!/:?]
        at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:724) ~[guava-30.1.1-jre.jar!/:?]
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:126) ~[guava-30.1.1-jre.jar!/:?]
        at com.google.common.util.concurrent.ForwardingListenableFuture.addListener(ForwardingListenableFuture.java:45) ~[guava-30.1.1-jre.jar!/:?]

Willi Schönborn

unread,
Nov 24, 2021, 4:16:21 AM11/24/21
to Sriharsha Makkuva, guava-discuss
gax-httpjson-0.83.0.jar seems to be missing a dependency. Not guava.

--
guava-...@googlegroups.com
Project site: https://github.com/google/guava
This group: http://groups.google.com/group/guava-discuss
 
This list is for general discussion.
To report an issue: https://github.com/google/guava/issues/new
To get help: http://stackoverflow.com/questions/ask?tags=guava
---
You received this message because you are subscribed to the Google Groups "guava-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guava-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/guava-discuss/93658f78-8561-48fb-8c3c-3f4cf008f05cn%40googlegroups.com.

Sriharsha Makkuva

unread,
Nov 24, 2021, 4:34:02 AM11/24/21
to guava-discuss
Thanks for the reply Willi. 

I have the gax-httpjson declared in our pom.xml file. Can you please check if there is anything else missing. 

Because from what we see the versions for guava is not getting displayed. Not sure how to interpret this kind of an error. 

Nishant Kulkarni

unread,
Jan 10, 2022, 2:51:25 AM1/10/22
to guava-discuss
Use latest version of gax-httpjson. 
<!-- https://mvnrepository.com/artifact/com.google.api/gax-httpjson -->
<dependency>
    <groupId>com.google.api</groupId>
    <artifactId>gax-httpjson</artifactId>
    <version>0.93.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.google.api/gax -->
<dependency>
    <groupId>com.google.api</groupId>
    <artifactId>gax</artifactId>
    <version>2.8.1</version>
</dependency>

For more details of all dependancies and relevant versions refer : https://mvnrepository.com/artifact/com.google.api
Reply all
Reply to author
Forward
0 new messages