Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 1064 invoked from network); 1 Aug 2010 02:47:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Aug 2010 02:47:06 -0000 Received: (qmail 77961 invoked by uid 500); 1 Aug 2010 02:47:04 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 77885 invoked by uid 500); 1 Aug 2010 02:47:02 -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 77877 invoked by uid 99); 1 Aug 2010 02:47:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 02:47:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claire@merchantcircle.com designates 66.201.45.122 as permitted sender) Received: from [66.201.45.122] (HELO mx.merchantcircle.com) (66.201.45.122) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 02:46:55 +0000 Received: from [192.168.1.70] (76-247-187-213.lightspeed.sjcpca.sbcglobal.net [76.247.187.213]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx.merchantcircle.com (Postfix) with ESMTPSA id 8829F140256 for ; Sat, 31 Jul 2010 19:46:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: NullPointerException and Java client hang From: Claire Chang In-Reply-To: Date: Sat, 31 Jul 2010 19:46:33 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <9AAE2B1F-494E-4A84-9793-B0A19BD7F889@merchantcircle.com> References: <1280484996.2263.4.camel@waqas-desktop> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1081) I was able to reproduce this exception consistently. Then I realized = that in /etc/default/cassandra JVM_START_MEM=3D"256" It was set to 256 (Bytes). Before It was 128M. I changed it to 256M and = made sure that the -Xmx and -Xms in casandra.in.sh and = /etc/init.d/cassandra are all in sync.=20 After applying these changes, the exception no longer occurs in my 3 = node cluster. BTW, my Xmx is set to 4G. Hope this helps. Claire On Jul 30, 2010, at 1:05 PM, Peter Schuller wrote: >> I am getting following exception: >>=20 >> java.lang.NullPointerException >> at org.apache.cassandra.db.Table.apply(Table.java:407) >=20 > Are you triggering this repeatedly without difficulty? >=20 > Can you run with the attached patch (indentation is messed up in the > patch though - sorry, no time to fix it now)? Hopefully it should emit > (at level error) in the log a message indication it failed to obtain a > column family store, followed by a list of all known column family > stores, prior to bailing with the same exception. >=20 > Is this happening on every node or just one? When did this start - did > it start right after a schema change (keyspace addition)? >=20 > (I'm just grasping at straws based on a cursory examination; I may be > barking up the wrong tree completely.) >=20 > --=20 > / Peter Schuller >