net.sf.hibernate.HibernateException: SQL update or deletion failed (row not found)

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 have two class: Company & Person, they're Parent-children relation-ship. the 2 classes' id are all "assigned", beacause in an other true development env., I had to use programatic "assigned" id. When I run the test code, the exception thrown. package h; import java.util.ArrayList; import java.util.Date; public class Company { static int _lastID = 100; String id; public void setId(String value) { this.id=value; } public String getId() { return id; } String name; public void setName(String value) { this.name=value; } public String getName() { return name; } ArrayList partners = new ArrayList(); public String[] getMyPartners(){ return (String[])partners.toArray(new String[partners.size()]); } public void setMyPartners(String[] parts){ partners.clear(); for(int i=0; i<parts.length; i++){ partners.add(parts[i]); } } java.util.Date createdDate; public void setCreatedDate(Date d ){ this.createdDate = d; } public Date getCreatedDate(){ return this.createdDate; } java.util.List employees=new java.util.ArrayList(); public void setEmployees(java.util.List value) { this.employees=value; } public java.util.List getEmployees() { return employees; } public void addEmployee(h.Person value) { employees.add(value); } public void removeEmployee(h.Person value) { employees.remove(value); } public void clearEmployees() { employees.clear(); } private boolean _registered; public boolean getRegistered(){ return this._registered; } public void setRegistered(boolean val){ this._registered = val; } } Company.hbm.xml: <?xml version="1.0" encoding="GB2312"?> <!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <hibernate-mapping> <class name="h.Company"> <id name = "id" unsaved-value = "null"> <generator class="assigned"/> </id> <property name="name"/> <property name="myPartners" type="serializable" /> <property name="registered" type="boolean"/> <bag name="employees" cascade="all"> <key column="company_id"/> <one-to-many class="h.Person"/> </bag> </class> </hibernate-mapping> package h; import java.io.Serializable; public class Person implements Serializable{ public static int _lastID = 1000; String name; /** Sets the value of field name. @param name value of field name */ public void setName(String value) { this.name=value; } /** Gets the value of field name. @return value of field name */ public String getName() { return name; } String address; /** Sets the value of field address. @param address value of field address */ public void setAddress(String value) { this.address=value; } /** Gets the value of field address. @return value of field address */ public String getAddress() { return address; } String id ; /** Sets the value of field id. @param id value of field id */ public void setId(String value) { this.id=value; } /** Gets the value of field id. @return value of field id */ public String getId() { return id; } } Person.hbm.xml: <?xml version="1.0" encoding="GB2312"?> <!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <hibernate-mapping> <class name="h.Person"> <id name = "id" unsaved-value = "null"> <generator class="assigned"/> </id> <property name="name"/> <property name="address"/> </class> </hibernate-mapping> the Test code is: package h; import net.sf.hibernate.Session; import net.sf.hibernate.Transaction; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.Query; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.tool.hbm2ddl.SchemaExport; import java.util.List; import java.util.Iterator; class TestCompany { private static SessionFactory sessions; public static void main(String[] args) throws Exception { String[] partners = { "IBM", "Microsoft", "Lenovo", "Apple" }; Configuration conf = new Configuration() .addClass(Person.class) .addClass(Company.class); SchemaExport dbExport = new SchemaExport(conf); dbExport.setOutputFile("sql.txt"); dbExport.create(true, true); sessions = conf.buildSessionFactory(); //start...... Session s = sessions.openSession(); Transaction t = s.beginTransaction(); Company c = new Company(); c.setName("UFSoft Company Ltd."); c.setMyPartners(partners); c.setRegistered(true); Person p1 = new Person(); p1.setId(String.valueOf(Person._lastID++)); p1.setName("Liuto"); p1.setAddress("Beijing Haidian"); Person p2 = new Person(); p2.setId(String.valueOf(Person._lastID++)); p2.setName("sun"); p2.setAddress("beijing shangdi"); c.addEmployee(p1); c.addEmployee(p2); c.setId(String.valueOf(Company._lastID++)); //c.setId(Company._lastID++); s.save(c); s.flush(); t.commit(); s.close(); sessions.close(); } } when flush(), the bug reported: net.sf.hibernate.HibernateException: SQL update or deletion failed (row not found) at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:25) at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:611) at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:580) at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:27) at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2073) at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2046) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:1989) at h.TestCompany.main(TestCompany.java:115)
    via by neil yang,
  • I have two class: Company & Person, they're Parent-children relation-ship. the 2 classes' id are all "assigned", beacause in an other true development env., I had to use programatic "assigned" id. When I run the test code, the exception thrown. package h; import java.util.ArrayList; import java.util.Date; public class Company { static int _lastID = 100; String id; public void setId(String value) { this.id=value; } public String getId() { return id; } String name; public void setName(String value) { this.name=value; } public String getName() { return name; } ArrayList partners = new ArrayList(); public String[] getMyPartners(){ return (String[])partners.toArray(new String[partners.size()]); } public void setMyPartners(String[] parts){ partners.clear(); for(int i=0; i<parts.length; i++){ partners.add(parts[i]); } } java.util.Date createdDate; public void setCreatedDate(Date d ){ this.createdDate = d; } public Date getCreatedDate(){ return this.createdDate; } java.util.List employees=new java.util.ArrayList(); public void setEmployees(java.util.List value) { this.employees=value; } public java.util.List getEmployees() { return employees; } public void addEmployee(h.Person value) { employees.add(value); } public void removeEmployee(h.Person value) { employees.remove(value); } public void clearEmployees() { employees.clear(); } private boolean _registered; public boolean getRegistered(){ return this._registered; } public void setRegistered(boolean val){ this._registered = val; } } Company.hbm.xml: <?xml version="1.0" encoding="GB2312"?> <!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <hibernate-mapping> <class name="h.Company"> <id name = "id" unsaved-value = "null"> <generator class="assigned"/> </id> <property name="name"/> <property name="myPartners" type="serializable" /> <property name="registered" type="boolean"/> <bag name="employees" cascade="all"> <key column="company_id"/> <one-to-many class="h.Person"/> </bag> </class> </hibernate-mapping> package h; import java.io.Serializable; public class Person implements Serializable{ public static int _lastID = 1000; String name; /** Sets the value of field name. @param name value of field name */ public void setName(String value) { this.name=value; } /** Gets the value of field name. @return value of field name */ public String getName() { return name; } String address; /** Sets the value of field address. @param address value of field address */ public void setAddress(String value) { this.address=value; } /** Gets the value of field address. @return value of field address */ public String getAddress() { return address; } String id ; /** Sets the value of field id. @param id value of field id */ public void setId(String value) { this.id=value; } /** Gets the value of field id. @return value of field id */ public String getId() { return id; } } Person.hbm.xml: <?xml version="1.0" encoding="GB2312"?> <!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <hibernate-mapping> <class name="h.Person"> <id name = "id" unsaved-value = "null"> <generator class="assigned"/> </id> <property name="name"/> <property name="address"/> </class> </hibernate-mapping> the Test code is: package h; import net.sf.hibernate.Session; import net.sf.hibernate.Transaction; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.Query; import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.tool.hbm2ddl.SchemaExport; import java.util.List; import java.util.Iterator; class TestCompany { private static SessionFactory sessions; public static void main(String[] args) throws Exception { String[] partners = { "IBM", "Microsoft", "Lenovo", "Apple" }; Configuration conf = new Configuration() .addClass(Person.class) .addClass(Company.class); SchemaExport dbExport = new SchemaExport(conf); dbExport.setOutputFile("sql.txt"); dbExport.create(true, true); sessions = conf.buildSessionFactory(); //start...... Session s = sessions.openSession(); Transaction t = s.beginTransaction(); Company c = new Company(); c.setName("UFSoft Company Ltd."); c.setMyPartners(partners); c.setRegistered(true); Person p1 = new Person(); p1.setId(String.valueOf(Person._lastID++)); p1.setName("Liuto"); p1.setAddress("Beijing Haidian"); Person p2 = new Person(); p2.setId(String.valueOf(Person._lastID++)); p2.setName("sun"); p2.setAddress("beijing shangdi"); c.addEmployee(p1); c.addEmployee(p2); c.setId(String.valueOf(Company._lastID++)); //c.setId(Company._lastID++); s.save(c); s.flush(); t.commit(); s.close(); sessions.close(); } } when flush(), the bug reported: net.sf.hibernate.HibernateException: SQL update or deletion failed (row not found) at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:25) at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:611) at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:580) at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:27) at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2073) at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2046) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:1989) at h.TestCompany.main(TestCompany.java:115)
    via by neil yang,
  • Hibernate with relation one to many
    via by Pavel L.Yatsuk,
  • error from Hibernate support in Spring or
    via springframework by *anonymous
    ,
  • 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)
    via by Mike Cannon-Brookes,
  • 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.
    via by Sergey Zhukov,
  • 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.
    via by Sergey Zhukov,
    • net.sf.hibernate.HibernateException: SQL update or deletion failed (row not found) at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:25) at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:611) at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:580) at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:27) at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2073) at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2046) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:1989) at h.TestCompany.main(TestCompany.java:115)
    No Bugmate found.