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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via jpasecurity by nurquiza
, 1 year ago
com.nestorurquiza.dao.DaoException: javax.persistence.PersistenceException: Id property required for class com.nestorurquiza.model.ContactDetail
com.nestorurquiza.service.impl.ErrorEnabledRuntimeException: com.nestorurquiza.dao.DaoException: javax.persistence.PersistenceException: Id property required for class com.nestorurquiza.model.ContactDetail
at net.sf.jpasecurity.persistence.JpaExceptionFactory.createRuntimeException(JpaExceptionFactory.java:28)
at net.sf.jpasecurity.configuration.AbstractExceptionFactory.createRuntimeException(AbstractExceptionFactory.java:59)
at net.sf.jpasecurity.configuration.AbstractExceptionFactory.createMappingException(AbstractExceptionFactory.java:34)
at net.sf.jpasecurity.mapping.DefaultClassMappingInformation.getId(DefaultClassMappingInformation.java:221)
at net.sf.jpasecurity.entity.EntityPersister.isNew(EntityPersister.java:263)
at net.sf.jpasecurity.entity.EntityPersister.createUnsecureObject(EntityPersister.java:247)
at net.sf.jpasecurity.entity.AbstractSecureObjectManager.getUnsecureObject(AbstractSecureObjectManager.java:140)
at net.sf.jpasecurity.entity.EntityPersister.getUnsecureObject(EntityPersister.java:240)
at net.sf.jpasecurity.entity.AbstractSecureObjectManager.unsecureCopy(AbstractSecureObjectManager.java:191)
at net.sf.jpasecurity.entity.EntityPersister.createUnsecureObject(EntityPersister.java:253)
at net.sf.jpasecurity.entity.AbstractSecureObjectManager.getUnsecureObject(AbstractSecureObjectManager.java:140)
at net.sf.jpasecurity.entity.EntityPersister.getUnsecureObject(EntityPersister.java:240)
at net.sf.jpasecurity.entity.EntityPersister.persist(EntityPersister.java:63)
at net.sf.jpasecurity.persistence.DefaultSecureEntityManager.persist(DefaultSecureEntityManager.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at undefined.$Proxy84.persist(Unknown Source)
at com.nestorurquiza.dao.GenericEntityDaoImpl.create(GenericEntityDaoImpl.java:98)
at com.nestorurquiza.service.impl.GenericEntityCrudServiceImpl.create(GenericEntityCrudServiceImpl.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at undefined.$Proxy147.create(Unknown Source)
at com.nestorurquiza.service.impl.ServiceProviderContactServiceImplTest.setUpTestDataWithinTransaction(ServiceProviderContactServiceImplTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.