StructureNameException:对于具有resources-importer

时间:2017-07-17 09:25:30

标签: liferay liferay-theme liferay-7

当我尝试使用资源导入器导入页面布局时,我遇到了这个问题:文章无法加载,无法创建页面,我有这个日志错误:

09:13:33,693 ERROR [liferay/hot_deploy-1][SerialDestination:61] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={companyId=0, groupId=0, command=deploy, servletContextName=theme-galian}} com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.dynamic.data.mapping.exception.StructureNameException: Name is null for locale français (France)
        at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
        at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
        at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
        at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
        at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
        at java.lang.Thread.run(Thread.java:748) Caused by: com.liferay.dynamic.data.mapping.exception.StructureNameException: Name is null for locale français (France)
        at com.liferay.dynamic.data.mapping.service.impl.DDMStructureLocalServiceImpl.validate(DDMStructureLocalServiceImpl.java:1828)
        at com.liferay.dynamic.data.mapping.service.impl.DDMStructureLocalServiceImpl.validate(DDMStructureLocalServiceImpl.java:1791)
        at com.liferay.dynamic.data.mapping.service.impl.DDMStructureLocalServiceImpl.doUpdateStructure(DDMStructureLocalServiceImpl.java:1535)
        at com.liferay.dynamic.data.mapping.service.impl.DDMStructureLocalServiceImpl.updateStructure(DDMStructureLocalServiceImpl.java:1315)

在portal-ext.proerties文件中正确设置了区域设置:

locales=fr_FR

对于Structure,我用FR_fr定义结构作为默认语言:

    {
        "availableLanguageIds": [
            "fr_FR",
            "en_US"
        ],
        "defaultLanguageId": "fr_FR",
        "fields": [
            {
                "label": {
                    "fr_FR": "Texte",
                    "en_US": "Texte"
.
.
.
.
.
.

我知道有一个错误https://issues.liferay.com/browse/LPS-60939但是自7.0.0 Alpha 5版本以来它已经解决了。

我正在使用 Liferay 7.0 GA3 CE。

你对这个问题有什么看法吗?感谢

1 个答案:

答案 0 :(得分:2)

要修复此错误,您必须按如下方式添加此属性 system-ext.properties

overflow-y: scroll

并将此属性添加到 portal-ext.properties

user.country=FR
user.language=fr