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 8D19A92E4 for ; Tue, 31 Jul 2012 23:42:21 +0000 (UTC) Received: (qmail 43079 invoked by uid 500); 31 Jul 2012 23:42:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 43067 invoked by uid 500); 31 Jul 2012 23:42:19 -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 43056 invoked by uid 99); 31 Jul 2012 23:42:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2012 23:42:19 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.174.58.134] (HELO XEDGEA.nrel.gov) (192.174.58.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2012 23:42:11 +0000 Received: from XHUBB.nrel.gov (10.20.4.59) by XEDGEA.nrel.gov (192.174.58.134) with Microsoft SMTP Server (TLS) id 8.3.245.1; Tue, 31 Jul 2012 17:41:39 -0600 Received: from MAILBOX2.nrel.gov ([fe80::48b0:b121:8465:5e5]) by XHUBB.nrel.gov ([::1]) with mapi; Tue, 31 Jul 2012 17:41:48 -0600 From: "Hiller, Dean" To: "user@cassandra.apache.org" Date: Tue, 31 Jul 2012 17:41:48 -0600 Subject: thrift/cassandra stacktrace.... Thread-Topic: thrift/cassandra stacktrace.... Thread-Index: Ac1vdg2Zlt8xmEhrQcqfzmmIcVPoYw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.3.120616 acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 1. I would think thrift would give better errors, I have no idea where to l= ook(thrift or cassandra?). Anyone have any idea how to figure this out? (= I was hoping thrift would give astyanax a better error than it did :( )=85. 2. Anyone know if I am feeding my composite column info incorrectly below (= as that is what caused this exception since UTF8Type works fine)=85.(ie. Th= e last line in that code is what causes this issue to occur). ColumnFamilyDefinition def =3D cluster.makeColumnFamilyDefinition() .setName(colFamily) .setKeyspace(keyspace.getKeyspaceName()) .setComparatorType("CompositeType(UTF8Type, BytesType)"); java.lang.RuntimeException: com.netflix.astyanax.connectionpool.exceptions.= BadRequestException: BadRequestException: [host=3D127.0.0.1(127.0.0.1):9160= , latency=3D11(11), attempts=3D1] InvalidRequestException(why:Not enough by= tes to read value of component 0) at com.alvazan.orm.layer3.spi.db.cassandra.CassandraSession.sendChanges(Cas= sandraSession.java:182) at com.alvazan.orm.layer2.nosql.cache.NoSqlWriteCacheImpl.flush(NoSqlWriteC= acheImpl.java:78) at com.alvazan.orm.layer2.nosql.cache.NoSqlReadCacheImpl.flush(NoSqlReadCac= heImpl.java:52) at com.alvazan.orm.layer1.base.BaseEntityManagerImpl.flush(BaseEntityManage= rImpl.java:119) at com.alvazan.test.TestIndexesNew.testBasicIndex(TestIndexesNew.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMet= hod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallab= le.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMetho= d.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod= .java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav= a:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:= 30) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner= .java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner= .java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav= a:28) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4Tes= tReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja= va:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe= stRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe= stRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun= ner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu= nner.java:197) Caused by: com.netflix.astyanax.connectionpool.exceptions.BadRequestExcepti= on: BadRequestException: [host=3D127.0.0.1(127.0.0.1):9160, latency=3D11(11= ), attempts=3D1] InvalidRequestException(why:Not enough bytes to read value= of component 0) at com.netflix.astyanax.thrift.ThriftConverter.ToConnectionPoolException(Th= riftConverter.java:159) at com.netflix.astyanax.thrift.AbstractOperationImpl.execute(AbstractOperat= ionImpl.java:60) at com.netflix.astyanax.thrift.AbstractOperationImpl.execute(AbstractOperat= ionImpl.java:27) at com.netflix.astyanax.thrift.ThriftSyncConnectionFactoryImpl$1.execute(Th= riftSyncConnectionFactoryImpl.java:131) at com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl= .tryOperation(AbstractExecuteWithFailoverImpl.java:52) at com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnection= Pool.executeWithFailover(AbstractHostPartitionConnectionPool.java:229) at com.netflix.astyanax.thrift.ThriftKeyspaceImpl.executeOperation(ThriftKe= yspaceImpl.java:455) at com.netflix.astyanax.thrift.ThriftKeyspaceImpl.access$400(ThriftKeyspace= Impl.java:62) at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1.execute(ThriftKeyspaceI= mpl.java:115) at com.alvazan.orm.layer3.spi.db.cassandra.CassandraSession.sendChangesImpl= (CassandraSession.java:197) at com.alvazan.orm.layer3.spi.db.cassandra.CassandraSession.sendChanges(Cas= sandraSession.java:180) ... 30 more Caused by: InvalidRequestException(why:Not enough bytes to read value of co= mponent 0) at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra= .java:20169) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra= .java:913) at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java= :899) at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1$1.internalExecute(Thrif= tKeyspaceImpl.java:121) at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1$1.internalExecute(Thrif= tKeyspaceImpl.java:118) at com.netflix.astyanax.thrift.AbstractOperationImpl.execute(AbstractOperat= ionImpl.java:55) ... 39 more