2017-07-17 1 views
0

Pendant que j'essaie d'importer la mise en page avec l'importateur de ressources, je suis confronté à ce problème: l'article n'a pas pu être chargé et la page n'a pas pu être créée. J'ai eu cette erreur de journal:StructureNameException: le nom est null pour les paramètres régionaux avec l'importeur de ressources

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) 

sont correctement setted Locale dans le fichier portail ext.proerties:

locales=fr_FR 

Et pour la structure, je suis avec une structure définissant fr_FR comme langue par défaut:

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

Je sais qu'il y avait un bug https://issues.liferay.com/browse/LPS-60939 mais il a été résolu depuis 7.0.0 Alpha 5 Version. Je m'appelle Liferay 7.0 GA3 CE.

Avez-vous une idée de ce problème? Merci

+0

Comme GA4 est sorti maintenant, cela vous dérangerait-il de valider si cela se passe aussi sur GA4? Ce serait une perte de temps pour traquer un bug fixe. De plus, quand vous êtes sur 7.0, pourquoi étiqueter le liferay-6? –

+0

J'utilise la balise Liferay6 parce que, AFAIK, il n'y a aucun changement en utilisant l'importateur de ressources de Liferay 6 à Liferay 7. Donc ce sujet pourrait être valide pour Liferay 6 aussi. – wikimix

Répondre

0

Pour corriger ce bug, vous devez ajouter cette propriétés comme suit system-ext.properties

user.country=FR 
user.language=fr 

Et ajouter cette propriété portal-ext.properties:

##Locales 
locales=fr_FR 

# 
# Specify the locales that are enabled by default 
# 
locales.enabled=fr_FR 

# 
# This sets the default locale of the portal, overriding the properties 
# "user.language" and "user.country" specified in system.properties. 
# 
company.default.locale=fr_FR 
locale.default.request=false