Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by gjdev
, 1 year ago
org.elasticsearch.action.admin.indices.stats.CommonStatsFlags cannot be cast to [Ljava.lang.String;
java.lang.ClassCastException: org.elasticsearch.action.admin.indices.stats.CommonStatsFlags cannot be cast to [Ljava.lang.String;	at org.elasticsearch.plugin.readonlyrest.acl.RequestContext$1.run(RequestContext.java:63)	at org.elasticsearch.plugin.readonlyrest.acl.RequestContext$1.run(RequestContext.java:46)	at java.security.AccessController.doPrivileged(Native Method)	at org.elasticsearch.plugin.readonlyrest.acl.RequestContext.getIndices(RequestContext.java:45)	at org.elasticsearch.plugin.readonlyrest.acl.blocks.rules.impl.KibanaAccessRule.match(KibanaAccessRule.java:107)	at org.elasticsearch.plugin.readonlyrest.acl.blocks.Block.check(Block.java:112)	at org.elasticsearch.plugin.readonlyrest.acl.ACL.check(ACL.java:46)	at org.elasticsearch.plugin.readonlyrest.IndexLevelActionFilter.apply(IndexLevelActionFilter.java:82)	at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:64)	at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:170)	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:144)	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:85)	at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:58)	at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359)	at org.elasticsearch.client.FilterClient.doExecute(FilterClient.java:52)	at org.elasticsearch.rest.BaseRestHandler$HeadersAndContextCopyClient.doExecute(BaseRestHandler.java:83)	at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359)	at org.elasticsearch.client.support.AbstractClient$ClusterAdmin.execute(AbstractClient.java:853)	at org.elasticsearch.client.support.AbstractClient$ClusterAdmin.nodesStats(AbstractClient.java:948)	at org.elasticsearch.rest.action.admin.cluster.node.stats.RestNodesStatsAction.handleRequest(RestNodesStatsAction.java:109)	at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:54)	at org.elasticsearch.rest.RestController.executeHandler(RestController.java:205)	at org.elasticsearch.rest.RestController$RestHandlerFilter.process(RestController.java:279)	at org.elasticsearch.rest.RestController$ControllerFilterChain.continueProcessing(RestController.java:260)	at org.elasticsearch.plugin.readonlyrest.ReadonlyRestAction$1.process(ReadonlyRestAction.java:39)	at org.elasticsearch.rest.RestController$ControllerFilterChain.continueProcessing(RestController.java:263)	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:176)	at org.elasticsearch.http.HttpServer.internalDispatchRequest(HttpServer.java:128)	at org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:86)	at org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:449)	at org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:61)	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)	at org.elasticsearch.http.netty.pipelining.HttpPipeliningHandler.messageReceived(HttpPipeliningHandler.java:60)	at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)	at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)	at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:108)	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)	at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:75)	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)	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:108)	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)