java.lang.StackOverflowError while upgrading caused by getSuperLocale
Written By
Solyom Nagy-Györkö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
- Upgrading the database with the database upgrade tool fails, with the following (or similar) messages in the logs
INFO [main][UpgradeProcess:145] Failed upgrade process com.liferay.dynamic.data.mapping.internal.upgrade.v3_7_3.DDMFormInstanceReportUpgradeProcess in 37 ms
ERROR [main][UpgradeStepRegistratorTracker:185] Failed upgrade process for module com.liferay.dynamic.data.mapping.service
com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.StackOverflowError
Caused by: java.lang.StackOverflowError
at com.liferay.portal.language.LanguageResources.getSuperLocale(LanguageResources.java:93) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:276) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
at com.liferay.portal.language.LanguageResources$LanguageResourcesBundle.<init>(LanguageResources.java:279) ~[portal-impl.jar:?]
...
Resolution
-
Official solution
- This behavior is addressed in DXP 7.4 U92
- If you require a fix for previous updates with LPS-193968, open a support ticket with your DXP Subscription
-
Workaround for upgrades
- Please, restart the upgrade process from the beginning
- Reportedly on the third try, the database upgrade passes
Did this article resolve your issue ?