grouper-users - Re: [grouper-users] LDAP Group of Groups loader job
Subject: Grouper Users - Open Discussion List
List archive
- From: Sam Erie <>
- To:
- Subject: Re: [grouper-users] LDAP Group of Groups loader job
- Date: Tue, 19 Jun 2018 14:22:26 -0800
- Ironport-phdr: 9a23:MT7BBxy2NxET2ZLXCy+O+j09IxM/srCxBDY+r6Qd2uIXIJqq85mqBkHD//Il1AaPAd2Graocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HTbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRDqhicJNzA3/mLKhMJukK1WuwiuqwBlzoPOfI2ZKPhzc6XAdt0aX2pBWcNRWjRcDIymaosEEuUPPfxZr4bjulADqgC+Che2BOPu1DBFnWX53akg3OQ6EgHJxhYsEMwTv3TJtdj4MroZX+6yzKnN1zrDbvVW1C/m54nIdRAuuvOMUqxsfsrN0kkvCxnKjkmRqYP5JT+Vzf4Cs3aF4OZ4WuKvkWknqxxpojex3McgkJPGhpoNylzc6SV5wJw1KsOiR0Fme9KkCoZQtyeCO4t2Q8MtWG9luCMkxb0DopG0YjIKyI8nxx7ec/yIbpKH4hX5WOaKOzh4mmxqdKqwhxao9kig1/X8Wdeu0FlWtCVFlt3MuWoW2BzX9MeLUOdy8V2l2TaLzwzc8eFFIUcvmqrZNZEu3qIwmoAIsUvZAC/5hl36jKGLdkU45+io8froYqn8qZ+HNI94kBv+MrkomsG5HO82MRAOUnCF9em9yLHu/0j0QLtJg/ItjqXUtZ/XKdgHqqO3BgJazpov5he6AjqjztgUg2MIIVRYcxydlYfpIUvBIPXgAPe/nVuslDBryujDPrL7A5XNKmHPkLDgfbph8kJdxxQ/wc5F6J5OBbEBJ/XzWkD1tNPGFBM2Lwu0w+P/BNV80IMRR36PD7eHPK7TrVOF5OciI+ePaYAOpDrwLvco6+LygXI3nFISYbWl0JoSZX29APhqPV+WbWLpgtgbEGcKugQ+TPbtiF2HSTNTfGi9X7g95j4lE4+pF4PDSZq2gLyCxii3BINZaX1bClyUC3fna52EW+sQaCKVOsJhnSYEVb+8S485yx6urhb2y6d8LuXK4C0Yronu1Nx05+3IiREy7iJ4A96c02GLU2F7gHkIRzko06Bjv0Bx0EmM3rVlg68QKdsG6OlOTx83L9vB1OFgEPjzXB7MZNGEVAzgT9m7Uh8rSddk+NYLK2tnGtjq2gvOxSunK7YRnqeIDdo5/r+KjCu5HNp013uTjPpptFIhWMYabWA=
somehow copy and paste messed up gmail and cut off the bottom of my post.
I'm not sure if uuid is set by addGroup() or is generated. If it is generated I'm not sure how I would find uuid by member dn in the loader. Any advise is appreciated.
Here is the fill output from the failed loader:
groovy:000> findSubject('ua-oit-ca-dept','group','ADgroups');
===> Subject id: ua-oit-ca-dept, sourceId: ADgroups
groovy:000> loaderRunOneJob(lg);
java.lang.RuntimeException: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@2caf2795,
Problem in HibernateSession: HibernateSession (6f75330): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5c2a8b5a),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null,
, group name: Statewide:UA_Users, subject: Subject id: ua-oit-ca-dept, sourceId: ADgroups, field: members,
Problem in HibernateSession: HibernateSession (383625e8): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (5c2a8b5a)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1412)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at edu.internet2.middleware.grouper.Group.internal_addMember(Group.java:1366)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:940)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:859)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneMemberAddMemberLogic(GrouperLoaderType.java:4747)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$400(GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3149)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3141)
at edu.internet2.middleware.grouper.util.GrouperCallable$1.callback(GrouperCallable.java:191)
at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974)
at edu.internet2.middleware.grouper.util.GrouperCallable.callLogicWithSessionIfExists(GrouperCallable.java:188)
at edu.internet2.middleware.grouper.util.GrouperCallable.call(GrouperCallable.java:154)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@2caf2795,
Problem in HibernateSession: HibernateSession (6f75330): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5c2a8b5a),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1666)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1634)
at edu.internet2.middleware.grouper.Membership.processPostMembershipSaveOrUpdate(Membership.java:2132)
at edu.internet2.middleware.grouper.Membership.onPostSave(Membership.java:2008)
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:2095)
at edu.internet2.middleware.grouper.Membership.internal_addImmediateMembership(Membership.java:1257)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1394)
... 16 more
java.lang.RuntimeException: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@26fe6298,
Problem in HibernateSession: HibernateSession (7703f829): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (79b1c4d6),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null,
, group name: Statewide:UA_Users, subject: Subject id: ua-oit-ca-dept, sourceId: ADgroups, field: members,
Problem in HibernateSession: HibernateSession (2e53dfd): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (79b1c4d6)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1412)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at edu.internet2.middleware.grouper.Group.internal_addMember(Group.java:1366)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:940)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:859)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneMemberAddMemberLogic(GrouperLoaderType.java:4747)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$400(GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3149)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3141)
at edu.internet2.middleware.grouper.util.GrouperCallable.tryCallablesWithProblems(GrouperCallable.java:51)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13.callback(GrouperLoaderType.java:3176)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO.transactionCallback(Hib3TransactionDAO.java:56)
at edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:87)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneGroupMembership(GrouperLoaderType.java:3084)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncGroupLogicForOneGroup(GrouperLoaderType.java:2000)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$200(GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$12.callLogic(GrouperLoaderType.java:1906)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$12.callLogic(GrouperLoaderType.java:1896)
at edu.internet2.middleware.grouper.util.GrouperCallable$1.callback(GrouperCallable.java:191)
at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974)
at edu.internet2.middleware.grouper.util.GrouperCallable.callLogicWithSessionIfExists(GrouperCallable.java:188)
at edu.internet2.middleware.grouper.util.GrouperCallable.call(GrouperCallable.java:154)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@26fe6298,
Problem in HibernateSession: HibernateSession (7703f829): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (79b1c4d6),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1666)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1634)
at edu.internet2.middleware.grouper.Membership.processPostMembershipSaveOrUpdate(Membership.java:2132)
at edu.internet2.middleware.grouper.Membership.onPostSave(Membership.java:2008)
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:2095)
at edu.internet2.middleware.grouper.Membership.internal_addImmediateMembership(Membership.java:1257)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1394)
... 27 more
ERROR java.lang.RuntimeException:
java.lang.RuntimeException: Error in loader job: Loaders:SWgroupLoader, check logs: null
at edu.internet2.middleware.grouper.app.loader.GrouperLoader.runJobOnceForGroup (GrouperLoader.java:1579)
at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob.invoke (loaderRunOneJob.java:92)
at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob$invoke.call (Unknown Source)
at groovysh_evaluate.loaderRunOneJob (groovysh_evaluate:4)
===> Subject id: ua-oit-ca-dept, sourceId: ADgroups
groovy:000> loaderRunOneJob(lg);
java.lang.RuntimeException: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@2caf2795,
Problem in HibernateSession: HibernateSession (6f75330): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5c2a8b5a),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null,
, group name: Statewide:UA_Users, subject: Subject id: ua-oit-ca-dept, sourceId: ADgroups, field: members,
Problem in HibernateSession: HibernateSession (383625e8): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (5c2a8b5a)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1412)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at edu.internet2.middleware.grouper.Group.internal_addMember(Group.java:1366)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:940)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:859)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneMemberAddMemberLogic(GrouperLoaderType.java:4747)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$400(GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3149)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3141)
at edu.internet2.middleware.grouper.util.GrouperCallable$1.callback(GrouperCallable.java:191)
at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974)
at edu.internet2.middleware.grouper.util.GrouperCallable.callLogicWithSessionIfExists(GrouperCallable.java:188)
at edu.internet2.middleware.grouper.util.GrouperCallable.call(GrouperCallable.java:154)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@2caf2795,
Problem in HibernateSession: HibernateSession (6f75330): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5c2a8b5a),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1666)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1634)
at edu.internet2.middleware.grouper.Membership.processPostMembershipSaveOrUpdate(Membership.java:2132)
at edu.internet2.middleware.grouper.Membership.onPostSave(Membership.java:2008)
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:2095)
at edu.internet2.middleware.grouper.Membership.internal_addImmediateMembership(Membership.java:1257)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1394)
... 16 more
java.lang.RuntimeException: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@26fe6298,
Problem in HibernateSession: HibernateSession (7703f829): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (79b1c4d6),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null,
, group name: Statewide:UA_Users, subject: Subject id: ua-oit-ca-dept, sourceId: ADgroups, field: members,
Problem in HibernateSession: HibernateSession (2e53dfd): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (79b1c4d6)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1412)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at edu.internet2.middleware.grouper.Group.internal_addMember(Group.java:1366)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:940)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:859)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneMemberAddMemberLogic(GrouperLoaderType.java:4747)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$400(GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3149)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13$2.callLogic(GrouperLoaderType.java:3141)
at edu.internet2.middleware.grouper.util.GrouperCallable.tryCallablesWithProblems(GrouperCallable.java:51)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$13.callback(GrouperLoaderType.java:3176)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66)
at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:700)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO.transactionCallback(Hib3TransactionDAO.java:56)
at edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:87)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneGroupMembership(GrouperLoaderType.java:3084)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncGroupLogicForOneGroup(GrouperLoaderType.java:2000)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.access$200(GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$12.callLogic(GrouperLoaderType.java:1906)
at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$12.callLogic(GrouperLoaderType.java:1896)
at edu.internet2.middleware.grouper.util.GrouperCallable$1.callback(GrouperCallable.java:191)
at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974)
at edu.internet2.middleware.grouper.util.GrouperCallable.callLogicWithSessionIfExists(GrouperCallable.java:188)
at edu.internet2.middleware.grouper.util.GrouperCallable.call(GrouperCallable.java:154)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: edu.internet2.middleware.grouper.exception.GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware.grouper.hibernate.ByObject@26fe6298,
Problem in HibernateSession: HibernateSession (7703f829): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (79b1c4d6),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1666)
at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO.findByUuid(Hib3GroupDAO.java:1634)
at edu.internet2.middleware.grouper.Membership.processPostMembershipSaveOrUpdate(Membership.java:2132)
at edu.internet2.middleware.grouper.Membership.onPostSave(Membership.java:2008)
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:2095)
at edu.internet2.middleware.grouper.Membership.internal_addImmediateMembership(Membership.java:1257)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1394)
... 27 more
ERROR java.lang.RuntimeException:
java.lang.RuntimeException: Error in loader job: Loaders:SWgroupLoader, check logs: null
at edu.internet2.middleware.grouper.app.loader.GrouperLoader.runJobOnceForGroup (GrouperLoader.java:1579)
at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob.invoke (loaderRunOneJob.java:92)
at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob$invoke.call (Unknown Source)
at groovysh_evaluate.loaderRunOneJob (groovysh_evaluate:4)
On Tue, Jun 19, 2018 at 2:18 PM, Sam Erie <> wrote:
So this is a continuation of my previous Group of Groups question, and I have a potential solution. I would like to make sure that I am understanding this correct, and am not about to make a big mess for myself.I have a group source set up, which will resolve subjects of type group. This doesn't work with the loader job though because it is trying to resolve groups by uuid. I am getting an exception when I try to run my group of groups loader saying that it cannot find a specific group by uuid, that I can find as a group like:groovy:000> findSubject('ua-oit-ca-dept','group','ADgroups');
===> Subject id: ua-oit-ca-dept, sourceId: ADgroupsI will include the loader error at the bottom incase I am missing something important.So my potential solution (and only possibility I can imagine) is to create groups from all the subjects. I can get a list of the group subjects like:groupSubs = SubjectFinder.findAll("*","ADgroups"); And then I could go through them with a forloop and create a group for each like:gs = GrouperSession.
startRootSession(); addGroup(
"Statewide"
,
var
,
var
);
group = GroupFinder.findByName(gs,
"Statewide:"+var
);
group.store();
I'm unsure if addGroup() is designating the uuid or if that is generated,I think it is generated. If it is I would still need to come up with some wayto find the uuid from the groupname in the loader.Hopefully this is a bit more clear than my last post. I appreciate anyadvice I can get.Here is the full output from the failed loader:groovy:000> findSubject('ua-oit-ca-dept','group','ADgroups');
===> Subject id: ua-oit-ca-dept, sourceId: ADgroups
groovy:000> loaderRunOneJob(lg);
java.lang.RuntimeException: edu.internet2.middleware.grouper.exception. GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware. grouper.hibernate.ByObject@ 2caf2795,
Problem in HibernateSession: HibernateSession (6f75330): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5c2a8b5a),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null,
, group name: Statewide:UA_Users, subject: Subject id: ua-oit-ca-dept, sourceId: ADgroups, field: members,
Problem in HibernateSession: HibernateSession (383625e8): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (5c2a8b5a)
at edu.internet2.middleware.grouper.Group$4.callback( Group.java:1412)
at edu.internet2.middleware.grouper.hibernate. HibernateSession. callbackHibernateSession( HibernateSession.java:700)
at edu.internet2.middleware.grouper.Group.internal_ addMember(Group.java:1366)
at edu.internet2.middleware.grouper.Group.addMember(Group. java:940)
at edu.internet2.middleware.grouper.Group.addMember(Group. java:859)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType. syncOneMemberAddMemberLogic( GrouperLoaderType.java:4747)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType.access$400( GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType$13$2. callLogic(GrouperLoaderType. java:3149)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType$13$2. callLogic(GrouperLoaderType. java:3141)
at edu.internet2.middleware.grouper.util.GrouperCallable$ 1.callback(GrouperCallable. java:191)
at edu.internet2.middleware.grouper.GrouperSession. callbackGrouperSession( GrouperSession.java:974)
at edu.internet2.middleware.grouper.util.GrouperCallable. callLogicWithSessionIfExists( GrouperCallable.java:188)
at edu.internet2.middleware.grouper.util.GrouperCallable. call(GrouperCallable.java:154)
at java.util.concurrent.FutureTask.run(FutureTask. java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: edu.internet2.middleware.grouper.exception. GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware. grouper.hibernate.ByObject@ 2caf2795,
Problem in HibernateSession: HibernateSession (6f75330): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (5c2a8b5a),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null
at edu.internet2.middleware.grouper.internal.dao.hib3. Hib3GroupDAO.findByUuid( Hib3GroupDAO.java:1666)
at edu.internet2.middleware.grouper.internal.dao.hib3. Hib3GroupDAO.findByUuid( Hib3GroupDAO.java:1634)
at edu.internet2.middleware.grouper.Membership. processPostMembershipSaveOrUpd ate(Membership.java:2132)
at edu.internet2.middleware.grouper.Membership.onPostSave( Membership.java:2008)
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:2095)
at edu.internet2.middleware.grouper.Membership.internal_ addImmediateMembership( Membership.java:1257)
at edu.internet2.middleware.grouper.Group$4.callback( Group.java:1394)
... 16 more
java.lang.RuntimeException: edu.internet2.middleware.grouper.exception. GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware. grouper.hibernate.ByObject@ 26fe6298,
Problem in HibernateSession: HibernateSession (7703f829): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (79b1c4d6),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null,
, group name: Statewide:UA_Users, subject: Subject id: ua-oit-ca-dept, sourceId: ADgroups, field: members,
Problem in HibernateSession: HibernateSession (2e53dfd): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (79b1c4d6)
at edu.internet2.middleware.grouper.Group$4.callback( Group.java:1412)
at edu.internet2.middleware.grouper.hibernate. HibernateSession. callbackHibernateSession( HibernateSession.java:700)
at edu.internet2.middleware.grouper.Group.internal_ addMember(Group.java:1366)
at edu.internet2.middleware.grouper.Group.addMember(Group. java:940)
at edu.internet2.middleware.grouper.Group.addMember(Group. java:859)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType. syncOneMemberAddMemberLogic( GrouperLoaderType.java:4747)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType.access$400( GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType$13$2. callLogic(GrouperLoaderType. java:3149)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType$13$2. callLogic(GrouperLoaderType. java:3141)
at edu.internet2.middleware.grouper.util.GrouperCallable. tryCallablesWithProblems( GrouperCallable.java:51)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType$13.callback( GrouperLoaderType.java:3176)
at edu.internet2.middleware.grouper.internal.dao.hib3. Hib3TransactionDAO$1.callback( Hib3TransactionDAO.java:66)
at edu.internet2.middleware.grouper.hibernate. HibernateSession. callbackHibernateSession( HibernateSession.java:700)
at edu.internet2.middleware.grouper.internal.dao.hib3. Hib3TransactionDAO. transactionCallback( Hib3TransactionDAO.java:56)
at edu.internet2.middleware.grouper.hibernate. GrouperTransaction. callbackGrouperTransaction( GrouperTransaction.java:87)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType. syncOneGroupMembership( GrouperLoaderType.java:3084)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType. syncGroupLogicForOneGroup( GrouperLoaderType.java:2000)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType.access$200( GrouperLoaderType.java:126)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType$12. callLogic(GrouperLoaderType. java:1906)
at edu.internet2.middleware.grouper.app.loader. GrouperLoaderType$12. callLogic(GrouperLoaderType. java:1896)
at edu.internet2.middleware.grouper.util.GrouperCallable$ 1.callback(GrouperCallable. java:191)
at edu.internet2.middleware.grouper.GrouperSession. callbackGrouperSession( GrouperSession.java:974)
at edu.internet2.middleware.grouper.util.GrouperCallable. callLogicWithSessionIfExists( GrouperCallable.java:188)
at edu.internet2.middleware.grouper.util.GrouperCallable. call(GrouperCallable.java:154)
at java.util.concurrent.FutureTask.run(FutureTask. java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: edu.internet2.middleware.grouper.exception. GroupNotFoundException: Cant find group by uuid: ua-oit-ca-dept,
Exception in save: edu.internet2.middleware.grouper.Membership, edu.internet2.middleware. grouper.hibernate.ByObject@ 26fe6298,
Problem in HibernateSession: HibernateSession (7703f829): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (79b1c4d6),
Exception in save: edu.internet2.middleware.grouper.Membership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: ImmediateMembershipEntry, tx type: null
at edu.internet2.middleware.grouper.internal.dao.hib3. Hib3GroupDAO.findByUuid( Hib3GroupDAO.java:1666)
at edu.internet2.middleware.grouper.internal.dao.hib3. Hib3GroupDAO.findByUuid( Hib3GroupDAO.java:1634)
at edu.internet2.middleware.grouper.Membership. processPostMembershipSaveOrUpd ate(Membership.java:2132)
at edu.internet2.middleware.grouper.Membership.onPostSave( Membership.java:2008)
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:2095)
at edu.internet2.middleware.grouper.Membership.internal_ addImmediateMembership( Membership.java:1257)
at edu.internet2.middleware.grouper.Group$4.callback( Group.java:1394)
... 27 more
ERROR java.lang.RuntimeException:
java.lang.RuntimeException: Error in loader job: Loaders:SWgroupLoader, check logs: null
at edu.internet2.middleware.grouper.app.loader. GrouperLoader. runJobOnceForGroup (GrouperLoader.java:1579)
at edu.internet2.middleware.grouper.app.gsh. loaderRunOneJob.invoke (loaderRunOneJob.java:92)
at edu.internet2.middleware.grouper.app.gsh. loaderRunOneJob$invoke.call (Unknown Source)
at groovysh_evaluate.loaderRunOneJob (groovysh_evaluate:4)
- [grouper-users] LDAP Group of Groups loader job, Sam Erie, 06/19/2018
- Re: [grouper-users] LDAP Group of Groups loader job, Sam Erie, 06/19/2018
- RE: [grouper-users] LDAP Group of Groups loader job, Hyzer, Chris, 06/20/2018
- Re: [grouper-users] LDAP Group of Groups loader job, Sam Erie, 06/20/2018
- RE: [grouper-users] LDAP Group of Groups loader job, Hyzer, Chris, 06/20/2018
- Re: [grouper-users] LDAP Group of Groups loader job, Sam Erie, 06/19/2018
Archive powered by MHonArc 2.6.19.