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

Solutions on the web

via Hibernate JIRA by Jeppe Cramon, 1 year ago
via Hibernate JIRA by Jeppe Cramon, 1 year ago
via https://bugzilla.redhat.com/bugzilla/ by Rajan Timaniya, 1 year ago
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.rhq.core.domain.content.RepoContentSource#RepoContentSourcePK: repo=[Repo: id=[101], name=[JBoss Patches]]; contentSource=[ContentSource: id=[101], name=[JBoss CSP Patch Feed]]]
via Hibernate JIRA by Miro Bezjak, 1 year ago
org.hibernate.exception.ConstraintViolationException: could not insert: [test.User]
via Hibernate JIRA by Miro Bezjak, 1 year ago
org.hibernate.exception.ConstraintViolationException: could not insert: [test.User]
via hivmr.com by Unknown author, 1 year ago
org.hibernate.exception.DataException: could not insert: [net.mpsolution.model.Usuario]
org.hibernate.PropertyValueException: not-null property references a null or transient value: dk.hibernatetest.model.C.b	at org.hibernate.engine.Nullability.checkNullability(Nullability.java:95)	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:313)	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)	at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)	at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)	at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)	at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:636)	at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:628)	at org.hibernate.engine.EJB3CascadingAction$1.cascade(EJB3CascadingAction.java:28)	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:291)	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:239)	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:319)	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:265)	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:242)	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)	at org.hibernate.engine.Cascade.cascade(Cascade.java:153)	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:479)	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:357)	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)	at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)	at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)	at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)	at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:636)	at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:628)	at org.hibernate.engine.EJB3CascadingAction$1.cascade(EJB3CascadingAction.java:28)	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:291)	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:239)	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)	at org.hibernate.engine.Cascade.cascade(Cascade.java:153)	at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:454)	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:288)	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)	at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)	at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)	at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)	at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:636)	at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:628)	at org.hibernate.engine.EJB3CascadingAction$1.cascade(EJB3CascadingAction.java:28)	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:291)	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:239)	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)	at org.hibernate.engine.Cascade.cascade(Cascade.java:153)	at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:454)	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:288)	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)	at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)	at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)	at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)	at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:636)	at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:628)	at org.hibernate.engine.EJB3CascadingAction$1.cascade(EJB3CascadingAction.java:28)	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:291)	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:239)	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)	at org.hibernate.engine.Cascade.cascade(Cascade.java:153)	at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:454)	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:288)	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)	at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)	at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)	at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)	at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:636)	at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:628)	at org.hibernate.engine.EJB3CascadingAction$1.cascade(EJB3CascadingAction.java:28)	at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:291)	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:239)	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:319)	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:265)	at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:242)	at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)	at org.hibernate.engine.Cascade.cascade(Cascade.java:153)	at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:479)	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:357)	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)	at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)	at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)	at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)	at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)	at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)	at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)	at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)	at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)	at dk.hibernatetest.model.ModelTest.test(ModelTest.java:49)	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:585)	at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)	at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)	at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)	at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)	at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)	at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)	at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)	at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)