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 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 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 stylebooks with accent or special characters in the title should export without error. - In the case of Liferay SaaS 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
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar