grouper-users - [grouper-users] getChangeLogCategory() throws NPE in loader job
Subject: Grouper Users - Open Discussion List
List archive
- From: Scott Koranda <>
- To: grouper-users <>
- Subject: [grouper-users] getChangeLogCategory() throws NPE in loader job
- Date: Mon, 13 Mar 2017 14:14:16 -0500
- Ironport-phdr: 9a23:fPAuaRYzr0+W7x8z3jmYgBP/LSx+4OfEezUN459isYplN5qZr8W6bnLW6fgltlLVR4KTs6sC0LuL9f28EjVaut6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52LBi6twXcu8YZjYd/NKo8xAbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrRyvpxJx3ZPaboKaO/ViY6zSc8gXRXZdUstLSyBNHpmxY5UJAuEcPehYtY79p14WoBWjGQasA//vyiNVjXHz2q06yf4uEQfb0wM6AtkDt2/UrNbyNKcIS++1yrTHwi/YYvNZ3Dfy8onIchQ7rf6QWrJwdNPcxE8yHA3LiVWQrJbqPzKT1ukVvGib9e1gVf+3i2E5sQF9uCKgxt80ioXRhIIVzUvL9T9kwIYzPt24SFB0YdqgEJdKrSGaKo12T8U/SG9roCY30qMKtJ+ncCUIzZknyR3SZOebf4WN7R/vSPqdLip9iX15ZL6wmhO//E2+xuDySMW4yEtGoyREn9XWq3wA1h7e5tKJR/Z85EutxyiD2gLV5+pZO047j7DbJIQkwrMolpocr0DDHijulUXzlqCWd0Ek9vGx6+T7frnqv5CdO5F6hw3gKKgulcu/AeM3MggKQWeX4/iz1Lrm/UHhQbVKiOM5krXBvZzEJMkXuqy0Dgpb0osg8BmzEzKr3dsEkXUbMV1IfQ6Ig5T0NFzLJf30E/myj0q0nDdu3f/GP7nhApvXLnjElbfsZa19601byAop199f4Y9bBasaLfL8X0/+rt3YDhsjPwOoxObnDc1x1pkCVmKXHq+ZLKTSvEeH5uI1JOmMeZcVtyjnK/Q8+v7ulmE2mUUGfaSy2ZsXaWu4Huh9I0mHe3bsg9EBEXsUsQokSuzllkGCXSBJa3msQq08+2JzNIXzAp3EW5igmvmcxyqhBdUCaXpBF0iBCzL1bIieQN8Nbj6fOMlsjmZCWLS8HdwPzxar4TTxzKZ7ZsnT4CQeuZurgMN24Pfakx073TNxBsWZlWqKSjcnzSszWzYq0fUn8gRGwVCZ3P0gjg==
Hi,
I am running Grouper 2.3.0.
A loader job threw this NPE:
2017-03-02 04:35:37,537: [DefaultQuartzScheduler_Worker-4] ERROR
ChangeLogHelper.processRecords(276) - - Error: Error processing record,
sequenceNumber: 12572825, java.lang.NullPointerException
at
edu.internet2.middleware.grouper.changeLog.ChangeLogTypeBuiltin.getChangeLogCategory(ChangeLogTypeBuiltin.java:530)
at
edu.internet2.middleware.grouper.changeLog.ChangeLogType.equalsCategoryAndAction(ChangeLogType.java:847)
at
edu.internet2.middleware.grouper.changeLog.ChangeLogEntry.equalsCategoryAndAction(ChangeLogEntry.java:1021)
at
edu.bc.its.grouper.PassToQueueStore.processChangeLogEntries(PassToQueueStore.java:226)
at
edu.internet2.middleware.grouper.changeLog.ChangeLogHelper.processRecords(ChangeLogHelper.java:245)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$4.runJob(GrouperLoaderType.java:629)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:416)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:318)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
The class PassToQueueStore (in the middle of the stack trace) is my custom
change log consumer. The line from the stack trace is
} else if
(changeLogEntry.equalsCategoryAndAction(ChangeLogTypeBuiltin.MEMBERSHIP_DELETE))
{
My logic to deal with a membership delete for my provisioning use
case follows that test.
The change log record 12572825 referenced by the ERROR log entry
is indeed a MEMBERSHIP_DELETE.
Change log records just before it are also membership deletes for the
same group, as well as the records after it.
The memberships were being deleted because the group itself was being deleted.
The group was from the "set" of addIncludeExclude groups automatically
created and managed by a loader job. The set included
my:stem:students_systemOfRecord
my:stem:students system of record and includes
my:stem:students includes
my:stem:students excludes
my:stem:students
It was the 'students' groups for which the memberships were being deleted
when the NPE was thrown.
It appears that the NPE was thrown by
edu.internet2.middleware.grouper.changeLog.ChangeLogTypeBuiltin.getChangeLogCategory()
Any ideas on why?
Is there something special I should be doing in my custom change log
consumer before changeLogEntry.equalsCategoryAndAction() ?
Thanks,
Scott K
- [grouper-users] getChangeLogCategory() throws NPE in loader job, Scott Koranda, 03/13/2017
Archive powered by MHonArc 2.6.19.