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

GitHub | danielmotaleite | 10 months ago
  1. 0

    readonlyrest-plugin break "cluster status" plugins

    GitHub | 10 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 | 9 months ago | gjdev
    java.lang.ClassCastException: org.elasticsearch.action.admin.indices.stats.CommonStatsFlags cannot be cast to [Ljava.lang.String;
  3. 0
    When you have no build parameters, uncheck 'This build is parameterized'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Two-dimensional generic array initialization

    Stack Overflow | 2 years ago | lhahn
    java.lang.ClassCastException: Cannot cast [[[Ljava.lang.String; to [[Ljava.lang.String;
  6. 0

    If JIRA is not compatible with JDK7, it would be nice for AMPS to error out early and inform the user that JDK7 isn't supported. I was wondering if this was something I'd done wrong... My environment: * AMPS 4.1.4 * Oracle JDK 1.7.0_07 * Reproduced on OS X and Linux Steps to reproduce: # {{atlas-create-jira-plugin}} #* Selected JIRA 5.0 plugin # {{atlas-run}} from within the new plugin directory Results: * {{atlas-run}} reports "JIRA startup failed, JIRA has been locked." * See attached log file for errors, the first one being: {code} 2013-02-12 15:25:16,972 main ERROR [atlassian.plugin.manager.PluginEnabler] Unable to enable plugin com.atlassian.sal.jira java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:46) at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:26) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:334) at java.util.TreeSet.addAll(TreeSet.java:312) at org.apache.felix.framework.FelixResolverState.getCandidates(FelixResolverState.java:759) at org.apache.felix.framework.resolver.ResolverImpl.populateCandidates(ResolverImpl.java:411) at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:75) at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3986) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3402) at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892) at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417) at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237) at com.atlassian.plugin.impl.AbstractDelegatingPlugin.enable(AbstractDelegatingPlugin.java:215) at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:114) at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:99) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:727) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:180) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:58) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:663) at com.atlassian.jira.ComponentManager.startJIRA(ComponentManager.java:216) ... {code} Workaround: * Switch to JDK6

    Atlassian JIRA | 4 years ago | Brent Plump
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable

    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