java.lang.ArrayIndexOutOfBoundsException: 15

DataStax JIRA | Chris Swingler | 2 months ago
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd , rp and rp . Or join the community to write better ones.
  1. 0
    samebug tip
    Elasticsearch 1.x and 2.x nodes are not compatible, make sure your setup contains nodes of the same major version.
    via GitHub by dakrone
  2. 0
    samebug tip
    The server sends an "Unrecognized Name" warning. Workaround: System.setProperty("jsse.enableSNIExtension", "false");
  3. 0
    samebug tip
    Invalid http request, probably hacking with manually crafted requests.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Turning on authentication in the Python driver to talk to a Cassandra 1.2.19 cluster with {{authenticator: PasswordAuthenticator}} enabled results in a failed connection. Example Pyton code: {code} import time from cassandra.cluster import Cluster from cassandra.auth import PlainTextAuthProvider query=""" select key,bootstrapped,cql_version,data_center, rack,release_version,thrift_version from system.local;""" clusterhosts=[''] auth = PlainTextAuthProvider(username='cassandra', password='cassandra') cluster = Cluster(clusterhosts, auth_provider=auth) s = cluster.connect(None) result = s.execute(query) for l in result: print l print "Time: %ss" % eta print "shutting down" start = time.time() cluster.shutdown() eta = time.time() - start print "shutdown took %s seconds" % eta {code} Output/stacktrace: {code} Traceback (most recent call last): File "/Users/chrisswingler/src/nagios_cassandra/", line 22, in <module> s = cluster.connect(None) File "cassandra/", line 1160, in cassandra.cluster.Cluster.connect (cassandra/cluster.c:17467) File "cassandra/", line 1193, in cassandra.cluster.Cluster.connect (cassandra/cluster.c:17288) File "cassandra/", line 1180, in cassandra.cluster.Cluster.connect (cassandra/cluster.c:16991) File "cassandra/", line 2597, in cassandra.cluster.ControlConnection.connect (cassandra/cluster.c:47304) File "cassandra/", line 2634, in cassandra.cluster.ControlConnection._reconnect_internal (cassandra/cluster.c:48201) cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', {'': KeyError(0,)}) {code} The Cassandra node will also throw this exception: {code} ERROR [Native-Transport-Requests:374] 2017-02-15 19:24:07,637 (line 210) Unexpected exception during request java.lang.ArrayIndexOutOfBoundsException: 15 at org.apache.cassandra.transport.Message$Type.fromOpcode( 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} I'm speculating this is an incompatibility with how authentication is handled on the native CQL transport in Cassandra 1.2.19. If this is broken on the Cassandra 1.2.19 side, the Datastax driver docs for {{cassandra.auth}} should be updated to reflect this.

    DataStax JIRA | 2 months ago | Chris Swingler
    java.lang.ArrayIndexOutOfBoundsException: 15
  6. 0
    samebug tip
    Check if the connection is ready before sending a message.

    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.Message$Type.fromOpcode()
    2. org.apache.cassandra
      1. org.apache.cassandra.transport.Message$Type.fromOpcode(
      2. org.apache.cassandra.transport.Frame$Decoder.decode(
      2 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