Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] unable to add group to group field (2.3)

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] unable to add group to group field (2.3)


Chronological Thread 
  • From: Shilen Patel <>
  • To: Jim Fox <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] unable to add group to group field (2.3)
  • Date: Thu, 3 Aug 2017 22:32:01 +0000
  • Accept-language: en-US
  • Authentication-results: oit.duke.edu; spf=none
  • Ironport-phdr: 9a23:JXv/yxY2ie9vnthwm8Ne7iD/LSx+4OfEezUN459isYplN5qZr8W5bnLW6fgltlLVR4KTs6sC0LuG9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6+bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA57m/Zl9BwgqxYrhKvpRNwzY/Ub52aO/dlZKzRYckXSHBdUstLSSBMBJ63YYsVD+oGOOZVt5Tzp1sPrRu6GwasAv7kxCVSiX/qw6I61/kqHAbd3AwgHtIOtGrbrNPuOagPTOC1z7fHwS/dYPxLxDfw8Y7FeQ0vr/GLWLJ/a8vRyU83GgzejlSQrpfqPzGL2esRr2ib9PZgWvizi24mtw59uCOvyd0yiobXno4VylHE+j53zYYwO9K4TVV0bsC+EJtLtyGaNpN2Td44TGFvoio60acJuYClcyQS05smxxnfZOeFc4eW/h3jSPydISxii3J7Zr2ygQu5/0u4yuDkS8W50EhGojBLn9XWq3wA1Bje5tKZRvdj/EqtwSuD2g7S5+1eIU05lLDXJ4M/zrIqi5Yev1rPEjfolEnrjaKabEsp9vay5+j6YbjquoWQOo9ohgz4L68ggNawAf4iPQgLR2Wb+fqz1Lnk/UDhRbVFlPw2kq3AvJDVK8UXv7C1DxJP3oYk6ha/Ey2q38kFnXkEMl1JYgyIgJX0O13WIfD4C+mwg0i0nTt2x/3KIKftD5vXInTek7rseaxx51BCxAcx1dxf4ohbCrAFIPL9QE/xs9nYAwciMwy0wubnDMty1oUFVG2SH6+ZM73dvUWW6e0yPumAfJUVtyrlK/g5+/7uimc0mVAHfamuwJsXcG63Hu5/L0WEenrjnM0BEXwRswo6Tezqk0GCUSVNa3qoXqI84C07B5y8DYfFWI+tnKKN0D2lEZJLe2AVQmyLRFXpcs2qXOdEPCyVMud+mycEVL6uV4gnkxyiqVmp5aBgK7/v+iwcuJSr7NFp6umbwQoy9Dh5CeyRzmKACWx4gzVbFHcNwKljrBklmR+42q9ijqkAGA==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Looks like you may have duplicates in your group set table.  I don't think bad membership finder catches that right now.  I can add it there, but you can verify by running this I think:

select owner_group_id, member_group_id, field_id from grouper_group_set where depth='0' and owner_group_id is not null and member_group_id is not null and field_id is not null group by owner_group_id, member_group_id, field_id having count(*) > 1

Thanks!

- Shilen

On 8/3/17, 6:13 PM, "Jim Fox" <> wrote:


This is experimenting with grouper api 2.3

I am trying to add a group as a field member (not membership).  I get an
exception: (sorry for the messay post)

I am able to add non-group subjects.

Something to do with group sets?

Jim

------------------------------------------------------
Aug 03, 2017 2:59:11 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [gws] in context with path [/gws_grouper] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: edu.internet2.middleware.grouper.internal.dao.GrouperDAOException: Problem in HibernateSession: HibernateSession (6c4c2a54): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5bd96f94),
Exception in uniqueResult: (class edu.internet2.middleware.grouper.group.GroupSet), ByHqlStatic, query: 'select gs from GroupSet as gs where gs.ownerGroupId = :id and memberGroupId = :id and fieldId = :field and depth='0'', cacheable: true, cacheRegion: edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupSetDAO.FindSelfGroup, tx type: null, tx type: nullBind var[0]: 'Param (class java.lang.String): 'id'->'881fef48f9e32bedf88b8fe5d96ed250'Bind var[1]: 'Param (class java.lang.String): 'field'->'0094f3965ca2419286d3c4c3c9a1fb4e', ,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@44744e2e,
Problem in HibernateSession: HibernateSession (6e7b95d1): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5bd96f94),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null,
, group name: u:fox:spud97, subject: Subject groupName: u:fox:spud97, sourceId: g:gsa, field: authorized-senders,
Problem in HibernateSession: HibernateSession (29610a0e): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (5bd96f94)] 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:348)
         at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
         at edu.internet2.middleware.grouper.hibernate.ByHqlStatic.uniqueResult(ByHqlStatic.java:339)
         at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupSetDAO.findSelfGroup(Hib3GroupSetDAO.java:356)
         at edu.internet2.middleware.grouper.Membership.processPostMembershipSaveOrUpdate(Membership.java:2135)
         at edu.internet2.middleware.grouper.Membership.onPostSave(Membership.java:1997)
         at edu.internet2.middleware.grouper.hibernate.ByObject.save(ByObject.java:224)
         at edu.internet2.middleware.grouper.hibernate.ByObjectStatic$7.callback(ByObjectStatic.java:494)
         at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
         at edu.internet2.middleware.grouper.hibernate.ByObjectStatic.save(ByObjectStatic.java:481)
         at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.save(Hib3MembershipDAO.java:2053)
         at edu.internet2.middleware.grouper.Membership.internal_addImmediateMembership(Membership.java:1246)
         at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1392)
         at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
         at edu.internet2.middleware.grouper.Group.internal_addMember(Group.java:1364)
         at edu.internet2.middleware.grouper.Group.addMember(Group.java:938)
         at edu.internet2.middleware.grouper.Group.addMember(Group.java:899)
         at edu.washington.gws.group.grouper.GrouperGroupFactory.updateFieldMembers(GrouperGroupFactory.java:848)
   ...










Archive powered by MHonArc 2.6.19.

Top of Page