Details
-
Bug
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
None
-
Normal
Description
While I run testing org.apache.cassandra.client.TestRingCache in my Idea, I got this exception:
Exception in thread "main" java.lang.NullPointerException at org.apache.cassandra.hadoop.ConfigHelper.setOutputKeyspace(ConfigHelper.java:119) at org.apache.cassandra.hadoop.ConfigHelper.setOutputColumnFamily(ConfigHelper.java:142) at org.apache.cassandra.client.TestRingCache.<init>(TestRingCache.java:50) at org.apache.cassandra.client.TestRingCache.main(TestRingCache.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Code shown:
in Constructor of TestRingCache:
ConfigHelper.setOutputColumnFamily(conf, keyspace, "Standard1");
when varible conf haven't be initialized.