Skip to Content.
Sympa Menu

grouper-users - [grouper-users] failing member.changeSubject()

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] failing member.changeSubject()


Chronological Thread 
  • From: Scott Koranda <>
  • To: grouper-users <>
  • Subject: [grouper-users] failing member.changeSubject()
  • Date: Fri, 2 Nov 2018 09:46:50 -0500
  • Ironport-phdr: 9a23:0A3VChOCKuZ/9kp6PEYl6mtUPXoX/o7sNwtQ0KIMzox0IvjzrarrMEGX3/hxlliBBdydt6obzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlKiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkJNzA37nzZhM9/g61HvR2uqQdyw5LIbIyPKPZyYrnQcc0cSGFcXshRTStBAoakYoUSE+UBOvpYr5XgrFULqhu+HxOjBOXyxTBSm3T72rY60+cmEQHcxgMgGc8Bv27PodX6MacdS+G1zK3SwTrfaPNW3C7w5Y7VeR4vpvGMWKh/ccvXyUQ3FgPFiEmQppL/PzOTyOsNr3aX4/B+Wu2ylm4qrRx6rDu3xso0lIXEh54Zx1LB+CV3w4s6PsG0RUt0bNOnEZZduCSXO5VqTs4nRmxnpSg3x7MetZKmYCQHx44rywDRZvCaaYSE/BLuWeaLLTtli39pZLSyjAuo/0e60O3zTMy03U5KriVbltnMsWgA1xnJ5ciGTvtx50ah2TGS2wzK5eBLPE45mKTBJ54uxb4wkZUTsUDdESPshEr2i6qWel0l+uiu9evnfq3rqoGdOoNoiAzzN6oul8+kDugkNwUDUGuW9OWz2bDm40H1XLBHg/grnaTXvp3WPcEbqbS4Aw9R3IYj8RG/DzK+3dQDnnkHK0hFdwiBj4f0IV7DO//4DfKljFStlDdn3ezJPrrkApnVNHjMjK/hfaph605b0Aczwspf55VJCrEZPv3zQFb9tMHDDhAnKQy02P3qCNF81oMFRWKPGbGVPLnTsV+O+uIgPfOMZIkLtzbhNfQp/eDhgmIkmQxVQa780oEQdWi1BLF7OEiDejK4jc0GDH8HpE8jV+Hwk3WDVyJefXC/Q/h66z0mXtGIF4DGE7umh6CdlAS8BJRQamkOXkuPFm3hcYmNc/gJYSOWZMRml2pXBvCaV4Y92ET250fBwL19I7+M9w==

Hi,

I have a call to member.changeSubject(newSubject), made through GSH,
that is failing with

ERROR edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
Problem in HibernateSession: HibernateSession (5caa30c1): notNew,
notReadonly, READ_WRITE_NEW, activeTransaction, session (41d4e24f),
Exception in uniqueResult: (class
edu.internet2.middleware.grouper.Member), ByHqlStatic, query: 'from
Member as m where m.uuid = :uuid', cacheable: false, cacheRegion: null,
tx type: null, tx type: nullBind var[0]: 'Param (class
java.lang.String): 'uuid'->'7a81e2f600974df691a6d020bdde9b02', ,
Exception in delete: edu.internet2.middleware.grouper.Membership,
edu.internet2.middleware.grouper.hibernate.ByObject@2ecc847e,
Problem in HibernateSession: HibernateSession (3ee6b17): notNew,
notReadonly, READ_WRITE_NEW, activeTransaction, session (41d4e24f),
Exception in delete: edu.internet2.middleware.grouper.Membership,
ByObjectStatic, query: ', cacheable: null, cacheRegion: null,
entityName: ImmediateMembershipEntry, tx type: null,
, this subject: null, new subject: Subject id: federated-user-451,
sourceId: comanage_registry_ldap, deleteOldMember: false, report? false,
Problem in HibernateSession: HibernateSession (52e6a54a): new,
notReadonly, READ_WRITE_NEW, notActiveTransaction, session (41d4e24f)

I also tried

member.changeSubject(newSubject,!MEMBER_DELETE_OLD_MEMBER)

as suggested on this wiki page:

https://spaces.at.internet2.edu/pages/viewpage.action?pageId=14517859

but it also fails.

If I instead run

member.changeSubjectReport(newSubject,Member.DELETE_OLD_MEMBER);

I can see a report of the intended changes. There are many (over 1500).
They are in categories

CHANGE group
CHANGE membership
CHANGE stem
CHANGE groupSet

Do I need to somehow convert those report lines into individual SQL
calls and try to execute them?

If so, what algorithm would I use to create the SQL? Is there a simple
way to translate from the output of changeSubjectReport() to SQL?

Thanks,

Scott K



Archive powered by MHonArc 2.6.19.

Top of Page