java.lang.ArrayIndexOutOfBoundsException

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.

  • Under the heavy write load, java driver throws the below exception and marked the target node as down. {code} 2014-06-25 10:01:39,304 DEBUG [Connection] Defuncting connection to /10.1.161.36:9042: com.datastax.driver.core.TransportException: [/10.1.161.36:9042] Error writing at com.datastax.driver.core.Connection$1.operationComplete(Connection.java:351) at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) at org.jboss.netty.channel.DefaultChannelFuture.addListener(DefaultChannelFuture.java:145) at com.datastax.driver.core.Connection.write(Connection.java:330) at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:126) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:100) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.createData(CassandraCache.java:94) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.put(CassandraCache.java:82) at biz.bsite.direct.services.cache.CommsCache.setSmsReplyCache(CommsCache.java:39) at biz.bsite.direct.services.cache.CommsCache.run(CommsCache.java:54) 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: java.lang.ArrayIndexOutOfBoundsException: 3965 at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:98) at org.jboss.netty.buffer.AbstractChannelBuffer.writeInt(AbstractChannelBuffer.java:423) at com.datastax.driver.core.Requests$QueryProtocolOptions.encode(Requests.java:275) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:172) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:169) at com.datastax.driver.core.Message$ProtocolEncoder.encode(Message.java:207) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) at org.jboss.netty.channel.Channels.write(Channels.java:704) at org.jboss.netty.channel.Channels.write(Channels.java:671) at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ... 14 more 2014-06-25 10:01:39,305 TRACE [Cluster] Host /10.1.161.36:9042 is DOWN 2014-06-25 10:01:39,305 TRACE [ControlConnection] [Control connection] /10.1.161.36:9042 is down, currently connected to /10.1.161.36:9042 2014-06-25 10:01:39,307 TRACE [Connection] [/10.1.161.36:9042-2] connection error: java.lang.ArrayIndexOutOfBoundsException: 3965 at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:98) at org.jboss.netty.buffer.AbstractChannelBuffer.writeInt(AbstractChannelBuffer.java:423) at com.datastax.driver.core.Requests$QueryProtocolOptions.encode(Requests.java:275) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:172) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:169) at com.datastax.driver.core.Message$ProtocolEncoder.encode(Message.java:207) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) at org.jboss.netty.channel.Channels.write(Channels.java:704) at org.jboss.netty.channel.Channels.write(Channels.java:671) at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) at com.datastax.driver.core.Connection.write(Connection.java:330) at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:126) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:100) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.createData(CassandraCache.java:94) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.put(CassandraCache.java:82) at biz.bsite.direct.services.cache.CommsCache.setSmsReplyCache(CommsCache.java:39) at biz.bsite.direct.services.cache.CommsCache.run(CommsCache.java:54) 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}
    via by Roshan,
  • Under the heavy write load, java driver throws the below exception and marked the target node as down. {code} 2014-06-25 10:01:39,304 DEBUG [Connection] Defuncting connection to /10.1.161.36:9042: com.datastax.driver.core.TransportException: [/10.1.161.36:9042] Error writing at com.datastax.driver.core.Connection$1.operationComplete(Connection.java:351) at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) at org.jboss.netty.channel.DefaultChannelFuture.addListener(DefaultChannelFuture.java:145) at com.datastax.driver.core.Connection.write(Connection.java:330) at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:126) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:100) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.createData(CassandraCache.java:94) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.put(CassandraCache.java:82) at biz.bsite.direct.services.cache.CommsCache.setSmsReplyCache(CommsCache.java:39) at biz.bsite.direct.services.cache.CommsCache.run(CommsCache.java:54) 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: java.lang.ArrayIndexOutOfBoundsException: 3965 at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:98) at org.jboss.netty.buffer.AbstractChannelBuffer.writeInt(AbstractChannelBuffer.java:423) at com.datastax.driver.core.Requests$QueryProtocolOptions.encode(Requests.java:275) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:172) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:169) at com.datastax.driver.core.Message$ProtocolEncoder.encode(Message.java:207) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) at org.jboss.netty.channel.Channels.write(Channels.java:704) at org.jboss.netty.channel.Channels.write(Channels.java:671) at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ... 14 more 2014-06-25 10:01:39,305 TRACE [Cluster] Host /10.1.161.36:9042 is DOWN 2014-06-25 10:01:39,305 TRACE [ControlConnection] [Control connection] /10.1.161.36:9042 is down, currently connected to /10.1.161.36:9042 2014-06-25 10:01:39,307 TRACE [Connection] [/10.1.161.36:9042-2] connection error: java.lang.ArrayIndexOutOfBoundsException: 3965 at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:98) at org.jboss.netty.buffer.AbstractChannelBuffer.writeInt(AbstractChannelBuffer.java:423) at com.datastax.driver.core.Requests$QueryProtocolOptions.encode(Requests.java:275) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:172) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:169) at com.datastax.driver.core.Message$ProtocolEncoder.encode(Message.java:207) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) at org.jboss.netty.channel.Channels.write(Channels.java:704) at org.jboss.netty.channel.Channels.write(Channels.java:671) at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) at com.datastax.driver.core.Connection.write(Connection.java:330) at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:126) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:100) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.createData(CassandraCache.java:94) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.put(CassandraCache.java:82) at biz.bsite.direct.services.cache.CommsCache.setSmsReplyCache(CommsCache.java:39) at biz.bsite.direct.services.cache.CommsCache.run(CommsCache.java:54) 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}
    via by Roshan,
  • Under the heavy write load, java driver throws the below exception and marked the target node as down. {code} 2014-06-25 10:01:39,304 DEBUG [Connection] Defuncting connection to /10.1.161.36:9042: com.datastax.driver.core.TransportException: [/10.1.161.36:9042] Error writing at com.datastax.driver.core.Connection$1.operationComplete(Connection.java:351) at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) at org.jboss.netty.channel.DefaultChannelFuture.addListener(DefaultChannelFuture.java:145) at com.datastax.driver.core.Connection.write(Connection.java:330) at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:126) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:100) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.createData(CassandraCache.java:94) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.put(CassandraCache.java:82) at biz.bsite.direct.services.cache.CommsCache.setSmsReplyCache(CommsCache.java:39) at biz.bsite.direct.services.cache.CommsCache.run(CommsCache.java:54) 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: java.lang.ArrayIndexOutOfBoundsException: 3965 at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:98) at org.jboss.netty.buffer.AbstractChannelBuffer.writeInt(AbstractChannelBuffer.java:423) at com.datastax.driver.core.Requests$QueryProtocolOptions.encode(Requests.java:275) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:172) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:169) at com.datastax.driver.core.Message$ProtocolEncoder.encode(Message.java:207) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) at org.jboss.netty.channel.Channels.write(Channels.java:704) at org.jboss.netty.channel.Channels.write(Channels.java:671) at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ... 14 more {code}
    via by Roshan,
  • Under the heavy write load, java driver throws the below exception and marked the target node as down. {code} 2014-06-25 10:01:39,304 DEBUG [Connection] Defuncting connection to /10.1.161.36:9042: com.datastax.driver.core.TransportException: [/10.1.161.36:9042] Error writing at com.datastax.driver.core.Connection$1.operationComplete(Connection.java:351) at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) at org.jboss.netty.channel.DefaultChannelFuture.addListener(DefaultChannelFuture.java:145) at com.datastax.driver.core.Connection.write(Connection.java:330) at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:126) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:100) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.createData(CassandraCache.java:94) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.put(CassandraCache.java:82) at biz.bsite.direct.services.cache.CommsCache.setSmsReplyCache(CommsCache.java:39) at biz.bsite.direct.services.cache.CommsCache.run(CommsCache.java:54) 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: java.lang.ArrayIndexOutOfBoundsException: 3965 at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:98) at org.jboss.netty.buffer.AbstractChannelBuffer.writeInt(AbstractChannelBuffer.java:423) at com.datastax.driver.core.Requests$QueryProtocolOptions.encode(Requests.java:275) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:172) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:169) at com.datastax.driver.core.Message$ProtocolEncoder.encode(Message.java:207) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591) at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582) at org.jboss.netty.channel.Channels.write(Channels.java:704) at org.jboss.netty.channel.Channels.write(Channels.java:671) at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) ... 14 more {code}
    via by Roshan,
  • GitHub comment 17#4071430
    via GitHub by ylangisc
    ,
  • GitHub comment 18#4081256
    via GitHub by saintstack
    ,
    • java.lang.ArrayIndexOutOfBoundsException: 3965 at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.setInt(BigEndianHeapChannelBuffer.java:98) at org.jboss.netty.buffer.AbstractChannelBuffer.writeInt(AbstractChannelBuffer.java:423) at com.datastax.driver.core.Requests$QueryProtocolOptions.encode(Requests.java:275) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:172) at com.datastax.driver.core.Requests$Execute$2.encode(Requests.java:169) at com.datastax.driver.core.Message$ProtocolEncoder.encode(Message.java:207) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66) at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59) at org.jboss.netty.channel.Channels.write(Channels.java:704) at org.jboss.netty.channel.Channels.write(Channels.java:671) at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248) at com.datastax.driver.core.Connection.write(Connection.java:330) at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:126) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:100) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:92) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.createData(CassandraCache.java:94) at biz.bsite.direct.services.cache.cacheselect.CassandraCache.put(CassandraCache.java:82) at biz.bsite.direct.services.cache.CommsCache.setSmsReplyCache(CommsCache.java:39) at biz.bsite.direct.services.cache.CommsCache.run(CommsCache.java:54) 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)
    No Bugmate found.