Jmix 2.2.3 Hello, I have some problems with Quartz - I copied the database to another server and started the application, however, these 2 errors are constantly showing in the log, pessimistic locking and email sending is quite worrisome
2024-11-13 00:02:00 - Unable to notify JobListener(s) of Job to be executed: (Job will NOT be executed!). trigger= DEFAULT.emailSendingCronTrigger job= DEFAULT.emailSending
org.quartz.SchedulerException: JobListener 'quartz_JobExecutionListener' threw exception: User not found
How to diagnose what’s wrong? Emails are being sent, but it’s a bad feeling
2024-11-13 00:01:00 - Unable to notify JobListener(s) of Job to be executed: (Job will NOT be executed!). trigger= DEFAULT.pessimisticLockExpiringTrigger job= DEFAULT.pessimisticLockExpiring
org.quartz.SchedulerException: JobListener 'quartz_JobExecutionListener' threw exception: User not found
at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1929)
at org.quartz.core.JobRunShell.notifyListenersBeginning(JobRunShell.java:324)
at org.quartz.core.JobRunShell.run(JobRunShell.java:173)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.springframework.security.core.userdetails.UsernameNotFoundException: User not found
at io.jmix.securitydata.user.AbstractDatabaseUserRepository.loadUserByUsername(AbstractDatabaseUserRepository.java:186)
at io.jmix.core.security.impl.SystemAuthenticationProvider.authenticate(SystemAuthenticationProvider.java:48)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:182)
at io.jmix.core.security.impl.SystemAuthenticatorImpl.begin(SystemAuthenticatorImpl.java:75)
at io.jmix.core.security.impl.SystemAuthenticatorImpl.runWithUser(SystemAuthenticatorImpl.java:117)
at io.jmix.flowui.UiEventPublisher.sendEventToUserSessions(UiEventPublisher.java:105)
at io.jmix.flowui.UiEventPublisher.publishEventForUsersInternal(UiEventPublisher.java:88)
at io.jmix.flowui.UiEventPublisher.onUiUserEvent(UiEventPublisher.java:83)
at jdk.internal.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:365)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:237)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:168)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:451)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:384)
at io.jmix.core.cluster.ClusterApplicationEventPublisher.onAppEventMessage(ClusterApplicationEventPublisher.java:56)
at io.jmix.core.cluster.LocalApplicationEventChannelSupplier$1.lambda$send$0(LocalApplicationEventChannelSupplier.java:52)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at io.jmix.core.cluster.LocalApplicationEventChannelSupplier$1.send(LocalApplicationEventChannelSupplier.java:52)
at org.springframework.messaging.MessageChannel.send(MessageChannel.java:45)
at io.jmix.core.cluster.ClusterApplicationEventPublisher.publish(ClusterApplicationEventPublisher.java:70)
at io.jmix.flowui.UiEventPublisher.publishEventForUsers(UiEventPublisher.java:163)
at io.jmix.quartzflowui.event.JobExecutionListener.jobToBeExecuted(JobExecutionListener.java:67)
at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1927)
... 3 common frames omitted
2024-11-13 00:02:00 - Unable to notify JobListener(s) of Job to be executed: (Job will NOT be executed!). trigger= DEFAULT.emailSendingCronTrigger job= DEFAULT.emailSending
org.quartz.SchedulerException: JobListener 'quartz_JobExecutionListener' threw exception: User not found
at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1929)
at org.quartz.core.JobRunShell.notifyListenersBeginning(JobRunShell.java:324)
at org.quartz.core.JobRunShell.run(JobRunShell.java:173)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.springframework.security.core.userdetails.UsernameNotFoundException: User not found
at io.jmix.securitydata.user.AbstractDatabaseUserRepository.loadUserByUsername(AbstractDatabaseUserRepository.java:186)
at io.jmix.core.security.impl.SystemAuthenticationProvider.authenticate(SystemAuthenticationProvider.java:48)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:182)
at io.jmix.core.security.impl.SystemAuthenticatorImpl.begin(SystemAuthenticatorImpl.java:75)
at io.jmix.core.security.impl.SystemAuthenticatorImpl.runWithUser(SystemAuthenticatorImpl.java:117)
at io.jmix.flowui.UiEventPublisher.sendEventToUserSessions(UiEventPublisher.java:105)
at io.jmix.flowui.UiEventPublisher.publishEventForUsersInternal(UiEventPublisher.java:88)
at io.jmix.flowui.UiEventPublisher.onUiUserEvent(UiEventPublisher.java:83)
at jdk.internal.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:365)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:237)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:168)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:451)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:384)
at io.jmix.core.cluster.ClusterApplicationEventPublisher.onAppEventMessage(ClusterApplicationEventPublisher.java:56)
at io.jmix.core.cluster.LocalApplicationEventChannelSupplier$1.lambda$send$0(LocalApplicationEventChannelSupplier.java:52)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at io.jmix.core.cluster.LocalApplicationEventChannelSupplier$1.send(LocalApplicationEventChannelSupplier.java:52)
at org.springframework.messaging.MessageChannel.send(MessageChannel.java:45)
at io.jmix.core.cluster.ClusterApplicationEventPublisher.publish(ClusterApplicationEventPublisher.java:70)
at io.jmix.flowui.UiEventPublisher.publishEventForUsers(UiEventPublisher.java:163)
at io.jmix.quartzflowui.event.JobExecutionListener.jobToBeExecuted(JobExecutionListener.java:67)
at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1927)
... 3 common frames omitted (edited)
Kind regards,
Mladen