Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 41899 invoked from network); 2 Mar 2010 05:11:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 05:11:24 -0000 Received: (qmail 63630 invoked by uid 500); 2 Mar 2010 05:11:21 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 63612 invoked by uid 500); 2 Mar 2010 05:11:21 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 63602 invoked by uid 99); 2 Mar 2010 05:11:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 05:11:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of beuknight@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-ww0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 05:11:12 +0000 Received: by wwb29 with SMTP id 29so111114wwb.6 for ; Mon, 01 Mar 2010 21:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=7seVgpDNuGTeZYn3G/sgEjqh4sxMXGoF4r9I2PU4HFQ=; b=NaOIrmcXfE9LdQj3zV0pCdV88fT9/wnNGrTf6FTSSaS6Q6jD0v1LhlvdhVsfWzW5yY aiJ5JIhXhxEzYGRw4zJdOEHpIHFRuO68EaXo1VH0v8Q6KQjg8Mrif+3E5FWh/hZvamJ/ 7pPQWXRevtBQZ+Hltr8lTOOMaVEmSvIHRTWMs= 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; b=Oav48lAy+VDIqf3YtACrmEi3V81iYtpDw3LjUyDdecglRVdMRmuzwLWFt0ekG2teno WfyWzg69ce2x3BR2AcDl4OSHxnPHk8i4syhd4pu0uzSpB7VPf12sfjf2aYYTgwI+tzhM oKITlpm0mYdkVbjXeXKhn5s9RntMTruV7qK5o= MIME-Version: 1.0 Received: by 10.216.88.15 with SMTP id z15mr579360wee.113.1267506652385; Mon, 01 Mar 2010 21:10:52 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Mar 2010 00:10:52 -0500 Message-ID: Subject: Re: Error with Cassandra Only Example in contrib/client_only From: JKnight JKnight To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e6d97735c411360480ca6334 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d97735c411360480ca6334 Content-Type: text/plain; charset=ISO-8859-1 Could you give me the config file? Thanks On Mon, Mar 1, 2010 at 11:34 PM, Jonathan Ellis wrote: > That means it doesn't know any of your other nodes. Probably you > don't have it configured with a seed. > > On Mon, Mar 1, 2010 at 9:31 PM, JKnight JKnight > wrote: > > Dear all, > > > > I tried to run ClientOnlyExample.java on contrib/client_only. But the > code > > did not run. The error is: > > Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, > > Size: 0 > > at java.util.ArrayList.rangeCheck(ArrayList.java:571) > > at java.util.ArrayList.get(ArrayList.java:349) > > at > > > org.apache.cassandra.locator.RackUnawareStrategy.getNaturalEndpoints(RackUnawareStrategy.java:58) > > at > > > org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalEndpoints(AbstractReplicationStrategy.java:66) > > > > Could you give me some advice? > > Thank a lot for support. > > -- > > Best regards, > > JKnight > > > -- Best regards, JKnight --0016e6d97735c411360480ca6334 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Could you give me the config file?
Thanks

On Mon, Mar 1, 2010 at 11:34 PM, Jonathan Ellis <<= a href=3D"mailto:jbellis@gmail.com">jbellis@gmail.com> wrote:=
That means it doe= sn't know any of your other nodes. =A0Probably you
don't have it configured with a seed.

On Mon, Mar 1, 2010 at 9:31 PM, JKnight JKnight <beuknight@gmail.com> wrote:
> Dear all,
>
> I tried to run ClientOnlyExample.java on contrib/client_only. But the = code
> did not run. The=A0 error is:
> Exception in thread "main" java.lang.IndexOutOfBoundsExcepti= on: Index: 0,
> Size: 0
> =A0=A0=A0 at java.util.ArrayList.rangeCheck(ArrayList.java:571)
> =A0=A0=A0 at java.util.ArrayList.get(ArrayList.java:349)
> =A0=A0=A0 at
> org.apache.cassandra.locator.RackUnawareStrategy.getNaturalEndpoints(R= ackUnawareStrategy.java:58)
> =A0=A0=A0 at
> org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalEnd= points(AbstractReplicationStrategy.java:66)
>
> Could you give me some advice?
> Thank a lot for support.
> --
> Best regards,
> JKnight
>



--
Best regard= s,
JKnight
--0016e6d97735c411360480ca6334--