Skip to Content.
Sympa Menu

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

Subject: Grouper Users - Open Discussion List

List archive

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


Chronological Thread 
  • From: Jim Fox <>
  • To: "" <>
  • Subject: [grouper-users] unable to add group to group field (2.3)
  • Date: Thu, 3 Aug 2017 15:13:05 -0700 (PDT)
  • Ironport-phdr: 9a23:UNmeyBEGQVj/KGVLeKJR9Z1GYnF86YWxBRYc798ds5kLTJ7zoMSwAkXT6L1XgUPTWs2DsrQf2rqQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDmwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOTA5/m/Jl8J+j6xUrx29qBFk347YfJuYOOZicq7HY98XQ3dKUMZLVyxGB4Oxd48BD+sEPe1Fr4f9oFQPpga5CAmiA+PuxSRFh3Hs0q0h0+QhEAfG3AM8H9IJtnTYtsv6O7oPUe2syqTD0DvNb/RT2Tjn6YjIdAgsruqMXLJ3asXRy1cgGB/ZjlWLtYzqJS+V1uURvGSB9OpvT/yvhHA/pwFxozig3ckhiozXiYIQ0V/L6z95wJ01Jd25UE50fMSrEJxKuyGBLYR2XN0tT3lztyc6zb0Jopy7czYWx5Q73RLfcOaIc5aW7R/lSe2fIi94iWp4dL+wmxq+61Wsx+LiWsWuzlpHoCVInsPRun0P1hHf8tWLRuV+80u7xzqDywPe5vtYLUwulKfWLYMqzKQqmZoJq0vDGzf7mEXog6+ScUUp4u2o6uvgYrX7up+QKY55hhvlMqg0h8y+D/40PRYTUGiG4ei81bvj8lPlQLhSk/E7nbXVvIrHKckUuKK1GRFZ34gs5hqlEjur0tUVkWECLF1feRKHi4bpO0vJIPD9Ffq/jVOskThwyvHIJLLhGZXNLnnFkLfuYbZ97EhcxBAtwt9C+pJYEqsBL+7rWk/tqNzYCQc0MwOuw+bgFdV9zp0RWXiWDq+EK6Pdr0WI5vk0LumIZY8Voyr9K+M76/L0jH85n0Mdcrez3ZsRdn+4AupqL1+HbnXxn9dSWVsN60AxVuv3kFCYFCNIamypd6M6+jwhDo+6V8HOSp3nyOiOxiCmBpBMI31dB0qXOXbua4ieXfoQMmSfLtI3wRIeUr30aY4knT+ppEeuxb13BvXd4S0Zs53/094z6uHOw0JhvQdoBtiQhjneB1p/mXkFEmc7


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