-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build()Lcom/google/common/cache/Cache; #613
Comments
@steowens Try use maven dependency management to force usage of specific version of library in your project and its dependencies. |
I am not exactly sure which version to force. After removing everything and plugging in the cassandra-driver-core, I still get very similar errors. I know that you don't use the cassandra-driver-core (or at least I don't think so). But I have tried 15.0, 16.0.1, and 19. All of them pretty much die in the same way but perhaps with slightly different errors. For example the cassandra-driver-core yields the following error in the same class on startup with the 16.0.1 version of guava:
Not exactly the same but in the very near vicinity of the errors that astyanx yields. I seem to recall ripping guava out of a different project when I started running into bizzare errors. You see, I can see my maven dependencies, I can find the exact method shown in the jar so I really don't understand why this is happening It is very strange indeed. I am going to open up an incident on the guava code base as well since guava CacheBuilder seems to be the implicated party here. I wonder if guava does some hanky panky with the class loaders that confuses things. Another theory is that somehow the maven tomcat7 plugin is causing something bad to happen. But my WAR has a current version of guava. |
I am seeing similar exception in our product log, though the build went successful. Is there any solution yet for the exception? |
@pdharisin Your classpath contains two or more versions of guava. Depending on order of these you get error or not. Make sure you have just one guava binary available to application. |
Trying to load up an Astyanax context, but I keep getting an error in my stack trace as follows:
I am using Maven to resolve dependencies and I saw that astyanax is using guava 15.0. I tried explicitly setting that dependency and it didn't work. I tried updating my explicit dependency to guava 19.0 and THAT didn't work either. Nothing in my dependencies wants an older guava than 15.0, so I am pretty much blocked from trying out this client because of this. Any ideas or things I might try?
The text was updated successfully, but these errors were encountered: