Note: please note that Liferay has renamed its Liferay Experience
Could offerings to Liferay SaaS (formerly LXC) and
Liferay PaaS (formerly LXC-SM).
Issue
- When attempting to export a fragment with a name containing accent or special characters, a blank page is displayed and the following error appears in the logs:
ERROR [http-nio2-8080-exec-44][PortletServlet:118] Unable to process portlet com_liferay_fragment_web_portlet_FragmentPortlet: javax.portlet.PortletException: java.lang.reflect.InaccessibleObjectException: Unable to make field java.util.LinkedHashMap jdk.nio.zipfs.ZipFileSystem.inodes accessible: module jdk.zipfs does not "opens jdk.nio.zipfs" to unnamed module @7383eae2
javax.portlet.PortletException: javax.portlet.PortletException: java.lang.reflect.InaccessibleObjectException: Unable to make field java.util.LinkedHashMap jdk.nio.zipfs.ZipFileSystem.inodes accessible: module jdk.zipfs does not "opens jdk.nio.zipfs" to unnamed module @7383eae2
Environment
- Liferay PaaS
- Liferay SaaS
Resolution
- To fix this issue, add the following parameter to LIFERAY_JVM_OPTS in Liferay service:
--add-opens=jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED
. - By default, all liferay bundles and docker images run with the mentioned parameter included, it is only missing in Liferay running in Liferay PaaS and Liferay SaaS.
- This can be added in LCP.json or as an Environment Variable. Once this parameter is added, the issue should be resolved and fragments with accent or special characters in the title should export without error.
Additional Information
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión