grouper-users - Exceptions caused by threading ?
Subject: Grouper Users - Open Discussion List
List archive
- From: Tom Zeller <>
- To:
- Subject: Exceptions caused by threading ?
- Date: Wed, 10 Oct 2007 08:00:46 -0500
Greetings,
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(HibernateMemberDAO.java:76)
at edu.internet2.middleware.grouper.MemberFinder.internal_findOrCreateBySub ject(MemberFinder.java:139)
at edu.internet2.middleware.grouper.MemberFinder.internal_findBySubject (MemberFinder.java:123)
at edu.internet2.middleware.grouper.MemberFinder.findBySubject (MemberFinder.java:53)
...
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,
Tom
- Exceptions caused by threading ?, Tom Zeller, 10/10/2007
- Re: [grouper-users] Exceptions caused by threading ?, GW Brown, Information Systems and Computing, 10/10/2007
- Re: [grouper-users] Exceptions caused by threading ?, Tom Barton, 10/10/2007
- Re: [grouper-users] Exceptions caused by threading ?, Tom Zeller, 10/10/2007
- Re: [grouper-users] Exceptions caused by threading ?, Tom Barton, 10/10/2007
- Re: [grouper-users] Exceptions caused by threading ?, GW Brown, Information Systems and Computing, 10/10/2007
Archive powered by MHonArc 2.6.16.