Skip to Content.
Sympa Menu

grouper-users - Exceptions caused by threading ?

Subject: Grouper Users - Open Discussion List

List archive

Exceptions caused by threading ?

Chronological Thread 
  • From: Tom Zeller <>
  • To:
  • Subject: Exceptions caused by threading ?
  • Date: Wed, 10 Oct 2007 08:00:46 -0500


Is it reasonable that multiple threads executing :

MemberFinder.findBySubject(s, SubjectFinder.findById("foo"));

may result in :

Exception in thread "Thread-17" edu.internet2.middleware.grouper.internal.dao.GrouperDAOException: Could not execute JDBC batch update at edu.internet2.middleware.grouper.internal.dao.hibernate.HibernateMemberD AO.create(
at edu.internet2.middleware.grouper.MemberFinder.internal_findOrCreateBySub ject(
at edu.internet2.middleware.grouper.MemberFinder.internal_findBySubject (
at edu.internet2.middleware.grouper.MemberFinder.findBySubject (
Caused by: net.sf.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into grouper_members (member_uuid, subject_id, subject_source, subject_type, id) values (5add0097-84b4-4c79-9e41-2588c622bd52, foo, umrsa, person, 0d61f1c2158669ff01158726d47a0013) was aborted. Call getNextException to see the cause.
JDBCExceptionReporter:58 - ERROR: duplicate key violates unique constraint "grouper_members_subject_id_key"
SessionImpl:2400 - Could not synchronize database state with session


I welcome advice regarding threads and Grouper.

Thank you,

Archive powered by MHonArc 2.6.16.

Top of Page