java.lang.ArrayIndexOutOfBoundsException: 15

DataStax JIRA | Chris Swingler | 2 months ago
tip
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=['127.0.0.1'] 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/demo_cass_bug.py", line 22, in <module> s = cluster.connect(None) File "cassandra/cluster.py", line 1160, in cassandra.cluster.Cluster.connect (cassandra/cluster.c:17467) File "cassandra/cluster.py", line 1193, in cassandra.cluster.Cluster.connect (cassandra/cluster.c:17288) File "cassandra/cluster.py", line 1180, in cassandra.cluster.Cluster.connect (cassandra/cluster.c:16991) File "cassandra/cluster.py", line 2597, in cassandra.cluster.ControlConnection.connect (cassandra/cluster.c:47304) File "cassandra/cluster.py", line 2634, in cassandra.cluster.ControlConnection._reconnect_internal (cassandra/cluster.c:48201) cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', {'127.0.0.1': KeyError(0,)}) {code} The Cassandra node will also throw this exception: {code} ERROR [Native-Transport-Requests:374] 2017-02-15 19:24:07,637 ErrorMessage.java (line 210) Unexpected exception during request java.lang.ArrayIndexOutOfBoundsException: 15 at org.apache.cassandra.transport.Message$Type.fromOpcode(Message.java:102) at org.apache.cassandra.transport.Frame$Decoder.decode(Frame.java:179) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) 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 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} 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

      15

      at org.apache.cassandra.transport.Message$Type.fromOpcode()
    2. org.apache.cassandra
      Frame$Decoder.decode
      1. org.apache.cassandra.transport.Message$Type.fromOpcode(Message.java:102)
      2. org.apache.cassandra.transport.Frame$Decoder.decode(Frame.java:179)
      2 frames
    3. Netty
      NioWorker.run
      1. org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
      2. org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
      3. org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
      4. org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
      5. org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
      6. org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
      7. org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
      8. org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
      9. org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
      9 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames