Team calenders scheduled job
Asked by Thor Henrik Nordvik:

Team calendar

<br />

scheduled job gives error in the log : Remind Invitees about Upcoming Team Calendar Events

<br />

2020-01-28 00:00:00,271 WARN \[team-calendars-worker-0\] \[confluence.impl.hibernate.ConfluenceHibernateTransactionManager\] doRollback Performing rollback. Transactions: -\>\[PluginReadWriteTx\]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1304922040)2020-01-28 00:00:00,272 ERROR \[team-calendars-worker-0\] \[extra.calendar3.util.DefaultAsynchronousTaskExecutor\] lambda$wrap$1 Exception happens on task execution:java.lang.IllegalArgumentException: Range start must be before range end2020-01-28 00:00:00,272 ERROR \[team-calendars-worker-0\] \[extra.calendar3.util.DefaultAsynchronousTaskExecutor\] lambda$wrap$1 Exception in task submitted from thread team-calendars-worker-0 here:java.lang.Exception: Client stack trace

1. What does this scheduled job do ?
2. What is the error ?


Answers:
author: Shannon S
body: Hello [@Thor Henrik Nordvik](/t5/user/viewprofilepage/user-id/3567833),

Thank you for bringing this up to us. The error looks like the one in this bug:

* [CONFSERVER-48853](https://jira.atlassian.com/browse/CONFSERVER-48853) *java.lang.RuntimeException: names do not exist: (AO_950DC3_TC_EVENTS, )*

However, this is for a much older version of Team Calendars.

Can you let me know what version of Confluence and Team Calendars you're running, and if you'er encountering any issues? What part of the error in the logs does **Remind Invitees about Upcoming Team Calendar Events** come from that you mentioned?

Regards,

Shannon

comments: author: Thor Henrik Nordvik
body: Hi Shannon   

We get the error message in the log for both our production and test environment   
Our production environment i   
Confluence 6.12.4 and Team calender 6.0.27  
Our test environment Confluence 6.15.9 Team calender 6.0.47

We see the same error message in the log for both environments.

In our test environment i stoped the scheduled job "Remind Invitees about Upcoming Team Calendar Events" and the error message did not show in the log.

I can't see that there are any error in the functionality for the Team calender


author: Shannon S
body: Hi Thor,

Thank you for confirming your versions with me.

Can you tell me where you saw the message *Remind Invitees about Upcoming Team Calendar Events*? I need to be able to see the stack trace that contains that message before I would be able to tell you what it's in regards to. The logs you sent earlier don't contain that message so there's not much for me to go on, unfortunately.

Thank you!

Shannon


author: Thor Henrik Nordvik
body: Hi

I did not find " *Remind Invitees about Upcoming Team Calendar Events" in the log files. That is a schedules job found under Confluece andmins and scheduled jobs ../*admin/scheduledjobs/viewscheduledjobs.action

This runs ever 5 minutes. and if i disables this the errormessages is not written to the log


author: Shannon S
body: Hello Thor,

My assumption is the "Remind Invitees about Upcoming Team Calendar Events" will probably trigger the Reminder setting:

* [Reminders in Team Calendars](https://confluence.atlassian.com/teamcal/reminders-693899708.html)

Is your team getting their reminders, if you have it enabled?

If you want to know what the error is, then you will need to look at your Confluence Server logs for the full stack-trace. You can check the documentation on [working with Confluence logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) for details on how to find those logs in your site.

If you want help analyzing them, you can let me know the stack-trace you receive when that error is generated in the console.

Regards,

Shannon


author: Thor Henrik Nordvik
body: HI Shannon

I have now created a support zip file from both our nodes, how can i send these to you?  
Should i open a task for this ?

I have turned off the scheduled jobb, it seems not to work, and the Confluence logs are filled with error messages about it


author: Shannon S
body: Good afternoon, Thor! Thank you for the follow-up.

It won't be possible to attach your entire Support zip here, so it's best to inspect your logs to extract the specific stack trace that is causing the error. You can share that stack trace here.

Have a look into when the scheduled job attempted to run, and any error messages you see that occur after that time. They generally start with the message ERROR followed by a *caused by* line that will tell you what is causing the error.

Let me know if you have any questions.

Shannon


author: Thor Henrik Nordvik
body: 2020-03-08 06:25:00,280 ERROR \[team-calendars-worker-0\] \[extra.calendar3.util.DefaultAsynchronousTaskExecutor\] lambda$wrap$1 Exception in task submitted from thread team-calendars-worker-0 here:  
java.lang.Exception: Client stack trace  
at com.atlassian.confluence.extra.calendar3.util.DefaultAsynchronousTaskExecutor.clientTrace(DefaultAsynchronousTaskExecutor.java:80)  
at com.atlassian.confluence.extra.calendar3.util.DefaultAsynchronousTaskExecutor.lambda$submit$0(DefaultAsynchronousTaskExecutor.java:63)  
at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$withRequestContext$1(VCacheRequestContextOperations.java:59)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)  
2020-03-08 06:25:33,979 WARN \[Caesium-1-4\] \[impl.schedule.caesium.JobRunnerWrapper\] runJob Scheduled job LaasPerformanceLoggingJob#LaasPerformanceLoggingJob completed unsuccessfully with response JobRunnerResponse\[runOutcome=ABORTED,message='LaaS performance logging is turned off'\]  
2020-03-08 06:30:00,264 WARN \[team-calendars-worker-1\] \[confluence.impl.hibernate.ConfluenceHibernateTransactionManager\] doRollback Performing rollback. Transactions:  
-\>\[PluginReadWriteTx\]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #2136153628)  
2020-03-08 06:30:00,265 ERROR \[team-calendars-worker-1\] \[extra.calendar3.util.DefaultAsynchronousTaskExecutor\] lambda$wrap$1 Exception happens on task execution:  
java.lang.IllegalArgumentException: Range start must be before range end  
at net.fortuna.ical4j.model.DateRange.\<init\>(DateRange.java:71)  
at net.fortuna.ical4j.model.Period.\<init\>(Period.java:101)  
at net.fortuna.ical4j.model.Component.calculateRecurrenceSet(Component.java:352)  
at com.atlassian.confluence.extra.calendar3.ical4j.RecurrenceRuleProcessor.processRRuleForReminder(RecurrenceRuleProcessor.java:425)  
at com.atlassian.confluence.extra.calendar3.ical4j.RecurrenceRuleProcessor.getRecurrenceEventsForReminder(RecurrenceRuleProcessor.java:333)  
at com.atlassian.confluence.extra.calendar3.DefaultCalendarManager.getEventUpComingReminder(DefaultCalendarManager.java:2049)  
at com.atlassian.confluence.extra.calendar3.DefaultCalendarManager.getEventUpComingReminder(DefaultCalendarManager.java:2031)  
at sun.reflect.GeneratedMethodAccessor2126.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)  
at com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter$WrappedMethodInvocation.proceed(ExportableInterceptorAdapter.java:53)  
at com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter$SpringMethodInvocationAdapter.proceed(SpringInterceptorAdapter.java:50)  
at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)  
at com.atlassian.plugins.spring.interceptor.spi.SpringInterceptorAdapter.invoke(SpringInterceptorAdapter.java:23)  
at sun.reflect.GeneratedMethodAccessor918.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
at com.sun.proxy.$Proxy327.invoke(Unknown Source)  
at com.atlassian.plugins.spring.interceptor.plugin.ExportableInterceptorAdapter.invoke(ExportableInterceptorAdapter.java:26)  
at sun.reflect.GeneratedMethodAccessor917.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)  
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)  
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
at com.sun.proxy.$Proxy3019.invoke(Unknown Source)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
at com.sun.proxy.$Proxy3024.getEventUpComingReminder(Unknown Source)  
at com.atlassian.confluence.extra.calendar3.reminder.job.CalendarReminderJob$RemindEventForUserCollector.lambda$call$1(CalendarReminderJob.java:100)  
at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:21)  
at com.atlassian.sal.spring.component.SpringHostContextAccessor$1.doInTransaction(SpringHostContextAccessor.java:71)  
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)  
at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:68)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.access$001(ConfluenceSpringHostContextAccessor.java:21)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$3(ConfluenceSpringHostContextAccessor.java:72)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:72)  
at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
at com.sun.proxy.$Proxy325.doInTransaction(Unknown Source)  
at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)  
at com.sun.proxy.$Proxy325.doInTransaction(Unknown Source)  
at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:18)  
at sun.reflect.GeneratedMethodAccessor281.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)  
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)  
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
at com.sun.proxy.$Proxy2979.execute(Unknown Source)  
at com.atlassian.confluence.extra.calendar3.reminder.job.CalendarReminderJob$RemindEventForUserCollector.call(CalendarReminderJob.java:99)  
at com.atlassian.confluence.extra.calendar3.reminder.job.CalendarReminderJob$RemindEventForUserCollector.call(CalendarReminderJob.java:96)  
at com.atlassian.confluence.extra.calendar3.util.DefaultAsynchronousTaskExecutor.lambda$wrap$1(DefaultAsynchronousTaskExecutor.java:70)  
at com.atlassian.confluence.extra.calendar3.util.DefaultAsynchronousTaskExecutor.lambda$submit$0(DefaultAsynchronousTaskExecutor.java:63)  
at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$withRequestContext$1(VCacheRequestContextOperations.java:59)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)  
2020-03-08 06:30:00,266 ERROR \[team-calendars-worker-1\] \[extra.calendar3.util.DefaultAsynchronousTaskExecutor\] lambda$wrap$1 Exception in task submitted from thread team-calendars-worker-1 here:  
java.lang.Exception: Client stack trace  
at com.atlassian.confluence.extra.calendar3.util.DefaultAsynchronousTaskExecutor.clientTrace(DefaultAsynchronousTaskExecutor.java:80)  
at com.atlassian.confluence.extra.calendar3.util.DefaultAsynchronousTaskExecutor.lambda$submit$0(DefaultAsynchronousTaskExecutor.java:63)  
at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$withRequestContext$1(VCacheRequestContextOperations.java:59)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)


Tags: confluence-server

server

team-calendars-for-confluence