Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F05FC4A3E for ; Fri, 13 May 2011 22:30:09 +0000 (UTC) Received: (qmail 89349 invoked by uid 500); 13 May 2011 22:30:08 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 89323 invoked by uid 500); 13 May 2011 22:30:08 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 89307 invoked by uid 99); 13 May 2011 22:30:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 22:30:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of watanabe.maki@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 22:30:03 +0000 Received: by bwz13 with SMTP id 13so2958435bwz.31 for ; Fri, 13 May 2011 15:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=Tm+vg0L8sqIdhFAVlpixPX1L1jD4iikTdeYJyOfV+cs=; b=LVNCX72YVMxaQWuSOMeiyuHrV7AbgQO5MUHuMG7I0iqeZcHJa1O8wF9SW4krSBgjUw brQqACcW7tlE7ZLILFFQi78eI4tN2MlqOc4jZP7eEIB5JtNBOhC+TRd91KTI33vxdDTh QSiqneGl+s9uC1JX1DMcowdSFDX7gCr5rwhd8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bVpZYFs+gSk4c1yhrMqbexn6bMmgeEQfks9s9zo+5E/b9HT7ArTKAqkUABegHlGo/6 HbVitj9HtSJooux9mzkBeqbv8OAF/p7zh2X9xBkXgmqP2yyJtBPVMrVb11DdjezmmzHT +VahszhhDhehLtxBB1ZxI29V9fpMvYrlp/KJc= MIME-Version: 1.0 Received: by 10.204.228.130 with SMTP id je2mr1772150bkb.166.1305325781592; Fri, 13 May 2011 15:29:41 -0700 (PDT) Received: by 10.204.42.78 with HTTP; Fri, 13 May 2011 15:29:41 -0700 (PDT) In-Reply-To: <4DCD4EC2.2090903@alex.otherinbox.com> References: <4DCD4EC2.2090903@alex.otherinbox.com> Date: Fri, 13 May 2011 15:29:41 -0700 Message-ID: Subject: Re: How to invoke getNaturalEndpoints with jconsole? From: Maki Watanabe To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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. Thanks. 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" javax.management.RuntimeMBeanException: >> java.lang.NullPointerException >> =A0 =A0 =A0 =A0at >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBe= anServerInterceptor.java:877) >> [snip] >> =A0 =A0 =A0 =A0at >> javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.inv= oke(RMIConnector.java:993) >> =A0 =A0 =A0 =A0at my.test.getNaturalEndpoints.main(getNaturalEndpoints.j= ava:32) >> Caused by: java.lang.NullPointerException >> =A0 =A0 =A0 =A0at >> org.apache.cassandra.db.Table.createReplicationStrategy(Table.java:266) >> =A0 =A0 =A0 =A0at org.apache.cassandra.db.Table.(Table.java:212) >> =A0 =A0 =A0 =A0at org.apache.cassandra.db.Table.open(Table.java:106) >> =A0 =A0 =A0 =A0at >> org.apache.cassandra.service.StorageService.getNaturalEndpoints(StorageS= ervice.java:1497) >> [snip] >> =A0 =A0 =A0 =A0at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja= va:603) >> =A0 =A0 =A0 =A0at java.lang.Thread.run(Thread.java:636) >> > Did you by chance see this after dropping the keyspace? =A0I believe I've= seen > this as well. =A0If 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 bee= n > dropped without checking if its metadata is null rather than your code. > --=20 w3m