java.lang.IllegalStateException: Failed to execute CommandLineRunner

Stack Overflow | Stefan | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    You could be missing na annotation (@Service or @Component) or the <bean> definition in the xml. Also, look if the class where your implementation is located is properly scanned (check "<context:component-scan base-package=")
    via goo.gl
  2. 0
    samebug tip
    Change the connection port and ip adress. If you're trying to connect to your server from your own computer, check if you haven't already connected to the server in another instance.
  3. 0

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

    Stack Overflow | 7 months ago | Tyler Whalen
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Your code probably has some syntax issue with how you're making the query request, more on this here: goo.gl/9wtLyd If your problem wasn't solved by that link, check this one as well: https://goo.gl/zBTzbl
  6. 0
    samebug tip
    Firewall might be blocking your connection, or MySQL it's not running on your server machine.
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. org.hibernate.id.IdentifierGenerationException

    ids for this class must be manually assigned before calling save(): meinpro.entiti.Compte

    at org.hibernate.id.Assigned.generate()
  2. Hibernate
    AbstractSaveEventListener.saveWithGeneratedId
    1. org.hibernate.id.Assigned.generate(Assigned.java:34)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    2. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    2 frames
  3. org.hibernate.jpa
    JpaPersistEventListener.saveWithGeneratedId
    1. org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67)[hibernate-entitymanager-5.0.11.Final.jar:5.0.11.Final]
    1 frame
  4. Hibernate
    SessionImpl.persist
    1. org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    2. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    3. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    4. org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:775)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    5. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:748)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    6. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:753)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
    6 frames
  5. org.hibernate.jpa
    AbstractEntityManagerImpl.persist
    1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1146)[hibernate-entitymanager-5.0.11.Final.jar:5.0.11.Final]
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_121]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_121]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_121]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_121]
    4 frames
  7. Spring ORM
    SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:298)[spring-orm-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    1 frame
  8. com.sun.proxy
    $Proxy82.persist
    1. com.sun.proxy.$Proxy82.persist(Unknown Source)[na:na]
    1 frame
  9. Spring Data JPA
    SimpleJpaRepository.save
    1. org.springframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:508)[spring-data-jpa-1.11.0.RELEASE.jar:na]
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_121]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_121]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_121]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_121]
    4 frames
  11. Spring Data Core
    RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
    1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:504)[spring-data-commons-1.13.0.RELEASE.jar:na]
    2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:489)[spring-data-commons-1.13.0.RELEASE.jar:na]
    3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:461)[spring-data-commons-1.13.0.RELEASE.jar:na]
    3 frames
  12. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    1 frame
  13. org.springframework.data
    DefaultMethodInvokingMethodInterceptor.invoke
    1. org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)[spring-data-commons-1.13.0.RELEASE.jar:na]
    1 frame
  14. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    1 frame
  15. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    3 frames
  16. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    1 frame
  17. Spring Tx
    PersistenceExceptionTranslationInterceptor.invoke
    1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    1 frame
  18. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    1 frame
  19. Spring Data JPA
    CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke
    1. org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133)[spring-data-jpa-1.11.0.RELEASE.jar:na]
    1 frame
  20. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    3 frames
  21. Spring Data Core
    SurroundingTransactionDetectorMethodInterceptor.invoke
    1. org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:57)[spring-data-commons-1.13.0.RELEASE.jar:na]
    1 frame
  22. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2 frames
  23. com.sun.proxy
    $Proxy86.save
    1. com.sun.proxy.$Proxy86.save(Unknown Source)[na:na]
    1 frame
  24. meinpro
    MeinproApplication.run
    1. meinpro.MeinproApplication.run(MeinproApplication.java:38)[classes/:na]
    1 frame
  25. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:776)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    2. org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    3. org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:747)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    6 frames
  26. meinpro
    MeinproApplication.main
    1. meinpro.MeinproApplication.main(MeinproApplication.java:30)[classes/:na]
    1 frame
  27. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_121]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_121]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_121]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_121]
    4 frames
  28. org.springframework.boot
    RestartLauncher.run
    1. org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)[spring-boot-devtools-1.5.1.RELEASE.jar:1.5.1.RELEASE]
    1 frame