java.lang.IllegalStateException: Failed to execute CommandLineRunner

GitHub | joshlong | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. javax.validation.ValidationException

    HV000183: Unable to load 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead

    at org.hibernate.validator.internal.engine.ValidatorFactoryImpl.createValidator()
  2. Hibernate Validator Engine
    ValidatorContextImpl.getValidator
    1. org.hibernate.validator.internal.engine.ValidatorFactoryImpl.createValidator(ValidatorFactoryImpl.java:339)[hibernate-validator-5.2.4.Final.jar:5.2.4.Final]
    2. org.hibernate.validator.internal.engine.ValidatorContextImpl.getValidator(ValidatorContextImpl.java:122)[hibernate-validator-5.2.4.Final.jar:5.2.4.Final]
    2 frames
  3. Hibernate
    AbstractSaveEventListener.saveWithGeneratedId
    1. org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate(BeanValidationEventListener.java:111)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    2. org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:78)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    3. org.hibernate.action.internal.EntityIdentityInsertAction.preInsert(EntityIdentityInsertAction.java:197)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    4. org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:75)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    5. org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:597)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    6. org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:232)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    7. org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:213)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    8. org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:256)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    9. org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:317)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    10. org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:272)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    11. org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:178)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    12. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:109)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    12 frames
  4. org.hibernate.jpa
    JpaPersistEventListener.saveWithGeneratedId
    1. org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67)[hibernate-entitymanager-5.0.9.Final.jar:5.0.9.Final]
    1 frame
  5. Hibernate
    SessionImpl.persist
    1. org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    2. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    3. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    4. org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:775)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    5. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:748)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    6. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:753)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
    6 frames
  6. org.hibernate.jpa
    AbstractEntityManagerImpl.persist
    1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1146)[hibernate-entitymanager-5.0.9.Final.jar:5.0.9.Final]
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66]
    4 frames
  8. Spring ORM
    SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:298)[spring-orm-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  9. com.sun.proxy
    $Proxy85.persist
    1. com.sun.proxy.$Proxy85.persist(Unknown Source)[na:na]
    1 frame
  10. Spring Data JPA
    SimpleJpaRepository.save
    1. org.springframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:506)[spring-data-jpa-1.10.2.RELEASE.jar:na]
    1 frame
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66]
    4 frames
  12. Spring Data Core
    RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
    1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:503)[spring-data-commons-1.12.2.RELEASE.jar:na]
    2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:488)[spring-data-commons-1.12.2.RELEASE.jar:na]
    3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:460)[spring-data-commons-1.12.2.RELEASE.jar:na]
    3 frames
  13. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  14. org.springframework.data
    DefaultMethodInvokingMethodInterceptor.invoke
    1. org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)[spring-data-commons-1.12.2.RELEASE.jar:na]
    1 frame
  15. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  16. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)[spring-tx-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:280)[spring-tx-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3 frames
  17. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  18. Spring Tx
    PersistenceExceptionTranslationInterceptor.invoke
    1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)[spring-tx-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  19. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  20. Spring Data JPA
    CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke
    1. org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133)[spring-data-jpa-1.10.2.RELEASE.jar:na]
    1 frame
  21. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4 frames
  22. com.example
    SampleDataCLR.lambda$run$0
    1. com.example.$Proxy89.save(Unknown Source)[na:na]
    2. com.example.SampleDataCLR.lambda$run$0(ReservationServiceApplication.java:46)[classes/:na]
    2 frames
  23. Java RT
    ReferencePipeline$Head.forEach
    1. java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)[na:1.8.0_66]
    2. java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)[na:1.8.0_66]
    2 frames
  24. com.example
    SampleDataCLR.run
    1. com.example.SampleDataCLR.run(ReservationServiceApplication.java:46)[classes/:na]
    1 frame
  25. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798)[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
  26. com.example
    ReservationServiceApplication.main
    1. com.example.ReservationServiceApplication.main(ReservationServiceApplication.java:27)[classes/:na]
    1 frame