java.lang.IllegalStateException: failed to find action [org.elasticsearch.action.deletebyquery.DeleteByQueryAction@7c1ed3a2] to execute

Stack Overflow | Jotschi | 4 months ago
  1. 0

    How to use DeleteByQuery plugin with embedded ES 2.3.3

    Stack Overflow | 4 months ago | Jotschi
    java.lang.IllegalStateException: failed to find action [org.elasticsearch.action.deletebyquery.DeleteByQueryAction@7c1ed3a2] to execute
  2. 0

    Within a shared module our entity defines a unique index like this: {code} public class WorkflowDefinition extends AbstractDocument { @Nonnull @Indexed(unique = true) private final String name; // ... } {code} The problem starts on another project which is using this class and database. For ETL purposes this project is accessing an replication node with only read privileges. This ETL Application fails because it has no rights to create an indes: {code} java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:675) at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:690) at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) at com...ExporterApplication.main(SqlExporterApplication.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "productive-mon...mongodbdns.com:27000" , "ok" : 0.0 , "errmsg" : "not authorized on ... to execute command { createIndexes: \"workflowDefinition\", indexes: [ { name: \"name\", ns: \"ivi.workflowDefinition\", unique: true, key: { name: 1 } } ] }" , "code" : 13} at com.mongodb.CommandResult.getException(CommandResult.java:76) at com.mongodb.CommandResult.throwOnError(CommandResult.java:131) at com.mongodb.DBCollectionImpl.createIndex(DBCollectionImpl.java:362) at com.mongodb.DBCollection.createIndex(DBCollection.java:563) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.createIndex(MongoPersistentEntityIndexCreator.java:136) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.checkForAndCreateIndexes(MongoPersistentEntityIndexCreator.java:129) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.checkForIndexes(MongoPersistentEntityIndexCreator.java:121) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.onApplicationEvent(MongoPersistentEntityIndexCreator.java:105) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.onApplicationEvent(MongoPersistentEntityIndexCreator.java:46) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333) at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:306) at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.createAndRegisterProperty(AbstractMappingContext.java:469) at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.doWith(AbstractMappingContext.java:426) at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:604) at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:294) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:180) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:140) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:67) at org.springframework.data.mongodb.core.MongoTemplate.determineCollectionName(MongoTemplate.java:1881) at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemplate.java:492) at com...ExporterApplication.run(SqlExporterApplication.java:53) at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:672) ... 10 more {code}

    Spring JIRA | 2 years ago | Christian Schneider
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
  3. 0

    How can I pass a Kerberos ticket to Spring Yarn application

    Stack Overflow | 2 years ago | Dan Bellenoit
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How would I parse this JSON, looks like an array but no "[]"s

    Stack Overflow | 3 months ago | Tyler Whalen
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
  6. 0

    Within a shared module our entity defines a unique index like this: {code} public class WorkflowDefinition extends AbstractDocument { @Nonnull @Indexed(unique = true) private final String name; // ... } {code} The problem starts on another project which is using this class and database. For ETL purposes this project is accessing an replication node with only read privileges. This ETL Application fails because it has no rights to create an indes: {code} java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:675) at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:690) at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) at com...ExporterApplication.main(SqlExporterApplication.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "productive-mon...mongodbdns.com:27000" , "ok" : 0.0 , "errmsg" : "not authorized on ... to execute command { createIndexes: \"workflowDefinition\", indexes: [ { name: \"name\", ns: \"ivi.workflowDefinition\", unique: true, key: { name: 1 } } ] }" , "code" : 13} at com.mongodb.CommandResult.getException(CommandResult.java:76) at com.mongodb.CommandResult.throwOnError(CommandResult.java:131) at com.mongodb.DBCollectionImpl.createIndex(DBCollectionImpl.java:362) at com.mongodb.DBCollection.createIndex(DBCollection.java:563) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.createIndex(MongoPersistentEntityIndexCreator.java:136) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.checkForAndCreateIndexes(MongoPersistentEntityIndexCreator.java:129) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.checkForIndexes(MongoPersistentEntityIndexCreator.java:121) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.onApplicationEvent(MongoPersistentEntityIndexCreator.java:105) at org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator.onApplicationEvent(MongoPersistentEntityIndexCreator.java:46) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333) at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:306) at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.createAndRegisterProperty(AbstractMappingContext.java:469) at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.doWith(AbstractMappingContext.java:426) at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:604) at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:294) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:180) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:140) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:67) at org.springframework.data.mongodb.core.MongoTemplate.determineCollectionName(MongoTemplate.java:1881) at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemplate.java:492) at com...ExporterApplication.run(SqlExporterApplication.java:53) at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:672) ... 10 more {code}

    Spring JIRA | 2 years ago | Christian Schneider
    java.lang.IllegalStateException: Failed to execute CommandLineRunner

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

      failed to find action [org.elasticsearch.action.deletebyquery.DeleteByQueryAction@7c1ed3a2] to execute

      at org.elasticsearch.client.node.NodeClient.doExecute()
    2. ElasticSearch
      AbstractClient.execute
      1. org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:56)[elasticsearch-2.3.3.jar:2.3.3]
      2. org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359)[elasticsearch-2.3.3.jar:2.3.3]
      2 frames