Skip to Content.
Sympa Menu

grouper-users - problem and solution of adding a mass of members using grouper-1.1 API

Subject: Grouper Users - Open Discussion List

List archive

problem and solution of adding a mass of members using grouper-1.1 API

Chronological Thread 
  • From: "冯娟" <>
  • To:
  • Subject: problem and solution of adding a mass of members using grouper-1.1 API
  • Date: Thu, 26 Apr 2007 10:28:44 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=g/B1N8nAds2XmkSVq8yHm9t5v4fDRfq7Z6U6fjen71nmXUhEep4I1629mgR1E/Sv6IwsvNy0mAmFo9V04yK5RV0nx9Aj9uutKhf0xtu8iybu0UaLwa/SWbo28CN2UjEzx8+TmTKL7MWsY67UuGrU5HlLOmPUx5fzPbQGet7M9m8=

hello everyone
      I have some experiences to share with you, I hope it is helpful to you.

      When I added members to a group, I found that when a add several members, it is ok. But when I add a mass of person, it always throw an exception:
Caused by: net.sf.hibernate.HibernateException : hibernate commit error: Row was
updated or deleted by another transaction (or unsaved-value mapping was incorrec
t) for edu.internet2.middleware.grouper.Attribute instance with identifier: 4028
        at edu.internet2.middleware.grouper.HibernateHelper.saveAndDelete(Hibern
        ... 25 more
Caused by: net.sf.hibernate.StaleObjectStateException : Row was updated or delete
d by another transaction (or unsaved-value mapping was incorrect) for edu.intern
et2.middleware.grouper.Attribute instance with identifier: 4028728111b175270111b
        at net.sf.hibernate.persister.AbstractEntityPersister.check(AbstractEnti
        at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
        at net.sf.hibernate.persister.EntityPersister.update (EntityPersister.jav
        at net.sf.hibernate.impl.ScheduledUpdate.execute (
        at net.sf.hibernate.impl.SessionImpl.execute(
        at net.sf.hibernate.impl.SessionImpl.executeAll (
        at net.sf.hibernate.impl.SessionImpl.execute (
        at net.sf.hibernate.impl.SessionImpl.flush(
        at net.sf.hibernate.transaction.JDBCTransaction.commit (JDBCTransaction.j
        at edu.internet2.middleware.grouper.HibernateHelper.saveAndDelete (Hibern
        ... 25 more


 I noticed that in, there is:
# NOTE: If using Oracle you will need to disable preparared statement
#       caching by setting:
# = 0
so I did and it is resolved.

Archive powered by MHonArc 2.6.16.

Top of Page