org.springframework.orm.jpa.JpaSystemException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner; nested exception is javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I am using non-autogenerated id field in my entity. When I run integration tests, see the following exception below. This exception is primarily because the generated DOD doesn't set the ID. So DOD generation code needs to check if ID is autogenerated, if not, insert a setId(index) in getNewTransientXXX(int index){} org.springframework.orm.jpa.JpaSystemException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner; nested exception is javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:326) at org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect.ajc$afterThrowing$org_springframework_orm_jpa_aspectj_JpaExceptionTranslatorAspect$1$18a1ac9(JpaExceptionTranslatorAspect.aj:15) at solubris.marketmon.domain.Runner_Roo_Jpa_ActiveRecord.ajc$interMethod$solubris_marketmon_domain_Runner_Roo_Jpa_ActiveRecord$solubris_marketmon_domain_Runner$persist(Runner_Roo_Jpa_ActiveRecord.aj:43) at solubris.marketmon.domain.Runner.persist(Runner.java:1) at solubris.marketmon.domain.Runner_Roo_Jpa_ActiveRecord.ajc$interMethodDispatch1$solubris_marketmon_domain_Runner_Roo_Jpa_ActiveRecord$solubris_marketmon_domain_Runner$persist(Runner_Roo_Jpa_ActiveRecord.aj) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethod$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$init(RunnerDataOnDemand_Roo_DataOnDemand.aj:139) at solubris.marketmon.domain.RunnerDataOnDemand.init(RunnerDataOnDemand.java:1) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$init(RunnerDataOnDemand_Roo_DataOnDemand.aj) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethod$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$getRandomRunner(RunnerDataOnDemand_Roo_DataOnDemand.aj:114) at solubris.marketmon.domain.RunnerDataOnDemand.getRandomRunner(RunnerDataOnDemand.java:1) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$getRandomRunner(RunnerDataOnDemand_Roo_DataOnDemand.aj) at solubris.marketmon.domain.RunnerIntegrationTest_Roo_IntegrationTest.ajc$interMethod$solubris_marketmon_domain_RunnerIntegrationTest_Roo_IntegrationTest$solubris_marketmon_domain_RunnerIntegrationTest$testCountRunners(RunnerIntegrationTest_Roo_IntegrationTest.aj:28) at solubris.marketmon.domain.RunnerIntegrationTest.testCountRunners(RunnerIntegrationTest.java:1) 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:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) 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) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1315) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1321) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:843) 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.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:240) at $Proxy37.persist(Unknown Source) ... 39 more Caused by: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.hibernate.id.Assigned.generate(Assigned.java:53) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121) at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:69) at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:179) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:135) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61) at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:808) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:782) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:786) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:837) ... 45 more
    via by Tim,
  • I am using non-autogenerated id field in my entity. When I run integration tests, see the following exception below. This exception is primarily because the generated DOD doesn't set the ID. So DOD generation code needs to check if ID is autogenerated, if not, insert a setId(index) in getNewTransientXXX(int index){} org.springframework.orm.jpa.JpaSystemException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner; nested exception is javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:326) at org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect.ajc$afterThrowing$org_springframework_orm_jpa_aspectj_JpaExceptionTranslatorAspect$1$18a1ac9(JpaExceptionTranslatorAspect.aj:15) at solubris.marketmon.domain.Runner_Roo_Jpa_ActiveRecord.ajc$interMethod$solubris_marketmon_domain_Runner_Roo_Jpa_ActiveRecord$solubris_marketmon_domain_Runner$persist(Runner_Roo_Jpa_ActiveRecord.aj:43) at solubris.marketmon.domain.Runner.persist(Runner.java:1) at solubris.marketmon.domain.Runner_Roo_Jpa_ActiveRecord.ajc$interMethodDispatch1$solubris_marketmon_domain_Runner_Roo_Jpa_ActiveRecord$solubris_marketmon_domain_Runner$persist(Runner_Roo_Jpa_ActiveRecord.aj) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethod$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$init(RunnerDataOnDemand_Roo_DataOnDemand.aj:139) at solubris.marketmon.domain.RunnerDataOnDemand.init(RunnerDataOnDemand.java:1) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$init(RunnerDataOnDemand_Roo_DataOnDemand.aj) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethod$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$getRandomRunner(RunnerDataOnDemand_Roo_DataOnDemand.aj:114) at solubris.marketmon.domain.RunnerDataOnDemand.getRandomRunner(RunnerDataOnDemand.java:1) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$getRandomRunner(RunnerDataOnDemand_Roo_DataOnDemand.aj) at solubris.marketmon.domain.RunnerIntegrationTest_Roo_IntegrationTest.ajc$interMethod$solubris_marketmon_domain_RunnerIntegrationTest_Roo_IntegrationTest$solubris_marketmon_domain_RunnerIntegrationTest$testCountRunners(RunnerIntegrationTest_Roo_IntegrationTest.aj:28) at solubris.marketmon.domain.RunnerIntegrationTest.testCountRunners(RunnerIntegrationTest.java:1) 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:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) 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) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1315) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1321) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:843) 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.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:240) at $Proxy37.persist(Unknown Source) ... 39 more Caused by: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.hibernate.id.Assigned.generate(Assigned.java:53) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121) at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:69) at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:179) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:135) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61) at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:808) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:782) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:786) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:837) ... 45 more
    via by Tim,
  • One-to-One Relationship with Hibernate-JPA
    via Stack Overflow by mmc18
    ,
  • Problemas com Spring - RESOLVIDO
    via by Unknown author,
  • Communication with Hibernate and Database
    via Stack Overflow by F3RN1
    ,
  • Hibernate not see a mapping xml file
    via Stack Overflow by Kliver Max
    ,
    • org.springframework.orm.jpa.JpaSystemException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner; nested exception is javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:326) at org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect.ajc$afterThrowing$org_springframework_orm_jpa_aspectj_JpaExceptionTranslatorAspect$1$18a1ac9(JpaExceptionTranslatorAspect.aj:15) at solubris.marketmon.domain.Runner_Roo_Jpa_ActiveRecord.ajc$interMethod$solubris_marketmon_domain_Runner_Roo_Jpa_ActiveRecord$solubris_marketmon_domain_Runner$persist(Runner_Roo_Jpa_ActiveRecord.aj:43) at solubris.marketmon.domain.Runner.persist(Runner.java:1) at solubris.marketmon.domain.Runner_Roo_Jpa_ActiveRecord.ajc$interMethodDispatch1$solubris_marketmon_domain_Runner_Roo_Jpa_ActiveRecord$solubris_marketmon_domain_Runner$persist(Runner_Roo_Jpa_ActiveRecord.aj) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethod$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$init(RunnerDataOnDemand_Roo_DataOnDemand.aj:139) at solubris.marketmon.domain.RunnerDataOnDemand.init(RunnerDataOnDemand.java:1) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$init(RunnerDataOnDemand_Roo_DataOnDemand.aj) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethod$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$getRandomRunner(RunnerDataOnDemand_Roo_DataOnDemand.aj:114) at solubris.marketmon.domain.RunnerDataOnDemand.getRandomRunner(RunnerDataOnDemand.java:1) at solubris.marketmon.domain.RunnerDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$solubris_marketmon_domain_RunnerDataOnDemand_Roo_DataOnDemand$solubris_marketmon_domain_RunnerDataOnDemand$getRandomRunner(RunnerDataOnDemand_Roo_DataOnDemand.aj) at solubris.marketmon.domain.RunnerIntegrationTest_Roo_IntegrationTest.ajc$interMethod$solubris_marketmon_domain_RunnerIntegrationTest_Roo_IntegrationTest$solubris_marketmon_domain_RunnerIntegrationTest$testCountRunners(RunnerIntegrationTest_Roo_IntegrationTest.aj:28) at solubris.marketmon.domain.RunnerIntegrationTest.testCountRunners(RunnerIntegrationTest.java:1) 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:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) 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) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1315) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1321) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:843) 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.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:240) at $Proxy37.persist(Unknown Source) ... 39 more Caused by: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): solubris.marketmon.domain.Runner at org.hibernate.id.Assigned.generate(Assigned.java:53) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121) at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:69) at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:179) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:135) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61) at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:808) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:782) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:786) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:837) ... 45 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    nasimk
    nasimk4 times, last one,
    tomthomas
    tomthomas1 times, last one,
    Unknown visitor1 times, last one,
    5 more bugmates