java.lang.IllegalStateException: Failed to get Cassandra DataSource cause Spring application context wasn't injected into CassandraCacheStoreFactory

nabble.com | 4 months ago
  1. 0

    Apache Ignite Users - CassandraCacheStoreFactory injection error while trying to use Cassandra as persistent store

    nabble.com | 4 months ago
    java.lang.IllegalStateException: Failed to get Cassandra DataSource cause Spring application context wasn't injected into CassandraCacheStoreFactory
  2. 0
    You should define the TestContext class in your classpath
  3. 0
    Execute mvn dependency:tree from your project's root directory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Update to Grails 3.0.x

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Failed to get Cassandra DataSource cause Spring application context wasn't injected into CassandraCacheStoreFactory

      at org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.getDataSource()
    2. org.apache.ignite
      GridWorker.run
      1. org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.getDataSource(CassandraCacheStoreFactory.java:124)
      2. org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.create(CassandraCacheStoreFactory.java:59)
      3. org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.create(CassandraCacheStoreFactory.java:34)
      4. org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1246)
      5. org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1699)
      6. org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1600)
      7. org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:382)
      8. org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onCacheChangeRequest(GridDhtPartitionsExchangeFuture.java:564)
      9. org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:447)
      10. org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1333)
      11. org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
      11 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame