Issue
- After a seemingly successful upgrade to Liferay DXP 7.1 the following error is showing up in the logs while starting the DXP bundle:
Failed upgrade process for module com.liferay.dynamic.data.mapping.service
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.PortalException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
Environment
- Upgrade from Liferay Portal 6.2 to Liferay DXP 7.1
Resolution
- You may get the "prolog" exception because the process tries to convert into JSON the already converted document types.
-
Doublecheck the database table DDMStructure
- If the StorageType is still on xml (while the individual structures can already converted to json) change the column StorageType to json and the portal can start successfully.