Issue
- When attempting to export a stylebook with a name containing accent or special characters, a blank page is displayed and the following error appears in the logs:
Unable to process portlet com_liferay_style_book_web_internal_portlet_StyleBookPortlet: 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 @6256ac4f
Environment
- Liferay Experience Cloud Self-Managed (LXC SM)
- Liferay Experience Cloud (LXC)
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 LXC-SM and LXC.
- This can be added in
LCP.json
or as an Environment Variable. Once this parameter is added, the issue should be resolved and stylebooks with accent or special characters in the title should export without error. - In the case of Liferay Experience Cloud (LXC) customers, they need open a ticket in Zendesk so that the support engineer, with the help of the technical team, can add this Java variable.
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