com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /127.0.0.1:9042: java.lang.NullPointerException

DataStax JIRA | Fabrice Larcher | 2 years ago
  1. 0

    If I submit a {{null}} value to variable bound to a column which is a collection inside a UDT, then I get a NPE. No problem without prepared statements. No problem with columns of any native type inside a UDT. No problem if the value is not {{null}}. But also fails if no value is submitted for the corresponding column of the UDT (seems to be equivalent). Here is a code sample that reproduces the problem (at least on my computer) : {code} session.execute("CREATE KEYSPACE IF NOT EXISTS ks WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }"); session.execute("CREATE TYPE IF NOT EXISTS ks.my_type ( bla ascii, val int, l list<int>);"); session.execute("CREATE TABLE IF NOT EXISTS ks.udt_table (key int, udt my_type, PRIMARY KEY (key));"); session.execute("INSERT INTO ks.udt_table (key, udt) VALUES (1, { bla : 'toto', val : 42 });"); // OK PreparedStatement prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (2, { bla : ?, val : ?, l: ? });")); BoundStatement bound = prepared.bind( "toto", 42, Lists.newArrayList(12)); session.execute(bound); // OK prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (3, { bla : ?, val : ?, l: ? });")); bound = prepared.bind( "toto", null, Lists.newArrayList(12)); session.execute(bound); // OK prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (4, { bla : ?, val : ?, l: ? });")); bound = prepared.bind( "toto", 42, null); session.execute(bound); // NOK prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (5, { bla : ?, val : ? });")); bound = prepared.bind( "toto", 42); session.execute(bound); // NOK {code} Here is the stacktrace in application's log : {code} com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /127.0.0.1:9042: java.lang.NullPointerException at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:258) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:174) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) (...) Caused by: com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /127.0.0.1:9042: java.lang.NullPointerException at com.datastax.driver.core.Responses$Error.asException(Responses.java:86) at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:110) 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:584) 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:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) 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) 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) {code} Here is the stacktrace in system.log file : {code} ERROR [SharedPool-Worker-2] 2014-07-31 11:35:57,241 ErrorMessage.java:218 - Unexpected exception during request java.lang.NullPointerException: null at org.apache.cassandra.serializers.ListSerializer.deserializeForNativeProtocol(ListSerializer.java:82) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.serializers.ListSerializer.deserializeForNativeProtocol(ListSerializer.java:27) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.serializers.CollectionSerializer.reserializeToV3(CollectionSerializer.java:53) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.UserTypes$DelayedValue.bindInternal(UserTypes.java:175) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.UserTypes$DelayedValue.bindAndGet(UserTypes.java:188) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.Constants$Setter.execute(Constants.java:314) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.UpdateStatement.addUpdateForKey(UpdateStatement.java:97) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.ModificationStatement.getMutations(ModificationStatement.java:672) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.ModificationStatement.executeWithoutCondition(ModificationStatement.java:501) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.ModificationStatement.execute(ModificationStatement.java:487) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:187) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:413) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:133) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:421) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:318) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103) [netty-all-4.0.20.Final.jar:4.0.20.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:332) [netty-all-4.0.20.Final.jar:4.0.20.Final] at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:31) [netty-all-4.0.20.Final.jar:4.0.20.Final] at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:323) [netty-all-4.0.20.Final.jar:4.0.20.Final] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_55] at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:162) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:103) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] {code} Is related to https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/oKTbrRy5GeU

    DataStax JIRA | 2 years ago | Fabrice Larcher
    com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /127.0.0.1:9042: java.lang.NullPointerException
  2. 0

    If I submit a {{null}} value to variable bound to a column which is a collection inside a UDT, then I get a NPE. No problem without prepared statements. No problem with columns of any native type inside a UDT. No problem if the value is not {{null}}. But also fails if no value is submitted for the corresponding column of the UDT (seems to be equivalent). Here is a code sample that reproduces the problem (at least on my computer) : {code} session.execute("CREATE KEYSPACE IF NOT EXISTS ks WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }"); session.execute("CREATE TYPE IF NOT EXISTS ks.my_type ( bla ascii, val int, l list<int>);"); session.execute("CREATE TABLE IF NOT EXISTS ks.udt_table (key int, udt my_type, PRIMARY KEY (key));"); session.execute("INSERT INTO ks.udt_table (key, udt) VALUES (1, { bla : 'toto', val : 42 });"); // OK PreparedStatement prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (2, { bla : ?, val : ?, l: ? });")); BoundStatement bound = prepared.bind( "toto", 42, Lists.newArrayList(12)); session.execute(bound); // OK prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (3, { bla : ?, val : ?, l: ? });")); bound = prepared.bind( "toto", null, Lists.newArrayList(12)); session.execute(bound); // OK prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (4, { bla : ?, val : ?, l: ? });")); bound = prepared.bind( "toto", 42, null); session.execute(bound); // NOK prepared = session.prepare(new SimpleStatement("INSERT INTO ks.udt_table (key, udt) VALUES (5, { bla : ?, val : ? });")); bound = prepared.bind( "toto", 42); session.execute(bound); // NOK {code} Here is the stacktrace in application's log : {code} com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /127.0.0.1:9042: java.lang.NullPointerException at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:258) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:174) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) (...) Caused by: com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /127.0.0.1:9042: java.lang.NullPointerException at com.datastax.driver.core.Responses$Error.asException(Responses.java:86) at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:110) 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:584) 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:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) 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) 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) {code} Here is the stacktrace in system.log file : {code} ERROR [SharedPool-Worker-2] 2014-07-31 11:35:57,241 ErrorMessage.java:218 - Unexpected exception during request java.lang.NullPointerException: null at org.apache.cassandra.serializers.ListSerializer.deserializeForNativeProtocol(ListSerializer.java:82) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.serializers.ListSerializer.deserializeForNativeProtocol(ListSerializer.java:27) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.serializers.CollectionSerializer.reserializeToV3(CollectionSerializer.java:53) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.UserTypes$DelayedValue.bindInternal(UserTypes.java:175) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.UserTypes$DelayedValue.bindAndGet(UserTypes.java:188) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.Constants$Setter.execute(Constants.java:314) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.UpdateStatement.addUpdateForKey(UpdateStatement.java:97) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.ModificationStatement.getMutations(ModificationStatement.java:672) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.ModificationStatement.executeWithoutCondition(ModificationStatement.java:501) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.statements.ModificationStatement.execute(ModificationStatement.java:487) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:187) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:413) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:133) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:421) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:318) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103) [netty-all-4.0.20.Final.jar:4.0.20.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:332) [netty-all-4.0.20.Final.jar:4.0.20.Final] at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:31) [netty-all-4.0.20.Final.jar:4.0.20.Final] at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:323) [netty-all-4.0.20.Final.jar:4.0.20.Final] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_55] at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:162) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:103) [apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] {code} Is related to https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/oKTbrRy5GeU

    DataStax JIRA | 2 years ago | Fabrice Larcher
    com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server side on /127.0.0.1:9042: java.lang.NullPointerException
  3. 0

    This was reported by one of our customers; it happens under heavy load, during a performance test. I've not been able to reproduce it yet. A statement is prepared for {{SELECT v FROM foobar WHERE k = ?}} (k and v are blobs). Then bound statements for various partition keys are executed. One of them fails with: {code} ERROR [main]: com.datastax.driver.core.exceptions.DriverInternalError com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /xxxxxxx:9042 at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:258) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:174) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) [...] Caused by: com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /xxxxxxxxx:9042 at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:120) at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:237) at com.datastax.driver.core.RequestHandler.onSet(RequestHandler.java:261) at com.datastax.driver.core.Connection$Dispatcher.messageReceived(Connection.java:645) [...] Caused by: java.lang.NullPointerException at com.datastax.driver.core.ArrayBackedResultSet.checkWasApplied(ArrayBackedResultSet.java:414) at com.datastax.driver.core.ArrayBackedResultSet.<init>(ArrayBackedResultSet.java:51) at com.datastax.driver.core.ArrayBackedResultSet.<init>(ArrayBackedResultSet.java:36) at com.datastax.driver.core.ArrayBackedResultSet$SinglePage.<init>(ArrayBackedResultSet.java:165) at com.datastax.driver.core.ArrayBackedResultSet$SinglePage.<init>(ArrayBackedResultSet.java:156) at com.datastax.driver.core.ArrayBackedResultSet.fromMessage(ArrayBackedResultSet.java:81) at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:105) ... 29 more {code} Upon further investigation (the customer applied a patch to generate more logs), it turns out that the PreparedId stored client-side has no metadata associated with it; therefore the EXECUTE request is sent with SKIP_METADATA = false; but the ROWS response returned by Cassandra has no metadata, hence the error. I've observed the messages after deserialization, so that could be a bug in the serialization layer.

    DataStax JIRA | 2 years ago | Olivier Michallat
    com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /xxxxxxx:9042
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Here is the stacktrace : {code} com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /node5:9042 at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:289) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) (...) Caused by: com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /node5:9042 at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:150) at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:249) at com.datastax.driver.core.RequestHandler.onSet(RequestHandler.java:281) at com.datastax.driver.core.Connection$Dispatcher.messageReceived(Connection.java:697) at com.datastax.shaded.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at com.datastax.shaded.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:296) at com.datastax.shaded.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at com.datastax.shaded.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:296) at com.datastax.shaded.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at com.datastax.shaded.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at com.datastax.shaded.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at com.datastax.shaded.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:268) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:255) at com.datastax.shaded.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at com.datastax.shaded.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at com.datastax.shaded.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) at com.datastax.shaded.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at com.datastax.shaded.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at com.datastax.shaded.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at com.datastax.shaded.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) ... 3 more Caused by: java.lang.NullPointerException at com.datastax.driver.core.ArrayBackedResultSet.checkWasApplied(ArrayBackedResultSet.java:414) at com.datastax.driver.core.ArrayBackedResultSet.<init>(ArrayBackedResultSet.java:51) at com.datastax.driver.core.ArrayBackedResultSet.<init>(ArrayBackedResultSet.java:36) at com.datastax.driver.core.ArrayBackedResultSet$SinglePage.<init>(ArrayBackedResultSet.java:159) at com.datastax.driver.core.ArrayBackedResultSet$SinglePage.<init>(ArrayBackedResultSet.java:150) at com.datastax.driver.core.ArrayBackedResultSet.fromMessage(ArrayBackedResultSet.java:75) at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:135) ... 29 more {code} It occurred with a prepared statement {{​SELECT valCol FROM ks.table WHERE keyCol = ?;}} where _keyCol_ is a _BIGINT_ and _valCol_ a _UUID_ (index table).

    DataStax JIRA | 2 years ago | Fabrice Larcher
    com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /node5:9042
  6. 0

    Here is the stacktrace : {code} com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /node5:9042 at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:289) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) (...) Caused by: com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /node5:9042 at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:150) at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:249) at com.datastax.driver.core.RequestHandler.onSet(RequestHandler.java:281) at com.datastax.driver.core.Connection$Dispatcher.messageReceived(Connection.java:697) at com.datastax.shaded.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at com.datastax.shaded.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:296) at com.datastax.shaded.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at com.datastax.shaded.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:296) at com.datastax.shaded.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at com.datastax.shaded.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at com.datastax.shaded.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at com.datastax.shaded.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at com.datastax.shaded.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:268) at com.datastax.shaded.netty.channel.Channels.fireMessageReceived(Channels.java:255) at com.datastax.shaded.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at com.datastax.shaded.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at com.datastax.shaded.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) at com.datastax.shaded.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at com.datastax.shaded.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at com.datastax.shaded.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at com.datastax.shaded.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) ... 3 more Caused by: java.lang.NullPointerException at com.datastax.driver.core.ArrayBackedResultSet.checkWasApplied(ArrayBackedResultSet.java:414) at com.datastax.driver.core.ArrayBackedResultSet.<init>(ArrayBackedResultSet.java:51) at com.datastax.driver.core.ArrayBackedResultSet.<init>(ArrayBackedResultSet.java:36) at com.datastax.driver.core.ArrayBackedResultSet$SinglePage.<init>(ArrayBackedResultSet.java:159) at com.datastax.driver.core.ArrayBackedResultSet$SinglePage.<init>(ArrayBackedResultSet.java:150) at com.datastax.driver.core.ArrayBackedResultSet.fromMessage(ArrayBackedResultSet.java:75) at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:135) ... 29 more {code} It occurred with a prepared statement {{​SELECT valCol FROM ks.table WHERE keyCol = ?;}} where _keyCol_ is a _BIGINT_ and _valCol_ a _UUID_ (index table).

    DataStax JIRA | 2 years ago | Fabrice Larcher
    com.datastax.driver.core.exceptions.DriverInternalError: Unexpected error while processing response from /node5:9042

    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 occurred server side on /127.0.0.1:9042: java.lang.NullPointerException

      at com.datastax.driver.core.exceptions.DriverInternalError.copy()
    2. DataStax Java Driver for Apache Cassandra - Core
      AbstractSession.execute
      1. com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42)
      2. com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:258)
      3. com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:174)
      4. com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52)
      4 frames