[
https://issues.apache.org/jira/browse/SYNCOPE-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241200#comment-14241200
]
ASF subversion and git services commented on SYNCOPE-614:
---------------------------------------------------------
Commit 9d1607734850b852ada7a803c3f11a1bbf48273a in syncope's branch
refs/heads/1_2_X from [~ilgrosso]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=9d16077 ]
[SYNCOPE-614] Moving confDAO access from NotificationJob to NotificationManager
> NotificationJob fails with NullPointerException
> -----------------------------------------------
>
> Key: SYNCOPE-614
> URL: https://issues.apache.org/jira/browse/SYNCOPE-614
> Project: Syncope
> Issue Type: Bug
> Components: core
> Affects Versions: 1.2.1
> Reporter: Guido Wimmel
> Fix For: 1.2.2, 1.3.0
>
>
> On scheduled executions from Quartz, NotificationJob fails with a
> NullPointerException. Thus, notifications are not sent.
> Steps to reproduce:
> * Change NotificationJob.DEFAULT_CRON_EXP to "0/5 * * * * ?" (to ensure that
> NotificationJob is executed)
> * Change TaskTestITCase.issueSYNCOPE81():558 increase Thread.sleep()-Time to
> 1000*60 (to ensure that NotificationJob is executed; before this line, a
> notification task is generated)
> * mvn clean install
> When the integration tests are run in core, I get a NullPointerException in
> NotificationJob when
> the notification.maxRetries parameter is read:
> 15:17:30.010 ERROR org.quartz.core.ErrorLogger - Job
> (DEFAULT.taskNotificationJob threw an exception.
> org.quartz.SchedulerException: Job threw an unhandled exception.
> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> [quartz-2.2.1.jar:?]
> at
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
> [quartz-2.2.1.jar:?]
> Caused by: java.lang.NullPointerException
> at
> org.apache.syncope.core.notification.NotificationJob.init(NotificationJob.java:92)
> ~[NotificationJob.class:?]
> at
> org.apache.syncope.core.notification.NotificationJob.executeSingle(NotificationJob.java:104)
> ~[NotificationJob.class:?]
> at
> org.apache.syncope.core.notification.NotificationJob.execute(NotificationJob.java:228)
> ~[NotificationJob.class:?]
> at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
> ~[quartz-2.2.1.jar:?]
> ... 1 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)