Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 76011 invoked from network); 27 May 2010 13:54:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 13:54:05 -0000 Received: (qmail 34879 invoked by uid 500); 27 May 2010 13:54:04 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 34837 invoked by uid 500); 27 May 2010 13:54:04 -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 34829 invoked by uid 99); 27 May 2010 13:54:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 13:54:04 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 13:53:59 +0000 Received: by mail-ww0-f44.google.com with SMTP id 13so206814wwb.31 for ; Thu, 27 May 2010 06:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=zJYLO4shmeoJT98umeFbhKBu3H5mvVCQ/Xqujaf0TA8=; b=gF4y4lQRHN9jR68QsSj2mYSVYYVFY69ohrAEcAVtSe1uWpilJezOcoSA3hhFijqwUJ zZyNkmMrF494iyyVcEKte+lcQjiNF2TdcHTKZf18qQmd1GpRueI1mI4Ag1bnOL/XZ7rp Bn1l1bEBOzdeN9/h2J00zoaUOrG4KoYDpJYEA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=c18pYbrKvh1oyE9FpmO5VybPDBP8BQurEskWrPL2P6FYTg0sm+CpPgLkGWBP4d8Ibz 8RJwpPkSUATYMv8+YV3ducushJrt0qxuIryLX0sWU5DPGrhqAQ57vimjQ1v9rMblY6CN tYJkpsDGTW7ZdKpD93dWEIGHCWYZWKf1FzS/k= Received: by 10.216.185.132 with SMTP id u4mr93051wem.39.1274968418285; Thu, 27 May 2010 06:53:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.17.197 with HTTP; Thu, 27 May 2010 06:53:18 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Thu, 27 May 2010 07:53:18 -0600 Message-ID: Subject: Re: Batch_Mutate throws Uncaught exception To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable you need to pull out the exception "why" field, which explains what was invalid about the request On Thu, May 27, 2010 at 2:45 AM, Moses Dinakaran wrote: > Hi, > > > > I am trying to use batch_mutate() with PHP Thrift. I was getting the > following error. > > > > > > Fatal error:=A0 Uncaught exception 'cassandra_InvalidRequestException' in > CORE/php/phpcassa/thrift/packages/cassandra/Cassandra.php:4869 > > Stack trace: > > #0 CORE/php/phpcassa/thrift/packages/cassandra/Cassandra.php(777): > cassandra_Cassandra_batch_mutate_result->read(Object(TBinaryProtocolAccel= erated)) > > > > The version is Cassandra 0.6 > > $client->batch_mutate($this->keyspace, $mutation_map, > $this->write_consistency_level); > > > > Here is my mutation map, Any idea on what was going wrong. > > ------------------------------ > array(1) { > > =A0 ["cache_pages"]=3D> > > =A0 array(1) { > > =A0=A0=A0 ["Page"]=3D> > > =A0=A0=A0 array(2) { > > =A0=A0=A0=A0=A0 [0]=3D> > > =A0=A0=A0=A0=A0 object(cassandra_Mutation)#32 (2) { > > =A0=A0=A0=A0=A0=A0=A0 ["column_or_supercolumn"]=3D> > > =A0=A0=A0=A0=A0=A0=A0 object(cassandra_ColumnOrSuperColumn)#31 (2) { > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 ["column"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 object(cassandra_Column)#30 (3) { > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ["name"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 string(2) "id" > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ["value"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 int(1) > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ["timestamp"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 int(1274949222) > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 } > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 ["super_column"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 NULL > > =A0=A0=A0=A0=A0=A0=A0 } > > =A0=A0=A0=A0=A0=A0 =A0["deletion"]=3D> > > =A0=A0=A0=A0=A0=A0=A0 NULL > > =A0=A0=A0=A0=A0 } > > =A0=A0=A0=A0=A0 [1]=3D> > > =A0=A0=A0=A0=A0 object(cassandra_Mutation)#35 (2) { > > =A0=A0=A0=A0=A0=A0=A0 ["column_or_supercolumn"]=3D> > > =A0=A0=A0=A0=A0=A0=A0 object(cassandra_ColumnOrSuperColumn)#34 (2) { > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 ["column"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 object(cassandra_Column)#33 (3) { > > =A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0["name"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 string(4) "hash" > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ["value"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 string(15) "d930517baf47237" > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ["timestamp"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 int(1274949222) > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 } > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 ["super_column"]=3D> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0 NULL > > =A0=A0=A0=A0=A0=A0=A0 } > > =A0=A0=A0=A0=A0=A0=A0 ["deletion"]=3D> > > =A0=A0=A0=A0=A0=A0=A0 NULL > > =A0=A0=A0=A0=A0 } > > =A0=A0=A0 } > > =A0 } > > } > > ------------------------------ > > > > > > Thanks in Advance, > > Moses. > > > > > > > > > > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com