com.datastax.driver.core.exceptions.DriverInternalError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Jens Rantil,
  • 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.
    via by 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 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)
    No Bugmate found.