Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: secondmemberNotFoundException

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: secondmemberNotFoundException


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "Imholz, John J." <>, "" <>
  • Subject: [grouper-users] RE: secondmemberNotFoundException
  • Date: Tue, 8 Sep 2015 20:15:41 +0000
  • Accept-language: en-US

correct

-----Original Message-----
From: Imholz, John J.
[mailto:]

Sent: Tuesday, September 08, 2015 4:15 PM
To: Chris Hyzer;

Subject: RE: secondmemberNotFoundException

Error said something about description. It was a bad sources.xml config.

Had a bad value for Description_AttributeType.

Thanks.


The other warnings about jar size and grouperUtf8.txt are nothing to worry
about?

jji

-----Original Message-----
From: Chris Hyzer
[mailto:]

Sent: Tuesday, September 08, 2015 4:03 PM
To: Imholz, John J.
<>;


Subject: RE: secondmemberNotFoundException



Or you could try:

Memberfinder.internal_createMember(subject, null);

Might show the hidden log stack

Thanks,
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Imholz, John J.
Sent: Tuesday, September 08, 2015 2:49 PM
To: Chris Hyzer;

Subject: [grouper-users] RE: secondmemberNotFoundException


sources.xml read from:
/usr/local/grouper/grouper.apiBinary-2.2.1/conf/sources.xml
sources.xml ldap source id: AD:
grouperad@ldap://dc1.emr.musc.edu:389
sources.xml groupersource id: g:gsa
sources.xml groupersource id: grouperEntities Grouper warning: jarfile
mismatch, expecting name: 'subject.jar' size: 260483 manifest version: 2.2.1.
However the jar detected is: /usr/local$
grouper/grouper.apiBinary-2.2.1/lib/grouper/subject.jar, name: subject.jar
size: 259419 manifest version: 2.2.1 Type help() for instructions
Error: Cannot properly read UTF string from resource: grouperUtf8.txt:
'ٹٺٻټكلل'
gsh 0% grouperSession = GrouperSession.startRootSession();
edu.internet2.middleware.grouper.GrouperSession:
5e194f572689476cbb8dfa867b04d7e8,'GrouperSystem','application'
gsh 1% subject = SubjectFinder.findById("900001976", true);
subject: id='900001976' type='person' source='AD' name='Imholz, John J.'
gsh 2% ); member = MemberFinder.findBySubject(grouperSession, subject,
false); // Error: unable to evaluate command: Parse error at line 1, column
1. Encountered: ) gsh 3% member = MemberFinder.findBySubject(grouperSession,
subject, false); gsh 4% member = MemberFinder.findBySubject(grouperSession,
subject, true); // Error: unable to evaluate command: Sourced file: inline
evaluation of: ``member = MemberFinder.findBySubject(grouperSession, subject,
true); ;'' : Method Invocation MemberFinder.findBySubject // See error log
for full stacktrace // caused by: java.lang.NullPointerException:
// ... second memberNotFoundException for subject Subject id: 900001976,
sourceId: AD... edu.internet2.middleware.grouper.exception.MemberNotFou
ndException
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 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.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHAssignment.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)
...
gsh 5% group = GroupFinder.findByName(grouperSession,"etc:sysadmingroup",
true);
group: name='etc:sysadmingroup' displayName='etc:SysAdmin Group'
uuid='c1c8bd976a9543858711cad6aacc8a9a'
gsh 6% group.addMember(member.getSubject(), true); // Error: unable to
evaluate command: Sourced file: inline evaluation of:
``group.addMember(member.getSubject(), true);''
// See error log for full stacktrace
// caused by: java.lang.NullPointerException:
// Null Pointer in Method Invocation

jji


-----Original Message-----
From: Chris Hyzer
[mailto:]
Sent: Tuesday, September 08, 2015 2:34 PM
To: Imholz, John J.
<>;


Subject: RE: secondmemberNotFoundException



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




Archive powered by MHonArc 2.6.16.

Top of Page