Legacy Knowledge Base
Published Sep. 10, 2025

StackOverflowError related to locales during upgrade

Written By

Dávid Hegedüs

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

  • You might encounter an issue where you receive a StackOverflowError during your upgrade process, such as this:
    ERROR [main][ROOT:56] bundle com.liferay.portal.verify.extender:7.0.24 (1063)[com.liferay.portal.verify.extender.internal.osgi.commands.VerifyProcessTrackerOSGiCommands(5021)] : The activate method has thrown an exception
    java.lang.StackOverflowError: null
      at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:?]
      at com.liferay.portal.language.LanguageResources._getMapHolder(LanguageResources.java:140) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:76) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
      at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
        at com.liferay.portal.language.LanguageResources.getMessage(LanguageResources.java:83) ~[portal-impl.jar:?]
    ...
  • This happens when the locale and the super locale are bouncing off of each other, causing an endless loop

Environment

  • Liferay DXP 7.4+

Resolution

  • Make sure to set the locales and locales.enabled properties in the portal-upgrade-ext.properties, for example:
    locales=de_DE,en_US,en_GB,en_IN,fr_FR,pt_BR,pt_PT,tr_TR,ja_JP,es_ES,es_MX,ru_RU,sl_SI
    locales.enabled=de_DE,en_US,en_GB,en_IN,fr_FR,pt_BR,pt_PT,tr_TR,ja_JP,es_ES,es_MX,ru_RU,sl_SI

 

Did this article resolve your issue ?

Legacy Knowledge Base