incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maki Watanabe <>
Subject Re: How to invoke getNaturalEndpoints with jconsole?
Date Fri, 13 May 2011 22:29:41 GMT
I did not drop the keyspace, but your comment lead me to resolution.
I found cassandra-cli is not case sensitive on keyspace. I used
keyspace name FooBar on cassandra-cli, but it was Foobar in correct.
cassandra-cli didn't complain on my mistake, but the JMX interface is
less tolerance.
If I use correct name, the tool runs fine.


2011/5/13 Alex Araujo <>:
> On 5/13/11 10:08 AM, Maki Watanabe wrote:
>> I wrote a small JMX client to invoke getNaturalEndpoints.
>> It works fine at my test environment, but throws NPE for keyspace we
>> will use for our application (both 0.7.5).
>> Does anyone know quick resolution of that before I setting up
>> cassandra on eclipse to inspect what happens :)
>> thanks
>> Exception in thread "main"
>> java.lang.NullPointerException
>>        at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(
>> [snip]
>>        at
>>        at my.test.getNaturalEndpoints.main(
>> Caused by: java.lang.NullPointerException
>>        at
>> org.apache.cassandra.db.Table.createReplicationStrategy(
>>        at org.apache.cassandra.db.Table.<init>(
>>        at
>>        at
>> org.apache.cassandra.service.StorageService.getNaturalEndpoints(
>> [snip]
>>        at
>> java.util.concurrent.ThreadPoolExecutor$
>>        at
> Did you by chance see this after dropping the keyspace?  I believe I've seen
> this as well.  If so (and if I'm interpreting the stack trace and code
> correctly) it might be related to queuing an op for a keyspace that's been
> dropped without checking if its metadata is null rather than your code.


View raw message