# java.lang.ArrayIndexOutOfBoundsException in populateBusinessDays during Start Up

**URL:** <https://forums.pega.com/t/java-lang-arrayindexoutofboundsexception-in-populatebusinessdays-during-start-up/6124>\
**Category:** General\
**Tags:** insurance, pega-marketing, 8-8-3, senior-system-architect\
**Created:** [February 15, 2024, 10:42am UTC](https://forums.pega.com/t/java-lang-arrayindexoutofboundsexception-in-populatebusinessdays-during-start-up/6124 "2024-02-15T10:42:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitry.markov](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/dmitry.markov/32/9031_2.png) [@dmitry.markov](https://forums.pega.com/u/dmitry.markov)\
**Post date:** [February 15, 2024, 10:42am UTC](https://forums.pega.com/t/java-lang-arrayindexoutofboundsexception-in-populatebusinessdays-during-start-up/6124/1 "2024-02-15T10:42:30Z")

</div>

Dear Colleagues,

We are using Pega v. PRPC-8.8.3-478

We experience weird behaviour of the ootb Pega function (differenceBetweenDays\_080101, wiith the local business calendar) during start up.  
Please find our logs attachted.

The exception looks like that:

java.lang.ArrayIndexOutOfBoundsException: Index 4747 out of bounds for length 3287  
…  
com.pegarules.generated.testgen.Rule\_Decision\_DDF\_Data\_Decision\_Request\_Customer\_DF\_ProcessOffer\_Action\_20220309T160319\_477\_GMT$12$1.onNext(Rule\_Decision\_DDF\_Data\_Decision\_Request\_Customer\_DF\_ProcessOffer\_Action\_20220309T160319\_477\_GMT.java:680) ~[?:?]  
…  
2024-02-01 12:04:28,741 [st], Partitions=[33]] [STANDARD] (ed.pega\_rules\_businesscalendar) FATAL - The business calendar object could not be found  
2024-02-01 12:04:28,741 [st], Partitions=[55]] [STANDARD] (ed.pega\_rules\_businesscalendar) FATAL - The business calendar object could not be found  
2024-02-01 12:04:28,741 [st], Partitions=[19]] [STANDARD] (ed.pega\_rules\_businesscalendar) FATAL - The business calendar object could not be found  
2024-02-01 12:04:28,741 [st], Partitions=[17]] [STANDARD] (ed.pega\_rules\_businesscalendar) FATAL - The business calendar object could not be found  
2024-02-01 12:04:28,741 [nst], Partitions=[3]] [STANDARD] (ed.pega\_rules\_businesscalendar) FATAL - The business calendar object could not be found  
2024-02-01 12:04:28,745 [st], Partitions=[19]] [STANDARD] (sinessCalendar.CalendarUtility) ERROR - Error occured in loading business calendar

I’ve checked similar topics on pdn

1. Pega 8.5.5. (INC-178923) [Pega Platform 8.5.5 Patch Resolved Issues | Support Center](https://support.pega.com/support-doc/pega-platform-855-patch-resolved-issues)?

2. Pega 8.7. (INC-178923) [Pega Platform 8.7 Resolved Issues | Support Center](https://support.pega.com/support-doc/pega-platform-87-resolved-issues)

3. Pega 8.8.3. (INC-264237) [Pega Platform 8.8.3 Patch Resolved Issues | Support Center](https://support.pega.com/support-doc/pega-platform-883-patch-resolved-issues)

However, I’m not sure if they have the same root cause than our problem or differen one.

Another difficulty is that we don’t have the same exception on any other environment than PROD.

I’m looking forward to any information or support on this problem.

Best Regards,

Dmitry

[IndexOurOfBoundsException\_BusinessCalendar\_full.txt](https://forums.pega.com/uploads/short-url/8kSGLo7Y06xe6iviTxzeJgGaHIv.txt) (1.85 MB)

[IndexOurOfBoundsException\_BusinessCalendar\_short.txt](https://forums.pega.com/uploads/short-url/zvLJ1sCwtk8NcFegHBJVqdHEoTf.txt) (5.25 KB)

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [February 26, 2024, 3:48pm UTC](https://forums.pega.com/t/java-lang-arrayindexoutofboundsexception-in-populatebusinessdays-during-start-up/6124/2 "2024-02-26T15:48:41Z")

</div>

@dmitry.markov this would be due to BUG-810654

#issue **830751**

Calendar Object found after recycle  
The Calendar entry was not getting picked properly in production environment after JVM recycle.

Fixed in[8.8.4. Resolved Issues](https://support.pega.com/support-doc/pega-platform-884-patch-resolved-issues)

Please log a support issue via the MSP if you need an in-depth investigation.

Alternatively, please first download HFIX-A969 for 8.8.3 via the MSP if you cannot update to 8.8.4

 ![hfix.png](https://pega1.discourse-cdn.com/pega/original/2X/a/af83a668fb6f2483cb0455670f1c895da69a643f.png)

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [May 14, 2024, 9:55am UTC](https://forums.pega.com/t/java-lang-arrayindexoutofboundsexception-in-populatebusinessdays-during-start-up/6124/3 "2024-05-14T09:55:49Z")

</div>

I can see in INC-B7030 (logged by you on Feburary 19th) that GCS provided you with the hfix on February 29th and you confirmed on March 27th that it resolved your issue.

I will mark my initial answer as the solution so that other users can see the problem was fixed from Pega 8.8.5 onwards.
