java.lang.IllegalStateException: Failed to execute CommandLineRunner

Stack Overflow | Tyler Whalen | 3 months ago
  1. 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
  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 | 1 year 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 can I diagnose this neo4j-ogm / mvn spring-boot:run issue?

    Stack Overflow | 1 year ago | John Deverall
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
  6. 0

    Error when trying to run Spring project (Spring forum at JavaRanch)

    coderanch.com | 11 months ago
    java.lang.IllegalStateException: Failed to execute CommandLineRunner

    7 unregistered visitors
    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 execute CommandLineRunner

      at org.springframework.boot.SpringApplication.callRunner()
    2. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:801)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      2. org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:782)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      3. org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:769)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      6 frames
    3. com.tjwhalen.game
      Application.main
      1. com.tjwhalen.game.Application.main(Application.java:50)[classes/:na]
      1 frame