Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Bug found in GrouperLoaderResultSet.bulkLookupSubjects()

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Bug found in GrouperLoaderResultSet.bulkLookupSubjects()


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Jutta Biernath <>, "" <>
  • Subject: RE: [grouper-users] Bug found in GrouperLoaderResultSet.bulkLookupSubjects()
  • Date: Fri, 20 May 2016 16:26:54 +0000
  • Accept-language: en-US
  • Authentication-results: fu-berlin.de; dkim=none (message not signed) header.d=none;fu-berlin.de; dmarc=none action=none header.from=isc.upenn.edu;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

Can you please give source file names and when referencing a source line give
the line number and copy the source line too? Thanks, Chris

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


[mailto:]
On Behalf Of Jutta Biernath
Sent: Friday, May 20, 2016 7:04 AM
To:

Subject: [grouper-users] Bug found in
GrouperLoaderResultSet.bulkLookupSubjects()

Hi,

after upgrading Grouper from 2.1.5 to 2.2.2 I have encountered several
NullPointerExceptions when running loadergroups. I have carefully analysed the
source code because I wanted to understand the cause. This is what I found:

I have several loadergroups, each one with another view as resultset. Some of
the views have a source_id column, others haven't (those which don't build a
group hierarchy).

Now the NullPointerException occured with the loadergroups with resultsets
without source_id column. This is what happened:

- I have a default source id set in the loader properties file, so this is <>
null; this value is assigned to the variable sourceId
- However I don't have a source column in the resultset, what means that the
variable sourceIdCol stays null
- Because sourceId has a valid value, the variable subjectIdsOrIdentifiers
stays null; there are no values assigned to it.
- Because subjectIdsOrIdentifiers is null, also subjectIdOrIdentifierToSubject
is null.
- In ln. 218 however there is an if/else command that checks if sourceIdCol is
blank or not. My sourceIdCol is still null, so i get into the the else branch.
But there is a get()-Method on subjectIdOrIdentifierToSubject, which was never
filled, see above --> a NullPointerException happens. Probably you wanted to
check if sourceId was blank, not sourceIdCol.

Until this is fixed I will work with a workaround, giving all of my views a
column for the subject source. I just wanted to inform you, I think this is
relevant.

Regards,
Jutta Biernath
Freie Universit├Ąt Berlin



Archive powered by MHonArc 2.6.16.

Top of Page