java.lang.ArrayIndexOutOfBoundsException: 4

DataStax JIRA | Philip Thompson | 4 months ago
  1. 0

    So I've reproduced this locally on OS X, as well as on Ubuntu with CassCI. We are using the current HEAD of the {{cassandra-test}} branch, which is {{a6bd6c368d69626c0b}}. When connecting to a two node, 1.2.16 cluster (for sanity I checked that this also repros on 1.2.19 and it does), we see the following error from the driver: {code} cassandra.cluster: ERROR: Control connection failed to connect, shutting down Cluster: Traceback (most recent call last): File "cassandra/", line 1176, in cassandra.cluster.Cluster.connect (cassandra/cluster.c:16911) self.control_connection.connect() File "cassandra/", line 2521, in cassandra.cluster.ControlConnection.connect (cassandra/cluster.c:45182) self._set_new_connection(self._reconnect_internal()) File "cassandra/", line 2558, in cassandra.cluster.ControlConnection._reconnect_internal (cassandra/cluster.c:46079) raise NoHostAvailable("Unable to connect to any servers", errors) NoHostAvailable: ('Unable to connect to any servers', {'': ConnectionException('Failed to initialize new connection to Error from server: code=0000 [Server error] message="java.lang.ArrayIndexOutOfBoundsException: 4"',)}) {code} with the following error logged server side by the C* node: {code} ERROR [Native-Transport-Requests:3] 2016-09-03 14:47:36,946 (line 210) Unexpected exception during request java.lang.ArrayIndexOutOfBoundsException: 4 at org.apache.cassandra.transport.Frame$Header$Flag.deserialize( at org.apache.cassandra.transport.Frame$Header.<init>( at org.apache.cassandra.transport.Frame$Header.<init>( at org.apache.cassandra.transport.Frame.create( at org.apache.cassandra.transport.Frame$Decoder.decode( at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode( at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived( at at at at at at at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at {code} Our connection code looks like: {code} cluster = PyCluster([node_ip], auth_provider=auth_provider, compression=compression, protocol_version=protocol_version, load_balancing_policy=load_balancing_policy, default_retry_policy=FlakyRetryPolicy(), port=port, ssl_options=ssl_opts, connect_timeout=10, allow_beta_protocol_version=True) session = cluster.connect(wait_for_all_pools=True) {code} protocol_version is being explicitly set to 1. auth_provider, ssl_opts and compression are None. load_balancing_policy is WhiteListRoundRobinPolicy. default_retry_policy is our own FlakyRetryPolicy which you can find in For transparency's sake, this started happening sometime in the last 21 days as far as our CI can tell. Changes have gone into none of {the driver, C* 1.2, this dtest} in that time period. Given that, we have no good guess as to why this just started, but it does reproduce completely consistently. Related Links:

    DataStax JIRA | 4 months ago | Philip Thompson
    java.lang.ArrayIndexOutOfBoundsException: 4
  2. 0

    Unable to connect cassandra through R

    Stack Overflow | 3 years ago | Osman Khalid
    java.lang.ArrayIndexOutOfBoundsException: 34
  3. 0

    unable to connect R with Cassandra using JDBC, need help

    Google Groups | 3 years ago | Osman Khalid
    java.lang.ArrayIndexOutOfBoundsException: 34
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Cassandra-user] unable to connect R with Cassandra using JDBC, need help - Grokbase | 6 months ago
    java.lang.ArrayIndexOutOfBoundsException: 34
  6. 0

    I can't find out what is the error in this?

    Stack Overflow | 1 year ago | rachid3alaoui
    java.lang.ArrayIndexOutOfBoundsException: 4

    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. java.lang.ArrayIndexOutOfBoundsException


      at org.apache.cassandra.transport.Frame$Header$Flag.deserialize()
    2. org.apache.cassandra
      1. org.apache.cassandra.transport.Frame$Header$Flag.deserialize(
      2. org.apache.cassandra.transport.Frame$Header.<init>(
      3. org.apache.cassandra.transport.Frame$Header.<init>(
      4. org.apache.cassandra.transport.Frame.create(
      5. org.apache.cassandra.transport.Frame$Decoder.decode(
      5 frames
    3. Netty
      1. org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(
      2. org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(
      9 frames
    4. Java RT
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(
      2. java.util.concurrent.ThreadPoolExecutor$
      3 frames