Support Article
IllegalArgumentException invalid year value
SA-11548
Summary
You see IllegalArgumentException in the logfiles. Upon research, it appears the issue is related to the formatting of a date file with the following Function: @(Pega-RULES:DateTime).CurrentDate('YYYYMMDDTHHMMSS.QQQ', 'GMT').
Error Messages
javax.ejb.EJBException: nested exception is: java.lang.IllegalArgumentException: Invalid year value
Steps to Reproduce
Enter data in the UI and continue through the flow.
Root Cause
The root cause of this problem is a defect in customer application code/rules. The date format string had incorrect case for some of the date components. 'Y' should be 'y'.
Resolution
This issue is resolved through the following local change: The date format string was dropped. Use of the correct Java date format string would have worked too.
Published July 6, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.