ArrayIndexOutOfBoundsException in SimpleDateFormat.format

Solution Verified - Updated -

Issue

  • We see the following exception at times:
java.lang.ArrayIndexOutOfBoundsException
            at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:1084)
            at java.text.SimpleDateFormat.format(SimpleDateFormat.java:917)
            at java.text.SimpleDateFormat.format(SimpleDateFormat.java:887)
            at java.text.DateFormat.format(DateFormat.java:327)

Environment

  • Java

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content