com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occured server side on /127.0.1.1: java.lang.ClassCastException: org.apache.cassandra.locator.SimpleStrategy cannot be cast to org.apache.cassandra.locator.NetworkTopologyStrategy

DataStax JIRA | Joaquin Casares | 3 years ago
  1. 0

    This test failed on the new 2.0 branch when, I believe, failList attempts to use L_Q on a cluster with a SS keyspace, instead of an NTS keyspace. {CODE} Starting com.datastax.driver.core.ConsistencyTest.testRFOneDowngradingCL [1/1]... 0 [main] INFO com.datastax.driver.core.Cluster - New Cassandra host /127.0.1.2 added 8 [main] INFO com.datastax.driver.core.Cluster - New Cassandra host /127.0.1.3 added 2551 [main] INFO com.datastax.driver.core.CCMBridge - Force stopping: 127.0.1.2 3778 [main] INFO com.datastax.driver.core.TestUtils - Waiting for stopped node: 127.0.1.2 126921 [main] WARN com.datastax.driver.core.Cluster - Re-preparing already prepared query SELECT * FROM test WHERE k = ?. Please note that preparing the same query more than once is generally an anti-pattern and will likely affect performance. Consider preparing the statement only once. 156347 [main] INFO com.datastax.driver.core.CCMBridge - Error during tests, kept C* logs in /var/folders/mh/h_jxf_b943x5tl9kv_hf2j3h0000gn/T/1388701344772-0 com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occured server side on /127.0.1.1: java.lang.ClassCastException: org.apache.cassandra.locator.SimpleStrategy cannot be cast to org.apache.cassandra.locator.NetworkTopologyStrategy at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:256) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:172) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:74) at com.datastax.driver.core.AbstractPoliciesTest.query(AbstractPoliciesTest.java:164) at com.datastax.driver.core.AbstractPoliciesTest.query(AbstractPoliciesTest.java:152) at com.datastax.driver.core.ConsistencyTest.testRFOneDowngradingCL(ConsistencyTest.java:405) {CODE}

    DataStax JIRA | 3 years ago | Joaquin Casares
    com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occured server side on /127.0.1.1: java.lang.ClassCastException: org.apache.cassandra.locator.SimpleStrategy cannot be cast to org.apache.cassandra.locator.NetworkTopologyStrategy
  2. 0

    This test failed on the new 2.0 branch when, I believe, failList attempts to use L_Q on a cluster with a SS keyspace, instead of an NTS keyspace. {CODE} Starting com.datastax.driver.core.ConsistencyTest.testRFOneDowngradingCL [1/1]... 0 [main] INFO com.datastax.driver.core.Cluster - New Cassandra host /127.0.1.2 added 8 [main] INFO com.datastax.driver.core.Cluster - New Cassandra host /127.0.1.3 added 2551 [main] INFO com.datastax.driver.core.CCMBridge - Force stopping: 127.0.1.2 3778 [main] INFO com.datastax.driver.core.TestUtils - Waiting for stopped node: 127.0.1.2 126921 [main] WARN com.datastax.driver.core.Cluster - Re-preparing already prepared query SELECT * FROM test WHERE k = ?. Please note that preparing the same query more than once is generally an anti-pattern and will likely affect performance. Consider preparing the statement only once. 156347 [main] INFO com.datastax.driver.core.CCMBridge - Error during tests, kept C* logs in /var/folders/mh/h_jxf_b943x5tl9kv_hf2j3h0000gn/T/1388701344772-0 com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occured server side on /127.0.1.1: java.lang.ClassCastException: org.apache.cassandra.locator.SimpleStrategy cannot be cast to org.apache.cassandra.locator.NetworkTopologyStrategy at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:256) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:172) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:74) at com.datastax.driver.core.AbstractPoliciesTest.query(AbstractPoliciesTest.java:164) at com.datastax.driver.core.AbstractPoliciesTest.query(AbstractPoliciesTest.java:152) at com.datastax.driver.core.ConsistencyTest.testRFOneDowngradingCL(ConsistencyTest.java:405) {CODE}

    DataStax JIRA | 3 years ago | Joaquin Casares
    com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occured server side on /127.0.1.1: java.lang.ClassCastException: org.apache.cassandra.locator.SimpleStrategy cannot be cast to org.apache.cassandra.locator.NetworkTopologyStrategy
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Problem: When I call `CassandraRepository#save(...)` with too many items I get an exception: ERROR [2014-08-29 10:13:54,906] my.project.Klazz: Could not store stuff ! com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /10.11.1.32:9042: java.lang.IndexOutOfBoundsException: Index: 5482, Size: 5482 ! at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) ! at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:256) ! at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:172) ! at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) ! at org.springframework.cassandra.core.CqlTemplate$12.doInSession(CqlTemplate.java:518) ! at org.springframework.cassandra.core.CqlTemplate$12.doInSession(CqlTemplate.java:509) ! at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:486) ! at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:509) ! at org.springframework.cassandra.core.CqlTemplate.execute(CqlTemplate.java:1197) ! at org.springframework.data.cassandra.core.CassandraTemplate.batchInsert(CassandraTemplate.java:547) ! at org.springframework.data.cassandra.core.CassandraTemplate.insert(CassandraTemplate.java:201) ! at org.springframework.data.cassandra.core.CassandraTemplate.insert(CassandraTemplate.java:196) ! at org.springframework.data.cassandra.repository.support.SimpleCassandraRepository.save(SimpleCassandraRepository.java:64) ! at org.springframework.data.cassandra.repository.support.SimpleCassandraRepository.save(SimpleCassandraRepository.java:36) ! at sun.reflect.GeneratedMethodAccessor414.invoke(Unknown Source) ! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ! at java.lang.reflect.Method.invoke(Method.java:606) ! at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:405) ! at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:390) ! at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:344) ! at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ! at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) ! at com.sun.proxy.$Proxy157.save(Unknown Source) ! at my.project.SomeOtherKlazz.process(SomeOtherKlazz.java:319) ! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ! at java.util.concurrent.FutureTask.run(FutureTask.java:262) ! at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ! at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ! at java.lang.Thread.run(Thread.java:745) Caused by: ! com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /10.11.1.32:9042: java.lang.IndexOutOfBoundsException: Index: 5482, Size: 5482 ! at com.datastax.driver.core.Responses$Error.asException(Responses.java:86) ! at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:108) ! at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:235) ! at com.datastax.driver.core.RequestHandler.onSet(RequestHandler.java:367) ! at com.datastax.driver.core.Connection$Dispatcher.messageReceived(Connection.java:571) ! at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) ! at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) ! at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) ! at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) ! at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) ! at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) ! at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) ! at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) ! at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) ! at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) ! at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) ! at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) ! at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) ! at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) ! at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) ! at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) ! at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) ! at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) ! at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) ! at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) ! at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) ! at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) ! at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) !... 3 common frames omitted In Cassandra I am getting: WARN [Native-Transport-Requests:683742] 2014-08-29 10:22:14,838 BatchStatement.java (line 223) Batch of prepared statements for [mykeyspace.mytable] is of size 229558, exceeding specified threshold of 65536 by 164022. I would expect spring-data-cassandra to take care of the smaller batching for me. Workaround: Implement a custom repository method that saves the items in small batches.

    Spring JIRA | 2 years ago | Jens Rantil
    com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /10.11.1.32:9042: java.lang.IndexOutOfBoundsException: Index: 5482, Size: 5482

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.datastax.driver.core.exceptions.DriverInternalError

      An unexpected error occured server side on /127.0.1.1: java.lang.ClassCastException: org.apache.cassandra.locator.SimpleStrategy cannot be cast to org.apache.cassandra.locator.NetworkTopologyStrategy

      at com.datastax.driver.core.exceptions.DriverInternalError.copy()
    2. DataStax Java Driver for Apache Cassandra - Core
      ConsistencyTest.testRFOneDowngradingCL
      1. com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42)
      2. com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:256)
      3. com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:172)
      4. com.datastax.driver.core.SessionManager.execute(SessionManager.java:74)
      5. com.datastax.driver.core.AbstractPoliciesTest.query(AbstractPoliciesTest.java:164)
      6. com.datastax.driver.core.AbstractPoliciesTest.query(AbstractPoliciesTest.java:152)
      7. com.datastax.driver.core.ConsistencyTest.testRFOneDowngradingCL(ConsistencyTest.java:405)
      7 frames