Closed kumar-asista closed 7 years ago
@kumar-cherry looks like you're trying to connect to the native binary Cass port (9042). This lib's dependencies use the Thrift port (9160).
In the future please try to give more context to your issues and format them appropriately. Also, googling an exception like that can go a long way - the first result to googling your exception is a Stack Overflow question with the exact same problem and a suitable answer.
2017-08-04 19:05:48 INFO CountingConnectionPoolMonitor {com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor onHostAdded} - AddHost: localhost 2017-08-04 19:05:49 ERROR LocalActorRefProvider(akka://Scheduler) {akka.event.slf4j.Slf4jLogger$$anonfun$receive$1$$anonfun$applyOrElse$1 apply$mcV$sp} - guardian failed, shutting down system java.util.concurrent.ExecutionException: com.netflix.astyanax.connectionpool.exceptions.TransportException: TransportException: [host=localhost(127.0.0.1):9042, latency=124(250), attempts=1]org.apache.thrift.transport.TTransportException: Read a negative frame size (-2062548992)! at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_25] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_25] at com.pagerduty.eris.FutureConversions$$anon$1.run(FutureConversions.scala:49) ~[eris-core_2.10-2.0.4.jar:2.0.4] at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457) ~[guava-18.0.jar:na] at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) ~[guava-18.0.jar:na] at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:145) ~[guava-18.0.jar:na] at com.google.common.util.concurrent.ListenableFutureTask.done(ListenableFutureTask.java:91) ~[guava-18.0.jar:na] at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:384) ~[na:1.8.0_25] at java.util.concurrent.FutureTask.setException(FutureTask.java:251) ~[na:1.8.0_25] at java.util.concurrent.FutureTask.run(FutureTask.java:271) ~[na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_25] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_25] Caused by: com.netflix.astyanax.connectionpool.exceptions.TransportException: TransportException: [host=localhost(127.0.0.1):9042, latency=124(250), attempts=1]org.apache.thrift.transport.TTransportException: Read a negative frame size (-2062548992)! at com.netflix.astyanax.thrift.ThriftConverter.ToConnectionPoolException(ThriftConverter.java:197) ~[astyanax-thrift-3.6.0.jar:3.6.0] at com.netflix.astyanax.thrift.ThriftSyncConnectionFactoryImpl$ThriftConnection.execute(ThriftSyncConnectionFactoryImpl.java:139) ~[astyanax-thrift-3.6.0.jar:3.6.0] at com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl.tryOperation(AbstractExecuteWithFailoverImpl.java:119) ~[astyanax-core-3.6.0.jar:3.6.0] at com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool.executeWithFailover(AbstractHostPartitionConnectionPool.java:342) ~[astyanax-core-3.6.0.jar:3.6.0] at com.netflix.astyanax.thrift.ThriftColumnFamilyQueryImpl$1.execute(ThriftColumnFamilyQueryImpl.java:186) ~[astyanax-thrift-3.6.0.jar:3.6.0] at com.netflix.astyanax.thrift.ThriftColumnFamilyQueryImpl$1$4.call(ThriftColumnFamilyQueryImpl.java:297) ~[astyanax-thrift-3.6.0.jar:3.6.0] at com.netflix.astyanax.thrift.ThriftColumnFamilyQueryImpl$1$4.call(ThriftColumnFamilyQueryImpl.java:294) ~[astyanax-thrift-3.6.0.jar:3.6.0] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_25] ... 3 common frames omitted Caused by: org.apache.thrift.transport.TTransportException: Read a negative frame size (-2062548992)! at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:133) ~[libthrift-0.9.1.jar:0.9.1] at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101) ~[libthrift-0.9.1.jar:0.9.1] at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84) ~[libthrift-0.9.1.jar:0.9.1] at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:362) ~[libthrift-0.9.1.jar:0.9.1] at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:284) ~[libthrift-0.9.1.jar:0.9.1] at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:191) ~[libthrift-0.9.1.jar:0.9.1] at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69) ~[libthrift-0.9.1.jar:0.9.1] at org.apache.cassandra.thrift.Cassandra$Client.recv_set_keyspace(Cassandra.java:599) ~[cassandra-thrift-2.0.12.jar:2.0.12] at org.apache.cassandra.thrift.Cassandra$Client.set_keyspace(Cassandra.java:586) ~[cassandra-thrift-2.0.12.jar:2.0.12] at com.netflix.astyanax.thrift.ThriftSyncConnectionFactoryImpl$ThriftConnection.execute(ThriftSyncConnectionFactoryImpl.java:127) ~[astyanax-thrift-3.6.0.jar:3.6.0] ... 9 common frames omitted