You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ksenia Rybakova (Jira)" <ji...@apache.org> on 2021/09/06 21:17:00 UTC

[jira] [Created] (IGNITE-15463) ClassNotFoundException when try to connect to Cassandra store on Windows

Ksenia Rybakova created IGNITE-15463:
----------------------------------------

             Summary: ClassNotFoundException when try to connect to Cassandra store on Windows
                 Key: IGNITE-15463
                 URL: https://issues.apache.org/jira/browse/IGNITE-15463
             Project: Ignite
          Issue Type: Bug
          Components: cassandra
    Affects Versions: 2.8
            Reporter: Ksenia Rybakova


ClassNotFoundException when try to load data from  Cassandra store on Windows 10. 
The issue is observed with guava-25.1 and cassandra-driver-core-3.2.0 libs and on Windows platform only. For some reason cassandra driver considers guava-25.1 as earlier version and trys to  instantiate FutureFallback that is removed since guava-20.

Please consider upgrade to a newer version of cassandra driver (I"ve checked with cassandra-driver-core-3.11.0 and it fixed the problem).
{code:java}
[22:22:06,974][SEVERE][sys-#47][GridClosureProcessor] Closure execution failed with error.[22:22:06,974][SEVERE][sys-#47][GridClosureProcessor] Closure execution failed with error.java.lang.NoClassDefFoundError: com/google/common/util/concurrent/FutureFallback at com.datastax.driver.core.GuavaCompatibility.selectImplementation(GuavaCompatibility.java:136) at com.datastax.driver.core.GuavaCompatibility.<clinit>(GuavaCompatibility.java:52) at com.datastax.driver.core.Cluster.<clinit>(Cluster.java:68) at org.apache.ignite.cache.store.cassandra.datasource.DataSource.session(DataSource.java:473) at org.apache.ignite.cache.store.cassandra.CassandraCacheStore.getCassandraSession(CassandraCacheStore.java:501) at org.apache.ignite.cache.store.cassandra.CassandraCacheStore.load(CassandraCacheStore.java:185) at org.apache.ignite.internal.processors.cache.CacheStoreBalancingWrapper.load(CacheStoreBalancingWrapper.java:97) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadFromStore(GridCacheStoreManagerAdapter.java:326) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.load(GridCacheStoreManagerAdapter.java:292) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadAllFromStore(GridCacheStoreManagerAdapter.java:433) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadAll(GridCacheStoreManagerAdapter.java:399) at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter$7.call(GridDhtCacheAdapter.java:902) at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter$7.call(GridDhtCacheAdapter.java:900) at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:7181) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$2.body(GridClosureProcessor.java:966) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:119) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)Caused by: java.lang.ClassNotFoundException: com.google.common.util.concurrent.FutureFallback at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 19 more[22:22:06,975][SEVERE][sys-#47][GridClosureProcessor] Runtime error caught during grid runnable execution: GridWorker [name=closure-proc-worker, igniteInstanceName=null, finished=false, heartbeatTs=1630956126888, hashCode=816023396, interrupted=false, runner=sys-#47]java.lang.NoClassDefFoundError: com/google/common/util/concurrent/FutureFallback at com.datastax.driver.core.GuavaCompatibility.selectImplementation(GuavaCompatibility.java:136) at com.datastax.driver.core.GuavaCompatibility.<clinit>(GuavaCompatibility.java:52) at com.datastax.driver.core.Cluster.<clinit>(Cluster.java:68) at org.apache.ignite.cache.store.cassandra.datasource.DataSource.session(DataSource.java:473) at org.apache.ignite.cache.store.cassandra.CassandraCacheStore.getCassandraSession(CassandraCacheStore.java:501) at org.apache.ignite.cache.store.cassandra.CassandraCacheStore.load(CassandraCacheStore.java:185) at org.apache.ignite.internal.processors.cache.CacheStoreBalancingWrapper.load(CacheStoreBalancingWrapper.java:97) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadFromStore(GridCacheStoreManagerAdapter.java:326) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.load(GridCacheStoreManagerAdapter.java:292) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadAllFromStore(GridCacheStoreManagerAdapter.java:433) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadAll(GridCacheStoreManagerAdapter.java:399) at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter$7.call(GridDhtCacheAdapter.java:902) at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter$7.call(GridDhtCacheAdapter.java:900) at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:7181) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$2.body(GridClosureProcessor.java:966) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:119) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)Caused by: java.lang.ClassNotFoundException: com.google.common.util.concurrent.FutureFallback at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 19 more
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)