Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5469

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 1.7
    • None
    • cassandra
    • None
    • Spring-data-cassandra 1.5.0.M1
      javac 1.8.0
      windows 10
      cassandra in a docker container

    Description

      Hi,

      I am getting the following exception:

      class org.apache.ignite.IgniteException: Failed to get Cassandra DataSource cause Spring application context wasn't injected into CassandraCacheStoreFactory

      at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:949)
      at org.apache.ignite.Ignition.start(Ignition.java:325)

      This is the how I initialize:

      IgniteConfiguration cfg = new IgniteConfiguration();
      cfg.setIgniteInstanceName("test");
      CacheConfiguration cacheConfiguration = new CacheConfiguration();
      cacheConfiguration.setName("test");
      CassandraCacheStoreFactory cassandraCacheStoreFactory = new CassandraCacheStoreFactory();
      cassandraCacheStoreFactory.setDataSourceBean("CassandraBean");
      cacheConfiguration.setCacheStoreFactory(cassandraCacheStoreFactory);

      cfg.setCacheConfiguration(cacheConfiguration);

      try (Ignite ignite = Ignition.start(cfg)) {}

      Looking forward to your help!

      Attachments

        Activity

          People

            Unassigned Unassigned
            jamieoliverband@gmail.com Jamie Oliver
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: