grouper-users - [grouper-users] RE: secondmemberNotFoundException
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: "Imholz, John J." <>, "" <>
- Subject: [grouper-users] RE: secondmemberNotFoundException
- Date: Tue, 8 Sep 2015 18:33:35 +0000
- Accept-language: en-US
Run this in GSH and let me know the output:
grouperSession = GrouperSession.startRootSession();
subject = SubjectFinder.findById("900001976", true);
member = MemberFinder.findBySubject(grouperSession, subject, false);
member = MemberFinder.findBySubject(grouperSession, subject, true);
group = GroupFinder.findByName(grouperSession,"etc:sysadmingroup", true);
group.addMember(member.getSubject(), true);
The third line will see if the member row exists.
The fourth line will add a member row if not there.
You could also look in the grouper_members table and see if anything looks odd
Thanks,
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of Imholz, John J.
Sent: Tuesday, September 08, 2015 2:09 PM
To:
Subject: [grouper-users] secondmemberNotFoundException
I've started with a new install (using the installer.)
When I run gsh.sh to add myself to the etc:sysadmingroup, I get the following
(also get the same error when trying to start a session):
gsh 6% subj = findSubject("900001976");
subject: id='900001976' type='person' source='AD' name='Imholz, John J.'
gsh 7% addMember("etc:sysadmingroup", "900001976");
// Error: unable to evaluate command: Sourced file: inline evaluation of:
``addMember("etc:sysadmingroup", "900001976");'' : Error invoking comp
iled command: : Error in compiled command: java.lang.RuntimeException:
java.lang.NullPointerException: ... second memberNotFoundException for su
bject Subject id: 900001976, sourceId: AD...
edu.internet2.middleware.grouper.exception.MemberNotFoundException
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MemberDAO.findBySubject(Hib3MemberDAO.java:310)
at
edu.internet2.middleware.grouper.MemberFinder.internal_findOrCreateBySubject(MemberFinder.java:493)
at
edu.internet2.middleware.grouper.MemberFinder.internal_findBySubject(MemberFinder.java:318)
at
edu.internet2.middleware.grouper.MemberFinder.findBySubject(MemberFinder.java:230)
at
edu.internet2.middleware.grouper.MemberFinder.internal_findReadableMemberBySubject(MemberFinder.java:587)
at
edu.internet2.middleware.grouper.Membership.internal_addImmediateMembership(Membership.java:1230)
at edu.internet2.middleware.grouper.Group$4.callback(Group.java:1392)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:687)
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:857)
at edu.internet2.middleware.grouper.Group.addMember(Group.java:820)
at
edu.internet2.middleware.grouper.app.gsh.addMember.invoke(addMember.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeStaticMethod(Unknown Source)
at bsh.Reflect.invokeCompiledCommand(Unknown Source)
at bsh.Name.invokeLocalMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at
edu.internet2.middleware.grouper.app.gsh.ShellHelper.eval(ShellHelper.java:63)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.run(GrouperShell.java:429)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.grouperShellHelper(GrouperShell.java:232)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:162)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)
...,
, group name: etc:sysadmingroup, subject: Subject id: 900001976, sourceId:
AD, field: members,
Problem in HibernateSession: HibernateSession (5a7a53c9): new, notReadonly,
READ_WRITE_NEW, notActiveTransaction, session (4de8d906)
jji
- [grouper-users] secondmemberNotFoundException, Imholz, John J., 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Chris Hyzer, 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Imholz, John J., 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Chris Hyzer, 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Chris Hyzer, 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Imholz, John J., 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Chris Hyzer, 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Imholz, John J., 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Imholz, John J., 09/08/2015
- [grouper-users] RE: secondmemberNotFoundException, Chris Hyzer, 09/08/2015
Archive powered by MHonArc 2.6.16.