java.lang.NoClassDefFoundError: com/google/ common/cache/LoadingCache


Samebug tips

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA


7 months ago
Expert tip

Solutions on the web

Solution icon of googlegroups
via Google Groups by machi...@163.com, 4 months ago
com/google/ > common/cache/LoadingCache

Solution icon of stackoverflow
com/google/common/cache/CacheLoader

Solution icon of mulesoft
via MuleSoft JIRA by Mariano Gonzalez, 1 week ago
com/google/common/cache/CacheLoader

Solution icon of github
com/google/common/collect/Table

Solution icon of github
via GitHub by fleaman
, 11 months ago
com/google/common/collect/Multimap

Solution icon of stackoverflow
com/google/common/base/Function

Solution icon of googlegroups
via Google Groups by Ike, 8 months ago
com/google/common/base/Function

Solution icon of googlegroups
com/google/common/util/concurrent/SettableFuture

Solution icon of stackoverflow
via Stack Overflow by Pavel Marian
, 1 year ago
com/google/common/util/concurrent/FutureCallback

Solution icon of googlegroups
via Google Groups by DZ, 1 year ago
com/google/api/ads/common/lib/client/AdsSession

Stack trace

java.lang.NoClassDefFoundError: com/google/
common/cache/LoadingCache
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethods(Unknown Source)
	at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:81)
	at com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:73)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:232)
	at com.google.inject.spi.Elements.getElements(Elements.java:101)
	at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
	at com.google.inject.Guice.createInjector(Guice.java:95)
	at com.google.inject.Guice.createInjector(Guice.java:72)
	at org.jclouds.rest.RestContextBuilder.buildInjector(RestContextBuilder.java:186)
	at org.jclouds.compute.ComputeServiceContextBuilder.buildInjector(ComputeServiceContextBuilder.java:52)
	at org.jclouds.compute.ComputeServiceContextBuilder.buildComputeServiceContext(ComputeServiceContextBuilder.java:65)
	at org.jclouds.compute.ComputeServiceContextFactory.buildContextUnwrappingExceptions(ComputeServiceContextFactory.java:70)
	at org.jclouds.compute.ComputeServiceContextFactory.createContext(ComputeServiceContextFactory.java:121)
	at com.syncsort.NovaTest.main(NovaTest.java:39)
Caused by: java.lang.ClassNotFoundException: com.google.common.cache.LoadingCache
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 18 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 2 days ago
6 times, 4 days ago
Once, 1 week ago
68 times, 2 weeks ago
1252 more bugmates