cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lynch Lee (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-12806) NullPointerException thrown in org.apache.cassandra.client.TestRingCache
Date Tue, 25 Oct 2016 03:32:58 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-12806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lynch Lee updated CASSANDRA-12806:
----------------------------------
    Description: 
{panel:title=While I run testing org.apache.cassandra.client.TestRingCache in my Idea, I got
this exception:|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}


{noformat} 
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)
{noformat} 
Code shown:
in Constructor of TestRingCache:
{noformat} 
ConfigHelper.setOutputColumnFamily(conf, keyspace, "Standard1");
{noformat} 
when varible conf haven't be initialized.

  was:
{panel:title=While I run testing org.apache.cassandra.client.TestRingCache in my Idea, I got
this exception:|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}


{noformat} 
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)
{noformat} 
Code shown:
in Constructor of TestRingCache:
{noformat} 
ConfigHelper.setOutputColumnFamily(conf, keyspace, "Standard1");
{noformat} 
when varible conf haven't be initialized.

@[~jbellis]
*Could I create a pr to fix it into branch trunk ??*


> NullPointerException thrown in org.apache.cassandra.client.TestRingCache
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-12806
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12806
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Lynch Lee
>             Fix For: 3.0.x
>
>
> {panel:title=While I run testing org.apache.cassandra.client.TestRingCache in my Idea,
I got this exception:|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}

> {noformat} 
> 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)
> {noformat} 
> Code shown:
> in Constructor of TestRingCache:
> {noformat} 
> ConfigHelper.setOutputColumnFamily(conf, keyspace, "Standard1");
> {noformat} 
> when varible conf haven't be initialized.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message