com.nestorurquiza.service.impl.ErrorEnabledRuntimeException: com.nestorurquiza.dao.DaoException: javax.persistence.PersistenceException: Id property required for class com.nestorurquiza.model.ContactDetail

jpasecurity | nurquiza | 6 years 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.
  1. 0

    Patch: NPE single values and @Embeddable

    jpasecurity | 6 years ago | nurquiza
    com.nestorurquiza.service.impl.ErrorEnabledRuntimeException: com.nestorurquiza.dao.DaoException: javax.persistence.PersistenceException: Id property required for class com.nestorurquiza.model.ContactDetail

    Root Cause Analysis

    1. javax.persistence.PersistenceException

      Id property required for class com.nestorurquiza.model.ContactDetail

      at net.sf.jpasecurity.persistence.JpaExceptionFactory.createRuntimeException()
    2. net.sf.jpasecurity
      DefaultSecureEntityManager.persist
      1. net.sf.jpasecurity.persistence.JpaExceptionFactory.createRuntimeException(JpaExceptionFactory.java:28)
      2. net.sf.jpasecurity.configuration.AbstractExceptionFactory.createRuntimeException(AbstractExceptionFactory.java:59)
      3. net.sf.jpasecurity.configuration.AbstractExceptionFactory.createMappingException(AbstractExceptionFactory.java:34)
      4. net.sf.jpasecurity.mapping.DefaultClassMappingInformation.getId(DefaultClassMappingInformation.java:221)
      5. net.sf.jpasecurity.entity.EntityPersister.isNew(EntityPersister.java:263)
      6. net.sf.jpasecurity.entity.EntityPersister.createUnsecureObject(EntityPersister.java:247)
      7. net.sf.jpasecurity.entity.AbstractSecureObjectManager.getUnsecureObject(AbstractSecureObjectManager.java:140)
      8. net.sf.jpasecurity.entity.EntityPersister.getUnsecureObject(EntityPersister.java:240)
      9. net.sf.jpasecurity.entity.AbstractSecureObjectManager.unsecureCopy(AbstractSecureObjectManager.java:191)
      10. net.sf.jpasecurity.entity.EntityPersister.createUnsecureObject(EntityPersister.java:253)
      11. net.sf.jpasecurity.entity.AbstractSecureObjectManager.getUnsecureObject(AbstractSecureObjectManager.java:140)
      12. net.sf.jpasecurity.entity.EntityPersister.getUnsecureObject(EntityPersister.java:240)
      13. net.sf.jpasecurity.entity.EntityPersister.persist(EntityPersister.java:63)
      14. net.sf.jpasecurity.persistence.DefaultSecureEntityManager.persist(DefaultSecureEntityManager.java:120)
      14 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Spring ORM
      SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
      1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:240)
      1 frame
    5. Unknown
      $Proxy84.persist
      1. $Proxy84.persist(Unknown Source)
      1 frame
    6. com.nestorurquiza.dao
      GenericEntityDaoImpl.create
      1. com.nestorurquiza.dao.GenericEntityDaoImpl.create(GenericEntityDaoImpl.java:98)
      1 frame
    7. com.nestorurquiza.service
      GenericEntityCrudServiceImpl.create
      1. com.nestorurquiza.service.impl.GenericEntityCrudServiceImpl.create(GenericEntityCrudServiceImpl.java:50)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    10. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      1 frame
    11. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    12. Unknown
      $Proxy147.create
      1. $Proxy147.create(Unknown Source)
      1 frame
    13. com.nestorurquiza.service
      ServiceProviderContactServiceImplTest.setUpTestDataWithinTransaction
      1. com.nestorurquiza.service.impl.ServiceProviderContactServiceImplTest.setUpTestDataWithinTransaction(ServiceProviderContactServiceImplTest.java:76)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    15. JUnit
      RunBefores.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
      4 frames
    16. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
      2. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
      3. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
      4. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
      4 frames
    17. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      2. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      3. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      4. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      5. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      6. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      6 frames
    18. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
      2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
      2 frames
    19. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      1 frame
    20. Spring TestContext
      SpringJUnit4ClassRunner.run
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
      1 frame
    21. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
      1 frame
    22. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames