Legacy Knowledge Base
Published Jul. 2, 2025

Logs are flooded with errors of java.lang.IndexOutOfBoundsException

Written By

Alfonso Abad

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The following error shows constantly on the logs:
ERROR [catalina-exec-54][LiferayMethodExceptionEventHandler:34] java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2

Environment

  • Portal 6.2
  • DXP 7.0

Resolution

  • There are two reasons why this could be happening:
    • Temp files: In this case some temp file could be the cause. Simply go to Control Panel > Configuration > Server administration and execute the task Clear content cached across the cluster.
    • Language issues: The cause of the error could be that there is a conflict with languages. Validate what languages are being offered as translations and the default portal language. It could be that a translation language is being offered but it's not configured on the portal-ext.properties file.

 

Did this article resolve your issue ?

Legacy Knowledge Base