I saw that this topic already discussed in the forum, but I didn't find any conclusion.
The problem:
We are having problems with a mysterious NoSuchElementException within the Hibernate library which only seems to occur when the system is under heavy load and even then only occasionally (once every 5 hours or so).
Stack Trace:
java.util.NoSuchElementException
at org.apache.commons.collections.SequencedHashMap$OrderedIterator.next(Unknown Source)
at org.hibernate.util.IdentityMap.entryArray(IdentityMap.java:195)
at org.hibernate.util.IdentityMap.concurrentEntries(IdentityMap.java:59)
at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:104)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:59)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
General Information:
Posted: Tue Sep 26, 2006 7:09 pm Post subject: Can you give me more detalis on the bug?
Thank you for your answer.
We run the jvm with the -server parametes, and still we got this exception (it happened in rare cases under heavy loaded).
Our application is multi threded .
The scenario is:
Web service (so this is new thread, each thread open a new session) get a Event (Event that dosnt exists in the Db, but have relation with another object that may exists in the cache)
in rare cases under heavy loaded i get the exception that mentioned above.
There is no chnace that another thread handle in this event , because this is new events.
link for the older Discussion-
http://forum.hibernate.org/viewtopic.ph ... on&start=0
Thank you.