StackOverflowError when scheduling a job with Month option and GMT timezone
search cancel

StackOverflowError when scheduling a job with Month option and GMT timezone

book

Article ID: 377880

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

When trying to schedule a job with GMT Locale and Monthly option, a StackOverflow error is thrown.

 

STEPS TO REPRODUCE:

  1. Connect to Clarity – Account Settings
  2. Set your user locale to GMT
  3. Set your locale to English (UK)
  4. Now go to Reports and Jobs – Available Jobs
  5. Pick any job, i.e. Datamart Extraction
  6. Select Scheduled
  7. Select Start Date – today’s date and Start Time 0:00
  8. Click on Set Recurrence
  9. Select Monthly – Days of the Month 1, Months – June
  10. Click Submit

Expected Results: Job to be scheduled as expected

Actual Results: Error 500 - Internal Server Error. In the logs we see error Caused by: com.niku.union.service.ServiceException: java.lang.StackOverflowError

ERROR 2024-09-20 12:02:52,659 [http-nio-1623-exec-925] union.service (clarity:xxxxx:xxxxx:nmc.addSchedulerProperties) (a13a30b0-43cf-4693-9823-23d21e0d7f0b) rollback exception
java.lang.StackOverflowError
    at java.base/java.util.SimpleTimeZone.getStart(SimpleTimeZone.java:719)
    at java.base/java.util.SimpleTimeZone.getOffset(SimpleTimeZone.java:683)
    at java.base/java.util.SimpleTimeZone.getOffsets(SimpleTimeZone.java:567)
    at java.base/java.util.SimpleTimeZone.getOffset(SimpleTimeZone.java:540)
    at java.base/sun.util.calendar.ZoneInfo.getOffsets(ZoneInfo.java:285)
    at java.base/sun.util.calendar.ZoneInfo.getOffsets(ZoneInfo.java:228)
    at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2301)
    at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2273)
    at java.base/java.util.Calendar.setTimeInMillis(Calendar.java:1827)
    at java.base/java.util.GregorianCalendar.add(GregorianCalendar.java:1077)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:567)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)
    at com.niku.njs.JobImpl.nextDay(JobImpl.java:663)

Environment

Clarity 16.2.3

Cause

DE154134

Resolution

DE154134, in review by Engineering