java.lang.ClassCastException: org.elasticsearch.action.admin.indices.stats.CommonStatsFlags cannot be cast to [Ljava.lang.String;

GitHub | danielmotaleite | 8 months ago
  1. 0

    readonlyrest-plugin break "cluster status" plugins

    GitHub | 8 months ago | danielmotaleite
    java.lang.ClassCastException: org.elasticsearch.action.admin.indices.stats.CommonStatsFlags cannot be cast to [Ljava.lang.String;
  2. 0

    ClassCastException when requesting nodes stats

    GitHub | 8 months ago | gjdev
    java.lang.ClassCastException: org.elasticsearch.action.admin.indices.stats.CommonStatsFlags cannot be cast to [Ljava.lang.String;
  3. 0

    Two-dimensional generic array initialization

    Stack Overflow | 2 years ago | lhahn
    java.lang.ClassCastException: Cannot cast [[[Ljava.lang.String; to [[Ljava.lang.String;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Examples do not seem to work

    GitHub | 7 months ago | arafalov
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.util.Collection

    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.ClassCastException

      org.elasticsearch.action.admin.indices.stats.CommonStatsFlags cannot be cast to [Ljava.lang.String;

      at org.elasticsearch.plugin.readonlyrest.acl.blocks.rules.impl.IndicesRule$1.run()
    2. org.elasticsearch.plugin
      IndicesRule$1.run
      1. org.elasticsearch.plugin.readonlyrest.acl.blocks.rules.impl.IndicesRule$1.run(IndicesRule.java:55)
      2. org.elasticsearch.plugin.readonlyrest.acl.blocks.rules.impl.IndicesRule$1.run(IndicesRule.java:48)
      2 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. org.elasticsearch.plugin
      IndexLevelActionFilter.apply
      1. org.elasticsearch.plugin.readonlyrest.acl.blocks.rules.impl.IndicesRule.getIndices(IndicesRule.java:47)
      2. org.elasticsearch.plugin.readonlyrest.acl.blocks.rules.impl.IndicesRule.match(IndicesRule.java:73)
      3. org.elasticsearch.plugin.readonlyrest.acl.blocks.Block.check(Block.java:104)
      4. org.elasticsearch.plugin.readonlyrest.acl.ACL.check(ACL.java:46)
      5. org.elasticsearch.plugin.readonlyrest.IndexLevelActionFilter.apply(IndexLevelActionFilter.java:82)
      5 frames
    5. ElasticSearch
      RestController$ControllerFilterChain.continueProcessing
      1. org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:63)
      2. org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:99)
      3. org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:77)
      4. org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:58)
      5. org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:351)
      6. org.elasticsearch.client.FilterClient.doExecute(FilterClient.java:52)
      7. org.elasticsearch.rest.BaseRestHandler$HeadersAndContextCopyClient.doExecute(BaseRestHandler.java:83)
      8. org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:351)
      9. org.elasticsearch.client.support.AbstractClient$ClusterAdmin.execute(AbstractClient.java:845)
      10. org.elasticsearch.client.support.AbstractClient$ClusterAdmin.nodesStats(AbstractClient.java:940)
      11. org.elasticsearch.rest.action.admin.cluster.node.stats.RestNodesStatsAction.handleRequest(RestNodesStatsAction.java:109)
      12. org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:54)
      13. org.elasticsearch.rest.RestController.executeHandler(RestController.java:207)
      14. org.elasticsearch.rest.RestController$RestHandlerFilter.process(RestController.java:281)
      15. org.elasticsearch.rest.RestController$ControllerFilterChain.continueProcessing(RestController.java:262)
      15 frames
    6. org.elasticsearch.plugin
      ReadonlyRestAction$1.process
      1. org.elasticsearch.plugin.readonlyrest.ReadonlyRestAction$1.process(ReadonlyRestAction.java:39)
      1 frame
    7. ElasticSearch
      HttpRequestHandler.messageReceived
      1. org.elasticsearch.rest.RestController$ControllerFilterChain.continueProcessing(RestController.java:265)
      2. org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:176)
      3. org.elasticsearch.http.HttpServer.internalDispatchRequest(HttpServer.java:128)
      4. org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:86)
      5. org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:385)
      6. org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:63)
      6 frames
    8. Netty
      DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream
      1. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      2. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      3. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      3 frames
    9. ElasticSearch
      HttpPipeliningHandler.messageReceived
      1. org.elasticsearch.http.netty.pipelining.HttpPipeliningHandler.messageReceived(HttpPipeliningHandler.java:60)
      1 frame
    10. Netty
      DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream
      1. org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
      2. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      3. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      4. org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)
      5. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      6. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      7. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      8. org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:108)
      9. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      10. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      11. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      12. org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
      13. org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)
      14. org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)
      15. org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)
      16. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      17. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      18. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      18 frames
    11. ElasticSearch
      OpenChannelsHandler.handleUpstream
      1. org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:75)
      1 frame
    12. Netty
      DeadLockProofWorker$1.run
      1. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      2. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
      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:108)
      7. org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
      8. org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
      9. org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
      10. org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
      11. org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
      11 frames
    13. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames