DocumentException during upgrade process while reading META-INF/portal-hbm.xml

Issue

  • A DocumentException is thrown at certain point when you run the upgrade process from the Gogo Shell using command upgrade:run or upgrade:runAll
  • You can find a stack trace similar to the following in the upgrade.log:
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

  • Reproducible during any upgrade process.

Resolution

    • We have seen this error when some pending upgrade process is executed from the Gogo Shell.
    • Stop your server and run the pending processes through the provided script db_upgrade.sh. This way the exception should no longer be thrown.

Additional Information

 

 

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0