org.hibernate.HibernateException: collection is not associated with any session


Solutions on the web

Solution icon of stackoverflow
collection is not associated with any session

Solution icon of hibernate
via Hibernate JIRA by Janario Oliveira, 1 year ago
collection is not associated with any session

Solution icon of stackoverflow
via Stack Overflow by user3305262
, 1 year ago
collection is not associated with any session

Solution icon of stackoverflow
collection is not associated with any session

Solution icon of web
via zeroturnaround.com by Unknown author, 1 year ago
collection is not associated with any session

Solution icon of hibernate
via Hibernate JIRA by Janario Oliveira, 1 year ago
collection is not associated with any session

Solution icon of stackoverflow
collection is not associated with any session

Solution icon of stackoverflow
collection is not associated with any session

Solution icon of web
collection is not associated with any session

Solution icon of web
via zeroturnaround.com by Unknown author, 1 year ago
collection is not associated with any session

Stack trace

org.hibernate.HibernateException: collection is not associated with any session
	at org.hibernate.collection.internal.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:704)
	at org.hibernate.Hibernate.initialize(Hibernate.java:65)
	at com.studytrails.tutorials.springhibernatejpa.MutablePerson.excludeFromGroup(MutablePerson.java:57)
	at com.studytrails.tutorials.springhibernatejpa.TestSpringHibernateJpa.main(TestSpringHibernateJpa.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 11 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1 more bugmates