grouper-users - RE: [grouper-users] failing member.changeSubject()
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: Scott Koranda <>, grouper-users <>
- Subject: RE: [grouper-users] failing member.changeSubject()
- Date: Fri, 2 Nov 2018 16:21:49 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:4MhoQhCmWVIU+N3QEFlvUyQJP3N1i/DPJgcQr6AfoPdwSP37p8WwAkXT6L1XgUPTWs2DsrQY07WQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95RWSJfH428c4UBAekPPelaronyu1QAohSlCAmwHePj1iNEimPq0aEk1ekqDAHI3BYnH9ILqHnYotf7NacTUO+r1qnE1SjIYu1W2Tfn6YjIaR4tquyLULJ1bcXRyUkuFgLbgVWKsoHlPiiV2fgXv2iG9+pvS+Svi2g9pw5vvzev294hh4/UjYwbzVDE8D92wIczJdCgSU57Z8KkH4VKtyGcKYR2Xt0uT3t2tykn170Lv4OwcisSyJk/2RLTdv2Kf5KG7x79TuqdPDR1iG9/dL6hiBu+7VCsxvDyW8WoylpHqjdJnsPSunwQ0xHf8NWLR/l880u51zaAyQPe5v1BLE0xl6fWL4QuzaA1m5odr0vMAy/7lUDogKCNckgp++2l5P/lb7jiu5ORMZJ/hBvkPaQ0gMO/BPw1MggQUGif/uSxzKXt8FH+TrlWjvA6i7TUv5LEKcgCoa62GBFa3pwk6xaiEzepy9MYnWQBLF1YYh6Hl5LpO1bSIP/mEfi/n1WskDBtx/zcOb3hH4nNLnzEkLfmfrZx8VJTyA02zdxH5pJUDK8OIO7rV0PvqdDVDwU1PgKqz+r9Fdlw1Z4SVXiRDqKWLK/eqVqI6fguI+mIao8VojH9K/096v7rkXA5mV8cfKi30psNc324H+9mLFmDbXrxmtcOD2EKvgwkQOP0lVKCTCZfZ2yuUKIk+jE7FIWmAJ/MRoC3h7yBwT+7EYNMZmxfF1CMCmnnd5+fW/oXbCKSI9RhkiAfVbS/UYMh1BeutBPkxLp9KOrb5DEYuYz52Ndr+uLTiEJ6yTshNM+az33FbGZul2UETndix6N4u0V7xl6r3q1xgvgeHttWsbcBXR09KIbR1alnEN3oQUqVcc2OVU6rWJC7GjwrVfowxcMDeUBwB4/kgxzeiXmEGbgQwvarFY456OaU9HjrJt03gyLD36kwnVQ8aspUPiu7nqN58U7eC5OfwBbRrLqjaalJhH2Fz2yE12fb+RgACFQqA6zYQXASYFfXpt3l50TECqWjEqkjLhAflZyZMqUfbNrvgB0GX/rlNNnEK0OJ02arTVftpPuXaZbyPWAU3SHTEk8BxgUY/WeUOBIWBzyq5X/GATpoU1/jfhCk/A==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Can you please send the full stack from the logs? And if any adjacent log
lines are relevant, those too
Thanks
Chris
-----Original Message-----
From:
<>
On Behalf Of Scott Koranda
Sent: Friday, November 02, 2018 10:47 AM
To: grouper-users
<>
Subject: [grouper-users] failing member.changeSubject()
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
- [grouper-users] failing member.changeSubject(), Scott Koranda, 11/02/2018
- RE: [grouper-users] failing member.changeSubject(), Hyzer, Chris, 11/02/2018
Archive powered by MHonArc 2.6.19.