Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12806

NullPointerException thrown in org.apache.cassandra.client.TestRingCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 3.0.x
    • Legacy/Testing
    • None
    • Normal
    • 3.9

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lynchlee Lynch Lee
            Lynch Lee Lynch Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: