Error " org.gatein.management.api.exceptions.OperationException: Exception reading data for import" when importing site exported from EPP 5.1.1 to EPP 5.2.2

Solution Verified - Updated -

Environment

  • JBoss Enterprise Portal Platform (EPP)
    • 5.2.2

Issue

We have a site we exported from EPP 5.1.1 and want to import in EPP 5.2.2, but we have the following error when we try this:

ExecuteUploadActionException: gwtupload.server.exceptions.UploadActionException: org.gatein.management.api.exceptions.OperationException: Exception reading data for import.

How can we solve this error?

Resolution

Check the exported XML. Some elements that were exported in EPP 5.1.1 aren't expected in EPP 5.2.2. For example, the element <page-body /> in file portal.xml isn't expected as a child of <container> element. It should be a child of element <portal-layout>.

If the page-body isn't bad positioned, it's needed to debug the importing process to find others possible unexpected elements. It can be done by debugging the class org.exoplatform.portal.mop.management.operations.MopImportResource.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.