java.lang.Exception: Unexpected exception, expected<javax.validation.ConstraintViolationException> but was<org.springframework.orm.jpa.JpaSystemException>

Stack Overflow | mosgjig | 2 months ago
  1. 0

    Spring boot test expecting ConstraintViolationException but received JpaSystemException

    Stack Overflow | 2 months ago | mosgjig
    java.lang.Exception: Unexpected exception, expected<javax.validation.ConstraintViolationException> but was<org.springframework.orm.jpa.JpaSystemException>
  2. 0

    [YARN-913] Umbrella: Add a way to register long-lived services in a YARN cluster - ASF JIRA

    apache.org | 12 months ago
    java.lang.Exception: Unexpected exception, expected<org.apache.hadoop.fs.PathNotFoundException> but was<org.apache.hadoop.yarn.registry.client.exceptions.InvalidPathnameException>
  3. 0

    jenkins exception difference in consortium testing

    GitHub | 12 months ago | michael-conway
    java.lang.Exception: Unexpected exception, expected<org.irods.jargon.core.exception.FileNotFoundException> but was<org.irods.jargon.core.exception.DataNotFoundException>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 91#200404856

    GitHub | 9 months ago | reckart
    java.lang.Exception: Unexpected exception, expected<org.dkpro.lab.engine.ExecutionException> but was<org.dkpro.lab.storage.UnresolvedImportException>
  6. 0

    StartWorkersTaskTest.testCreateWorkers_withExceptionOnWrite

    GitHub | 3 months ago | hasancelik
    java.lang.Exception: Unexpected exception, expected<com.hazelcast.simulator.protocol.core.SimulatorProtocolException> but was<java.lang.ArrayIndexOutOfBoundsException>

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

      Unexpected exception, expected<javax.validation.ConstraintViolationException> but was<org.springframework.orm.jpa.JpaSystemException>

      at org.hibernate.id.Assigned.generate()
    2. Hibernate
      AbstractSaveEventListener.saveWithGeneratedId
      1. org.hibernate.id.Assigned.generate(Assigned.java:34)
      2. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)
      2 frames
    3. org.hibernate.jpa
      JpaPersistEventListener.saveWithGeneratedId
      1. org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67)
      1 frame
    4. Hibernate
      SessionImpl.persist
      1. org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189)
      2. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132)
      3. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)
      4. org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:775)
      5. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:748)
      6. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:753)
      6 frames
    5. org.hibernate.jpa
      AbstractEntityManagerImpl.persist
      1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1146)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. Spring ORM
      SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
      1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:298)
      1 frame
    8. com.sun.proxy
      $Proxy92.persist
      1. com.sun.proxy.$Proxy92.persist(Unknown Source)
      1 frame
    9. Spring Data JPA
      SimpleJpaRepository.save
      1. org.springframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:506)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    11. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:503)
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:488)
      3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:460)
      3 frames
    12. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    13. org.springframework.data
      DefaultMethodInvokingMethodInterceptor.invoke
      1. org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)
      1 frame
    14. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    15. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:280)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      3 frames
    16. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    17. Spring Tx
      PersistenceExceptionTranslationInterceptor.invoke
      1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
      1 frame
    18. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    19. Spring Data JPA
      CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke
      1. org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133)
      1 frame
    20. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      4 frames
    21. com.sun.proxy
      $Proxy96.save
      1. com.sun.proxy.$Proxy96.save(Unknown Source)
      1 frame
    22. com.myapp.core
      UsersDAOIT.testSave_NullUsername
      1. com.myapp.core.dao.UsersDAOIT.testSave_NullUsername(UsersDAOIT.java:49)
      1 frame