Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] xml-import errors

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] xml-import errors

Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: graham <>
  • Cc: , "Pytel,G" <>
  • Subject: Re: [grouper-users] xml-import errors
  • Date: Tue, 20 May 2008 16:19:07 +0100

Hi Graham,

I think the password problem occurs because of the way loadAttributes works in JNDISourceAdapter:

Set values = new HashSet();
for (NamingEnumeration en = attr.getAll(); en.hasMore(); ) {
String value = (String);

You could try:

Object value =;

The null error is due to the fact that 'getAttributeValues()' returns null rather than an empty Set. I've attached a new version of which checks for null before trying to iterate values. If you replace the one in grouper-ui\java\src\edu\internet2\middleware\grouper\ui\util and rebuild that may fix the problem - please let me know if it does and I'll check the change in to CVS.



--On 20 May 2008 12:08 +0100 graham

Hi Gary

GW Brown, Information Systems and Computing wrote:
Subject.getAttributes().keySet() is throwing the Exception. You could
work around this for now by specifying the names of the attributes to
display - omitting the password field:

subject.attributes.order.<SOURCE_ID>=comma separated (and case
sensitive) list of attribute names.

That doesn't entirely fix the problem. If the password attribute exists,
then I still get an exception, though there is now less information in
the grouper_ui.log file:

2008-05-20 11:46:45,062 ERROR ui.TileRecorderTag: < GrouperSystem
fca67a50-efc5-4f8d-b726-ff9f9ac8e9c4 GrouperSystem g:isa >
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/jsp/subjectInfo.jsp': [B

Also, if any fields are optional and not always filled in in the LDAP
subject, then listing the field name in subject.attributes.order gives a
similar error message for any subject missing that data:

2008-05-20 10:19:47,995 ERROR ui.TileRecorderTag: < GrouperSystem
7302c712-85fe-4fdc-af19-123b4f9ecfa6 GrouperSystem g:isa >
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/jsp/subjectInfo.jsp': null

(ie. 'null' instead of '[B' )

Any suggestions?


GW Brown, Information Systems and Computing

Description: Binary data

Archive powered by MHonArc 2.6.16.

Top of Page