-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate 2.1.6 + Jboss 3.2.5: AssertionFailure
PostPosted: Mon Nov 15, 2004 7:44 pm 
Newbie

Joined: Mon May 10, 2004 3:00 am
Posts: 3
Hi,

We've implemented page hierarchies in Confluence using Parent/Child relationships. When a user tries to add a child on an existing hierarchy 3 levels deep, we get an assertion failure. This _only_ occurs under Jboss. It works fine on all other major app servers (resin, tomcat, orion)

Hibernate version: 2.1.6

Full stack trace of any exception that occurs:

09:55:55,968 ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hibernate, but is more likely
due to unsafe use of the session)
net.sf.hibernate.AssertionFailure: collection was not processed by flush()
at net.sf.hibernate.impl.SessionImpl$CollectionEntry.postFlush(SessionImpl.java:367)
at net.sf.hibernate.impl.SessionImpl.postFlush(SessionImpl.java:2834)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2241)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:463)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManag
er.java:373)
at com.atlassian.confluence.util.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:167)
at

Also,

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$ValueIterator.next(HashMap.java:812)
at net.sf.hibernate.impl.Printer.toString(Printer.java:82)
at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2281)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2239)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:463)

Name and version of the database you are using:

HSQL db 1.7.1 (rrelevant as we can reproduce against all dbs)

Any hints on where to start investigating this would be appreciated.

Thanks,
Dave


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 6:36 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Your Session handling is most likely broken.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.