Hi Justin

Il 17/04/19 03:21, justin.isenhour ha scritto:
Hello,

We are currently running v2.0.6 in a clustered environment and have noticed
that some notifications are not being generated when we bulk create users
related to a migration effort from a legacy system.  The error we are
getting in the logs is listed below.  Based on the code that I have reviewed
it looks like when the AfterHandlingJob is scheduled that a new bean is
created and added to the ApplicationContext of that server instance and then
when the Quartz job is run the SpringBeanJobFactory tries to find that bean
in the Application Context of the server running the job.  It looks like a
situation where the Job is initially being created on server A and the run
from server B which doesn't have the job bean.  I have reviewed the document
on setting up Syncope with High Availability and the only thing mentioned
there really is setting up second level caching for OpenJPA, which we have
configured.  Is there something else that we have missed in our clustering
configuration?


There were several fixes on Syncope for quartz after 2.0.6:

SYNCOPE-1285 [1]
SYNCOPE-1244 [2]
SYNCOPE-1103 [3]

I suggest to upgrade to the latest stable version of Syncope 2_0_X, following the guide that you can find here [4].

Regards
M

[1] https://issues.apache.org/jira/browse/SYNCOPE-1285
[2] https://issues.apache.org/jira/browse/SYNCOPE-1244
[3] https://issues.apache.org/jira/browse/SYNCOPE-1103
[4] https://cwiki.apache.org/confluence/display/SYNCOPE/Jazz

2019-04-16 18:27:02.286 [scheduler_QuartzSchedulerThread] [ERROR]
[org.quartz.core.ErrorLogger] - An error occured instantiating job to be
executed. job=
'DEFAULT.org.apache.syncope.core.provisioning.java.job.AfterHandlingJob0b8943b2-e6b5-4b07-9cff-97559924777b'
org.quartz.SchedulerException: Job instantiation failed
         at
org.springframework.scheduling.quartz.AdaptableJobFactory.newJob(AdaptableJobFactory.java:45)
~[spring-context-support-4.3.6.RELEASE.jar:4.3.6.RELEASE]
         at org.quartz.core.JobRunShell.initialize(JobRunShell.java:127)
~[quartz-2.3.0.jar:?]
         at
org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:392)
~[quartz-2.3.0.jar:?]
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
No bean named
'org.apache.syncope.core.provisioning.java.job.AfterHandlingJob0b8943b2-e6b5-4b07-9cff-97559924777b'
available
         at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
~[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
         at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207)
~[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
         at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
~[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
~[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
         at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)
~[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
         at
org.apache.syncope.core.provisioning.java.job.SpringBeanJobFactory.createJobInstance(SpringBeanJobFactory.java:56)
~[syncope-core-provisioning-java-2.0.6.jar:2.0.6]
         at
org.springframework.scheduling.quartz.AdaptableJobFactory.newJob(AdaptableJobFactory.java:41)
~[spring-context-support-4.3.6.RELEASE.jar:4.3.6.RELEASE]
         ... 2 more


--
Sent from: http://syncope-user.1051894.n5.nabble.com/

--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale Vittoria Colonna, 97 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/

Reply via email to