grouper-users - [grouper-users] exception in group deleteMember
Subject: Grouper Users - Open Discussion List
List archive
- From: Jim Fox <>
- To: "" <>
- Subject: [grouper-users] exception in group deleteMember
- Date: Mon, 16 Jul 2018 10:06:25 -0700 (PDT)
- Ironport-phdr: 9a23:DQbDkhNZI429Awq8yRsl6mtUPXoX/o7sNwtQ0KIMzox0Lfn9rarrMEGX3/hxlliBBdydt6oazbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlJiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkJNzA37nzZhM9+g61UvB2svAB/z5LObY2JKPZzZL3RcNUHTmRBRMZRUClBD5u4YYsOCuoKIOZWr47yplATqha+Cw6sBez0xz5GnHD2xq060+UnEQHJwAwgGNQOvG7Ko9roKacfSOa4x7TLwzXbd/5axDjw5JTSfhw8rvyAQ6h8fdTfxEQgDQ/Jk1edpIz9Mz+I2ekBr3KX4/dvWO6xkWIrtQ98rze1yssxi4TEiIQYwU3e+ypj2oY6P9i4RVZ7YdG6FJtQsDmXN455Q8MlXmFopDg2x70ctZ6gZiQK1ZomywTBZPOaboiE+hPjVOCPLjdknH9pZb2yiwqo/US9xeDwSNO43EhEoydKiNXAq3IA2hzL5siCUPR9/0Oh2TiV1wDU7+FJOU40la3UKpM6zL8/jIETsUTCHi/wl0X2kKiWdkM+9ue29uvnf63qpoWAOI9slgH+LqMul9SwAeQiNQgOQnCb9vqm1LH64E35W6tFjuctkqTCtJDaJN8bprKiAwNLyIoj6hC/Dyu439QCm3kIMk5FdAydg4f3Jl7OPaOwMfDqyVu2lypzyuqDI6bsGI7lL37fna3ncKonrUNQ1UB7md9F4I9MB6tEPen+QFTZtdrEAwU/PhDuhevrFYMu+JkZXDetA6rRHqTC+QuG4fIHPOCXZI4Ttyr6Lb4o6+O43ixxokMUYaT8hchfU3u/BPkze0g=
( This is grouper 2.3 with patches to about #100 )
I am trying to delete a member from a field and getting an "Exception in uniqueResult:"
-------------------------------------------------------------
The call is (Group).deleteMember( (Member), (Field) )
[ Adds always work, it's just deletes that fail ]
SEVERE: Servlet.service() for servlet [gws] in context with path
[/gws_grouper] threw exception [Request processing failed; nested exception
is edu.internet2.middleware.grouper.exception.MemberDeleteException: Problem
in HibernateSession: HibernateSession (72961acc): notNew, notReadonly,
READ_WRITE_NEW, activeTransaction, session (531fd45e),
Exception in uniqueResult: (class [Ljava.lang.Object;), ByHqlStatic, query: 'select
ms, m from MembershipEntry as ms, Member as m where ms.ownerGroupId = :owner
and ms.memberUuid = :member and ms.fieldId = :fuuid and
ms.memberUuid = m.uuid and ms.type = 'immediate' ', cacheable: false, cacheRegion:
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO, tx type: null,
tx type: nullBind var[0]: 'Param (class java.lang.String):
'owner'->'881fef48f9e32bedf88b8fe5d96ed250', Bind var[1]: 'Param (class
java.lang.String): 'member'->'737b30aff49747f480806371ca041e7d'Bind var[2]: 'Param
(class java.lang.String): 'fuuid'->'0094f3965ca2419286d3c4c3c9a1fb4e', , , group
name: u:fox:spud97, subject: Subject id: da74fce621d011d4abd00004ac494ffe, sourceId:
uwpds, field: authorized-senders,
Problem in HibernateSession: HibernateSession (8dd69ee): new, notReadonly,
READ_WRITE_NEW, notActiveTransaction, session (531fd45e)] with root cause
org.hibernate.NonUniqueResultException: query did not return a unique result:
2
at
org.hibernate.internal.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:971)
at
org.hibernate.internal.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:960)
at
edu.internet2.middleware.grouper.hibernate.ByHql.uniqueResult(ByHql.java:282)
at
edu.internet2.middleware.grouper.hibernate.ByHqlStatic$1.callback(ByHqlStatic.java:365)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:701)
at
edu.internet2.middleware.grouper.hibernate.ByHqlStatic.uniqueResult(ByHqlStatic.java:356)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.findByGroupOwnerAndMemberAndFieldAndType(Hib3MembershipDAO.java:1537)
at
edu.internet2.middleware.grouper.Membership.internal_delImmediateMembership(Membership.java:1337)
at edu.internet2.middleware.grouper.Group$9.callback(Group.java:2403)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:701)
at
edu.internet2.middleware.grouper.Group.deleteMember(Group.java:2378)
at
edu.internet2.middleware.grouper.Group.deleteMember(Group.java:2191)
at
edu.internet2.middleware.grouper.Group.deleteMember(Group.java:2225)
at
edu.washington.gws.group.grouper.GrouperGroupFactory.updateFieldMembers(GrouperGroupFactory.java:906)
--------------------------------------------------------------------------------
Everything in the query exists, and I've verified the member being deleted is
a row of grouper_memberships for the field.
What's the not unique query looking for??
Thanks,
Jim
- [grouper-users] exception in group deleteMember, Jim Fox, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Jim Fox, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Shilen Patel, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Jim Fox, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Shilen Patel, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Jim Fox, 07/17/2018
- Re: [grouper-users] exception in group deleteMember, Shilen Patel, 07/17/2018
- Re: [grouper-users] exception in group deleteMember, Jim Fox, 07/17/2018
- Re: [grouper-users] exception in group deleteMember, Shilen Patel, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Jim Fox, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Shilen Patel, 07/16/2018
- Re: [grouper-users] exception in group deleteMember, Jim Fox, 07/16/2018
Archive powered by MHonArc 2.6.19.