net.sf.hibernate.HibernateException: Found shared references to a collection

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 Atlassian JIRA by Mike Cannon-Brookes, 1 year ago
Found shared references to a collection
via Atlassian JIRA by Mike Cannon-Brookes, 1 year ago
Found shared references to a collection
via Coderanch by Lasse Koskela, 11 months ago
Found two representations of same collection: domain.Email.recipients
via Atlassian JIRA by Mike Cannon-Brookes, 1 year ago
Found shared references to a collection
via Atlassian JIRA by Sergey Zhukov, 1 year ago
Found shared references to a collection
via Atlassian JIRA by Sergey Zhukov, 1 year ago
Found shared references to a collection
net.sf.hibernate.HibernateException: Found shared references to a collection
at net.sf.hibernate.impl.SessionImpl.updateReachableCollection(SessionImpl.java:2785)
at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:63)
at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:137)
at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:71)
at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2500)
at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2366)
at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2200)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2179)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:218)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:196)
at com.atlassian.confluence.user.actions.EditMyProfileAction.updatePersonalInformation(EditMyProfileAction.java:113)
at com.atlassian.confluence.user.actions.EditMyProfileAction.doEdit(EditMyProfileAction.java:70)

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.