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

Atlassian JIRA | Sergey Zhukov | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cause: org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Stack Trace: [hide] org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: 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:2871) at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32) at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69) at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2588) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2454) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2256) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2235) at bucket.custom.FlushingSpringSessionInViewFilter.closeSession(FlushingSpringSessionInViewFilter.java:39) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:122) at bucket.custom.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:30) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.confluence.util.error.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:26) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Referer URL: http://www.jetbrains.net/confluence/pages/movepage.action?pageId=8111 Build Information: Uptime: 8 minutes, 39 seconds Version: 1.2.2 Build Number: 60 Server Information: Application Server: Apache Tomcat/5.0.28 Servlet Version: 2.4 Database Dialect: bucket.dialect.MySQLDialect Memory Information: Total Memory: 126 MB Free Memory: 51 MB Used Memory: 75 MB System Information: System Date: Tuesday, 23 Nov 2004 System Time: 15:07:27 System Favourite Colour: Jet Black Java Version: 1.4.2_05 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor: Sun Microsystems Inc. JVM Implementation Version: 1.4.2_05-b04 Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition Java VM: Java HotSpot(TM) Server VM User Name: confluence User Timezone: Europe/Moscow Operating System: Linux 2.4.21-20.ELsmp OS Architecture: i386 Request Information: URL: http://www.jetbrains.net/confluence/pages/domovepage.action - Scheme: http - Server: www.jetbrains.net - Port: 80 - URI: /confluence/500page.jsp - - Context Path: /confluence - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: pageId=8111 Attributes: - javax.servlet.forward.request_uri : /confluence/pages/domovepage.action - javax.servlet.forward.context_path : /confluence - javax.servlet.forward.servlet_path : /pages/domovepage.action - javax.servlet.forward.path_info : /500page.jsp - javax.servlet.forward.query_string : pageId=8111 - com.atlassian.confluence.setup.SpringSessionInViewFilter.sessionFactory : true - javax.servlet.error.exception : org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection - javax.servlet.error.message : - os_securityfilter_already_filtered : true - com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true - javax.servlet.error.request_uri : /confluence/pages/domovepage.action - javax.servlet.error.status_code : 500 - __sitemesh__filterapplied : true - javax.servlet.error.servlet_name : action - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@36a617 - loginfilter.already.filtered : true - atlassian.core.seraph.original.url : /pages/domovepage.action?pageId=8111 - javax.servlet.jsp.jspException : org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Parameters: - newPageTitle = UI Design Guidelines - newSpaceKey = JBINT - contentToBeRefactored = 8217, 8049, 8000 - confirm = Move - pageId = 8111 Logging: 0 log statements generated by this request.

    Atlassian JIRA | 1 decade ago | Sergey Zhukov
    net.sf.hibernate.HibernateException: Found shared references to a collection
  2. 0

    Cause: org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Stack Trace: [hide] org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: 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:2871) at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32) at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69) at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2588) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2454) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2256) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2235) at bucket.custom.FlushingSpringSessionInViewFilter.closeSession(FlushingSpringSessionInViewFilter.java:39) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:122) at bucket.custom.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:30) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.confluence.util.error.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:26) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Referer URL: http://www.jetbrains.net/confluence/pages/movepage.action?pageId=8111 Build Information: Uptime: 8 minutes, 39 seconds Version: 1.2.2 Build Number: 60 Server Information: Application Server: Apache Tomcat/5.0.28 Servlet Version: 2.4 Database Dialect: bucket.dialect.MySQLDialect Memory Information: Total Memory: 126 MB Free Memory: 51 MB Used Memory: 75 MB System Information: System Date: Tuesday, 23 Nov 2004 System Time: 15:07:27 System Favourite Colour: Jet Black Java Version: 1.4.2_05 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor: Sun Microsystems Inc. JVM Implementation Version: 1.4.2_05-b04 Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition Java VM: Java HotSpot(TM) Server VM User Name: confluence User Timezone: Europe/Moscow Operating System: Linux 2.4.21-20.ELsmp OS Architecture: i386 Request Information: URL: http://www.jetbrains.net/confluence/pages/domovepage.action - Scheme: http - Server: www.jetbrains.net - Port: 80 - URI: /confluence/500page.jsp - - Context Path: /confluence - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: pageId=8111 Attributes: - javax.servlet.forward.request_uri : /confluence/pages/domovepage.action - javax.servlet.forward.context_path : /confluence - javax.servlet.forward.servlet_path : /pages/domovepage.action - javax.servlet.forward.path_info : /500page.jsp - javax.servlet.forward.query_string : pageId=8111 - com.atlassian.confluence.setup.SpringSessionInViewFilter.sessionFactory : true - javax.servlet.error.exception : org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection - javax.servlet.error.message : - os_securityfilter_already_filtered : true - com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true - javax.servlet.error.request_uri : /confluence/pages/domovepage.action - javax.servlet.error.status_code : 500 - __sitemesh__filterapplied : true - javax.servlet.error.servlet_name : action - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@36a617 - loginfilter.already.filtered : true - atlassian.core.seraph.original.url : /pages/domovepage.action?pageId=8111 - javax.servlet.jsp.jspException : org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Parameters: - newPageTitle = UI Design Guidelines - newSpaceKey = JBINT - contentToBeRefactored = 8217, 8049, 8000 - confirm = Move - pageId = 8111 Logging: 0 log statements generated by this request.

    Atlassian JIRA | 1 decade ago | Sergey Zhukov
    net.sf.hibernate.HibernateException: Found shared references to a collection
  3. 0

    I was moving a page from the MACROS space to the CONFEXT space on http://confluence.atlassian.com. The page had one incoming link, from a comment attached to the page itself. Here are the error details: Cause: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Stack Trace: [hide] Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Referer URL: http://confluence.atlassian.com/pages/movepage.action?pageId=5935 Build Information: Uptime: 8 days, 20 hours, 40 minutes, 13 seconds Version: 1.2.1 Build Number: 59 Server Information: Application Server: Orion/2.0.2 Servlet Version: 2.2 Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect Memory Information: Total Memory: 371 MB Free Memory: 161 MB Used Memory: 210 MB System Information: System Date: Tuesday, 21 Sep 2004 System Time: 22:09:53 System Favourite Colour: Jet Black Java Version: 1.4.2_04 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor: Sun Microsystems Inc. JVM Implementation Version: 1.4.2_04-b05 Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition Java VM: Java HotSpot(TM) Server VM User Name: j2ee User Timezone: America/Chicago Operating System: Linux 2.4.21-20.ELsmp OS Architecture: i386 Request Information: URL: http://atlassian01.contegix.com:10082/500page.jsp - Scheme: http - Server: atlassian01.contegix.com - Port: 10082 - URI: /500page.jsp - - Context Path: - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: pageId=5935 Attributes: - com.atlassian.confluence.setup.SpringSessionInViewFilter.sessionFactory : true - javax.servlet.error.exception : org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection - javax.servlet.error.message : Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection - os_securityfilter_already_filtered : true - com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true - javax.servlet.error.request_uri : /pages/domovepage.action - javax.servlet.error.status_code : 500 - os_authstatus : null - __sitemesh__filterapplied : true - javax.servlet.error.servlet_name : action - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@1bad991 - loginfilter.already.filtered : true - atlassian.core.seraph.original.url : /pages/domovepage.action?pageId=5935 - javax.servlet.jsp.jspException : org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Parameters: - newPageTitle = Snippet Macro Library - newSpaceKey = CONFEXT - contentToBeRefactored = 5938 - confirm = Move - pageId = 5935 Logging: 2 log statements generated by this request: [ERROR] Tue Sep 21 22:09:53 CDT 2004 [com.atlassian.confluence.util.XWorkTransactionInterceptor] Invoking rollback for transaction on action '/pages/domovepage.action (MovePageAction.doMove())' due to throwable: org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection Throwable: org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: 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:2871) at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32) at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69) at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2588) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2454) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2256) at net.sf.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:1801) at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1567) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1532) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39) at bucket.core.persistence.hibernate.HibernateObjectDao$4.doInHibernate(HibernateObjectDao.java:317) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:150) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:170) at bucket.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:298) at bucket.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:283) at bucket.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:263) at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernatePageDao.getPage(HibernatePageDao.java:62) [ERROR] Tue Sep 21 22:09:53 CDT 2004 [com.opensymphony.webwork.dispatcher.ServletDispatcher] Could not execute action Throwable: org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: 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:2871) at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32) at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69) at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2588) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2454) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2256) at net.sf.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:1801) at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1567) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1532) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39) at bucket.core.persistence.hibernate.HibernateObjectDao$4.doInHibernate(HibernateObjectDao.java:317) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:150) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:170) at bucket.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:298) at bucket.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:283) at bucket.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:263) at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernatePageDao.getPage(HibernatePageDao.java:62) org.springframework.dao.CleanupFailureDataAccessException: Failed to flush session before close: Found shared references to a collection; nested exception is net.sf.hibernate.HibernateException: 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:2871) at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32) at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69) at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2588) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2454) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2256) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2235) at bucket.custom.FlushingSpringSessionInViewFilter.closeSession(FlushingSpringSessionInViewFilter.java:39) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:122) at bucket.custom.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:30) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73) at com.evermind[Orion/2.0.2 (build 11157)]._ha.doFilter(.:20) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.confluence.util.error.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:26) at com.evermind[Orion/2.0.2 (build 11157)]._ha.doFilter(.:20) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:36) at com.evermind[Orion/2.0.2 (build 11157)]._cub._pod(.:383) at com.evermind[Orion/2.0.2 (build 11157)]._cub._bmc(.:177) at com.evermind[Orion/2.0.2 (build 11157)]._ax._ltc(.:666) at com.evermind[Orion/2.0.2 (build 11157)]._ax._uab(.:191) at com.evermind[Orion/2.0.2 (build 11157)]._bf.run(.:62)

    Atlassian JIRA | 1 decade ago | Mike Cannon-Brookes
    net.sf.hibernate.HibernateException: Found shared references to a collection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate with relation one to many

    Google Groups | 1 decade ago | Pavel L.Yatsuk
    net.sf.hibernate.HibernateException: SQL update or deletion failed (row not foun d)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. net.sf.hibernate.HibernateException

      Found shared references to a collection

      at net.sf.hibernate.impl.SessionImpl.updateReachableCollection()
    2. net.sf.hibernate
      SessionImpl.flush
      1. net.sf.hibernate.impl.SessionImpl.updateReachableCollection(SessionImpl.java:2871)
      2. net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32)
      3. net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69)
      4. net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36)
      5. net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2588)
      6. net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2454)
      7. net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2256)
      8. net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2235)
      8 frames
    3. bucket.custom
      FlushingSpringSessionInViewFilter.closeSession
      1. bucket.custom.FlushingSpringSessionInViewFilter.closeSession(FlushingSpringSessionInViewFilter.java:39)
      1 frame
    4. Hibernate
      OpenSessionInViewFilter.doFilterInternal
      1. org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:122)
      1 frame
    5. bucket.custom
      FlushingSpringSessionInViewFilter.doFilterInternal
      1. bucket.custom.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:30)
      1 frame
    6. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73)
      1 frame
    7. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2 frames
    8. com.atlassian.util
      ProfilingFilter.doFilter
      1. com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132)
      1 frame
    9. com.atlassian.confluence
      ProfilingAndErrorFilter.doFilter
      1. com.atlassian.confluence.util.error.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:26)
      1 frame
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2 frames
    11. com.atlassian.core
      AbstractEncodingFilter.doFilter
      1. com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:36)
      1 frame
    12. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      4. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      6. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      8. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      10. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      11. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      12. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      13. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      14. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      15. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      16. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      17. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      18. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      18 frames
    13. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      1 frame
    14. Embedded GlassFish Web
      SocketConnection.runIt
      1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
      2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
      3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
      4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
      5. org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
      5 frames
    15. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      1 frame
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:534)
      1 frame