Issue
When running certain upgrade processes from the Gogo Shell using
upgrade:execute, a DocumentException is observed:com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.xml.DocumentException {...} Caused by: com.liferay.portal.kernel.xml.DocumentException at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:372) at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:346) at com.liferay.portal.kernel.xml.UnsecureSAXReaderUtil.read(UnsecureSAXReaderUtil.java:46) at com.liferay.portal.kernel.upgrade.UpgradeMVCCVersion.getClassElements(UpgradeMVCCVersion.java:98)
Environment
- Liferay DXP upgrades using the Gogo shell
Resolution
- (Optional) Use the
upgrade:checkGogo shell command to identify which module(s) upgrade is pending. You can attempt upgrading it individually usingupgrade:execute[module_name]. - If the error persists, you must stop your Liferay server and perform the pending upgrade processes using the bundle's Database Upgrade Tool.
Once the pending processes complete, the DocumentException no longer appears.
Additional Information
- A module is ready for upgrade when its dependencies are satisfied. See Upgrading Modules Using Gogo Shell: Listing Modules Ready for Upgrade for more information.