1. ConcurrentModificationException - any ideas? forum.hibernate.orgIt normally happens in two cases: 1. multiple threads accessing/mutating on the same collection 2. mutating a list while iteratin a list. #1 is probably not the case here, since it looks like it is a problem in a internal list in configuration. #2 is unlikely - but probably the reason...but we can't help unless you e.g. show the mapping, tell ... |
2. ConcurrentModificationException occasionally pops up forum.hibernate.orgWe have found that Hibernate crashes when its logging level is set to debug and we create an object with a bunch of empty collections. Changing the logging level to info avoids the crash. Here are the details: We are trying to create a data model we designed yesterday. The central object is a Campaign object which has four collections: a ... |
3. ConcurrentModificationException forum.hibernate.org |
4. ConcurrentModificationException During Iteration Of Set forum.hibernate.orgpublic void testStuff() throws Exception { HashSet list = new HashSet(); list.add( new Object() ); list.add( new Object() ); Iterator iter = list.iterator(); while ( iter.hasNext() ) list.remove( ... |
5. ConcurrentModificationException & net.sf.hibernate.Asser forum.hibernate.orgHi all, I'm working on JOnAS and Tomcat and a workflow engine called Shark, I use Hibernate 2.1, PostgreSQL 7.3 and encounter a strange problem. I think that is possible it comes from me, but I can't figure out where. 1)First thing is : 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:2228) at net.sf.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:1732) at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1499) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1464) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39) ... |
6. ConcurrentModificationException ? forum.hibernate.org |
7. ConcurrentModificationException when iterating forum.hibernate.orgI am just iterating over the collection as returned. This is the only active thread. And unless hibernate is filling the collection in its own internal thread, then I don't know what is causing the concurrent access. I'm going to dig further into the code. The DAO class was written by another team member. Thanks, Patrick |
8. ConcurrentModificationException and onDelete(...) forum.hibernate.org |
9. ConcurrentModificationException when iterating over sets forum.hibernate.orgNewbie Joined: Fri Oct 01, 2004 1:29 pm Posts: 5 Location: Brasil My n-tier webapp uses AppFuse 1.7 as a base for development. It uses Spring Framework (Spring MVC too) and Hibernate (v 2.1.7c) integrated. I'm using OpenSessionInView pattern, and my tiers are: Model (Pojo's) -> DAOs -> Services/Managers -> Controllers -> Views. So, in the DAOs layer, I get one ... |
10. java.util.ConcurrentModificationException forum.hibernate.orgHi, I am using Hibernate 3.0.5. The code below is used to detach the style from logged users' group. Group group = (Group)sess.get(Group.class, loggedUser.getGroup().getId()); Set |
17. Hibernate threw "ConcurrentModificationException" forum.hibernate.orgI was using the Hibernate Entity Manager. I built a network model of objects from the annotated classes as well as the non-annotated classes. When I was done with the internal data object creation, I tried to save objects to the MySQL database. The first time I called a method in the Persistent class, Hibernate threw the "ConcurrentModificationException:" entityManagerFactory = Persistence.createEntityManagerFactory("manager"); ... |
18. ConcurrentModificationException results in infinite loop forum.hibernate.orgHibernate version: 3.2.5.ga Full stack trace of any exception that occurs: 28/11 20:16:50 WARN AbstractBatcher [resin-tcp-connection-myserver:6001-15] Could not close a JDBC result set java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841) at java.util.HashMap$KeyIterator.next(HashMap.java:877) at org.hibernate.jdbc.AbstractBatcher.closeStatements(AbstractBatcher.java:314) at org.hibernate.jdbc.ConnectionManager.cleanup(ConnectionManager.java:382) at org.hibernate.jdbc.ConnectionManager.close(ConnectionManager.java:324) at org.hibernate.impl.SessionImpl.close(SessionImpl.java:298) at org.springframework.orm.hibernate3.SessionFactoryUtils.closeSession(SessionFactoryUtils.java:774) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.closeSession(OpenSessionInViewFilter.java:252) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:183) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:188) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:419) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492) at com.caucho.util.ThreadPool.run(ThreadPool.java:425) at ... |
19. java.util.ConcurrentModificationException forum.hibernate.orgI have three tables: A: id (PK),name B: id , sno, des (id and sno are composite key; id is the foreign key references A(id)) C: id , sno ,code ,des (id, sno,code are composite key; id and sno are the foreign key references B(id,sno)) How should i set the annotation java class about the three table.Now i use the A ... |