Cluster must not be null

Samebug tips1

If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web22245

  • Cluster must not be null
  • requirement failed: Cluster node must not be terminated
  • Stack trace

    • java.lang.IllegalArgumentException: Cluster must not be null at org.springframework.util.Assert.notNull([spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.cassandra.config.CassandraCqlSessionFactoryBean.setCluster([spring-cql-1.5.0.M1.jar:na] at com.micros.common.boot.CommonCassandraConfigurationBoot.session([lib-common-20160906-063049.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0-internal] at sun.reflect.NativeMethodAccessorImpl.invoke([na:1.8.0-internal] at sun.reflect.DelegatingMethodAccessorImpl.invoke([na:1.8.0-internal] at java.lang.reflect.Method.invoke([na:2.6 (01-06-2016)] at[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]

    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

    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 1 month ago
    18 times, 1 month ago
    16 times, 1 month ago
    Once, 2 months ago
    190 more bugmates