java.lang.IllegalArgumentException

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(Assert.java:115)[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.cassandra.config.CassandraCqlSessionFactoryBean.setCluster(CassandraCqlSessionFactoryBean.java:156)[spring-cql-1.5.0.M1.jar:na] at com.micros.common.boot.CommonCassandraConfigurationBoot.session(CommonCassandraConfigurationBoot.java:99)[lib-common-20160906-063049.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0-internal] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)[na:1.8.0-internal] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)[na:1.8.0-internal] at java.lang.reflect.Method.invoke(Method.java:507)[na:2.6 (01-06-2016)] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[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