Une erreur s'est produite lors du traitement du gabarit.
Java method "com.iberdrola.liferay.freemarker.utilities.impl.FreemarkerUtilitiesImpl.getPreviosAndNextBlog(Long, String, com.liferay.portal.kernel.theme.ThemeDisplay)" threw an exception when invoked on com.iberdrola.liferay.freemarker.utilities.impl.FreemarkerUtilitiesImpl object "com.iberdrola.liferay.freemarker.utilities.impl.FreemarkerUtilitiesImpl@724b138a"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign navigationUrls = freemarkerUt...  [in template "46053#46093#18283541" at line 21, column 1]
----
1<#setting url_escaping_charset='utf-8'> 
2 
3<#assign 
4JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
5WorkflowConstants = staticUtil["com.liferay.portal.kernel.workflow.WorkflowConstants"] 
6DLURLHelper = serviceLocator.findService("com.liferay.document.library.util.DLURLHelper") 
7DLAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") 
8AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") 
9AssetCategoryServiceUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
10AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") 
11freemarkerUtilities = serviceLocator.findService("com.iberdrola.liferay.freemarker.utilities.api.FreemarkerUtilities") 
12articleId =  .vars['reserved-article-id'].data 
13article = JournalArticleLocalService.getLatestArticle(groupId, articleId,  WorkflowConstants.STATUS_APPROVED) 
14articleContent = article.getContentByLocale(locale) 
15docXml = saxReaderUtil.read(article.getContentByLocale(locale)) 
16actualURL = themeDisplay.getURLCurrent()?replace("/-/","") 
17stringPattern = "dd '" + languageUtil.get(locale, "of") + "' MMMM yyyy" 
18fechaModificacion =  dateUtil.getDate(article.getDisplayDate(), stringPattern, locale) 
19categories = AssetCategoryServiceUtil.getCategories(article.getModelClassName(), article.getResourcePrimKey()) 
20
21<#assign navigationUrls = freemarkerUtilities.getPreviosAndNextBlog(article.getResourcePrimKey()?number,actualURL,themeDisplay) > 
22 
23<#if categories?has_content> 
24	<#list categories as category> 
25		 
26		<#assign categoryURL = category.getName()?replace("á","a")?replace("é","e")?replace("í","i")?replace("ó","o")?replace("ú","u")?replace(" ","-") /> 
27		<#assign parentCategoryId = category.getParentCategoryId()/> 
28		<#assign vocabularyId = category.getVocabularyId() /> 
29		<#assign parentCategory = AssetCategoryServiceUtil.getAssetCategory(parentCategoryId)/> 
30		<#assign parentCategoryURL =parentCategory.getName()?replace("á","a")?replace("é","e")?replace("í","i")?replace("ó","o")?replace("ú","u")?replace(" ","-") /> 
31	</#list> 
32</#if> 
33<#if vocabularyId?has_content> 
34	<#assign vocabularyName = AssetVocabularyLocalService.fetchAssetVocabulary(vocabularyId).getName()/> 
35</#if> 
36<div class="ibd-blog-detail"> 
37    <div class="ibd-blog-detail__body"> 
38		<div id="navegacion-enlace-back-blog"> 
39			<a class="link_home_blog" href="/a-propos-iberdrola/media/${parentCategoryURL?lower_case}"><i></i> Retour aux articles</a> 
40		</div> 
41        <div class="ibd-blog-detail__text">${contentBlog.getData()}</div> 
42		 
43		<div class="contenido-blog-navegacion-completo"> 
44			<#if navigationUrls?has_content> 
45				<div id="navegacion-enlace"> 
46					<a class="link_home_blog" href="/blog/${categoryURL?lower_case}/${navigationUrls[0]}"><i></i> Précédent </a> 
47				</div>	 
48				<div id="navegacion-enlace"> 
49					<a class="link_home_blog" href="/blog/${categoryURL?lower_case}/${navigationUrls[1]}">Suivant <i></i></a> 
50				</div>	 
51			</#if> 
52		</div> 
53    </div> 
54    <#-- RRSS --> 
55	 
56    <div class="ibd-blog-detail__social-networks"> 
57		<#if IconRedes??>  
58			<h3>Partager</h3> 
59			<div class="ibd-blog-detail__social-networks-icons"> 
60				<#list IconRedes.getSiblings() as link> 
61					<#assign urlRedesSociales = "#" /> 
62					<#assign IconRedes = "#" /> 
63					<#-- URL REDES SOCIALES --> 
64					<#if link?? && link.urlRedes.getData()?? && link.getData()??> 
65						<#assign urlRedesSociales = link.urlRedes.getData() /> 
66						<#assign IconRedes = link.getData() /> 
67					</#if> 
68					<a id="ibd-blog-detail__social-networks" href="${urlRedesSociales}"><img class="imgRrss" src="${IconRedes}" alt=""></a> 
69				</#list> 
70				<a id="ibd-blog-detail__social-networks-blog" href="#" onclick="copyToClipboard()" class="aImgTwitter" onfocusout="hideMessage()"> 
71					<img class="imgRrss" src="/o/iberdrola-fr-theme/images/blog/Link-Thick.svg" alt=""> 
72				</a> 
73			</div> 
74			<span style="display:none" id="copyLink">Lien copié</span> 
75		</#if> 
76    </div> 
77    <#-- FIN RRSS --> 
78</div> 
79 
80<script> 
81    function copyToClipboard() { 
82 
83        navigator.clipboard.writeText(window.location.href); 
84        document.getElementById("copyLink").style.display= ''; 
85 
86
87 
88    function hideMessage() { 
89        document.getElementById("copyLink").style.display= 'none'; 
90
91</script> 
Une erreur s'est produite lors du traitement du gabarit.
Java method "com.sun.proxy.$Proxy1109.getArticleByUrlTitle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1109 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@1b588b50"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign journalArticle = journalArtic...  [in template "46053#46093#18193149" at line 7, column 1]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
3 
4<#assign actualCategoryURLName = themeDisplay.getURLCurrent()?replace("/-/","")> 
5 
6 
7<#assign journalArticle = journalArticleLocalService.getArticleByUrlTitle(themeDisplay.getScopeGroupId(),actualCategoryURLName) > 
8<#assign assetEntry = assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()) > 
9<#assign categoryName = assetEntry.getCategories()[0].getName()> 
10<div class="ibd-blog__tags"> 
11	<h3>Catégories</h3> 
12	 
13    <#if entries?has_content> 
14        <ul class="ibd-blog__cat-container"> 
15            <#list entries as navigationEntry> 
16				<#if categoryName != navigationEntry.getName()> 
17					<li> 
18						<a href="${navigationEntry.getURL()}" class="ibd-blog__cat-select">${navigationEntry.getName()}</a> 
19					</li> 
20				</#if> 
21            </#list> 
22        </ul> 
23    </#if> 
24</div> 
Une erreur s'est produite lors du traitement du gabarit.
The following has evaluated to null or missing:
==> JournalArticleLocalService.fetchArticleByUrlTitle(themeDisplay.getLayout().getGroupId(),actualURL)  [in template "46053#46093#18193185" at line 11, column 20]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign journal = JournalArticleLocal...  [in template "46053#46093#18193185" at line 11, column 1]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") > 
2<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") > 
3<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") > 
4<#assign assetCategoryServiceUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") > 
5<#assign assetEntryLocalServiceUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") > 
6<#assign assetEntryLocalServiceUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") > 
7<#assign freemarkerUtilities = serviceLocator.findService("com.iberdrola.liferay.freemarker.utilities.api.FreemarkerUtilities")> 
8 
9<#assign actualURL = themeDisplay.getURLCurrent()?replace("/-/","")> 
10 
11<#assign journal = JournalArticleLocalService.fetchArticleByUrlTitle(themeDisplay.getLayout().getGroupId(),actualURL) > 
12<#assign articlePk = journal.getResourcePrimKey()?number > 
13<#assign navigationUrls = freemarkerUtilities.getPreviosAndNextBlog(articlePk,actualURL,themeDisplay) > 
14<#assign categories = assetCategoryServiceUtil.getCategories("com.liferay.journal.model.JournalArticle", articlePk)> 
15<#assign journalEntries = freemarkerUtilities.getNJournalFormCategories(3,articlePk, categories)> 
16 
17<#if categories?has_content> 
18	<#list categories as category> 
19		<#assign categoryURL = category.getName()?replace("á","a")?replace("é","e")?replace("í","i")?replace("ó","o")?replace("ú","u")?replace(" ","-") /> 
20	</#list> 
21</#if> 
22 
23<#if !categoryURL??> 
24	<#assign categoryURL = "" /> 
25</#if> 
26 
27<div class="ibd-blog__related"> 
28    <h3>Autres articles pouvant vous intéresser</h3> 
29    <ul class="show-quick-actions-on-hover ibd-blog__related-content"> 
30	<#list journalEntries> 
31	 
32		<#items as journal> 
33			<#assign urlContent = "/blog/" + categoryURL?lower_case + "/" + journal.urlTitle?lower_case > 
34			 
35			<#assign docXml = saxReaderUtil.read(journal.getContentByLocale(locale)) > 
36			<#assign titulo = docXml.valueOf("//dynamic-element[@name='title']/dynamic-content/text()") > 
37			<#assign descripcion = docXml.valueOf("//dynamic-element[@name='description']/dynamic-content/text()") > 
38			<#assign stringPattern = "dd '" + languageUtil.get(locale, "of") + "' MMMM yyyy" > 
39			<#assign fechaModificacion =  dateUtil.getDate(journal.getModifiedDate(), stringPattern, locale) > 
40			 
41			<li class="ibd-blog__related-content-item"> 
42				<a class="ibd-blog__related-content-info autofit-col autofit-col-expand" href="${urlContent}"> 
43					 <div class="ibd-blog__related-content-title-datetime"> 
44						<p class="ibd-blog__related-content-date list-group-subtitle">${fechaModificacion}</p> 
45					</div> 
46					<p class="ibd-blog__related-content-title h4 list-group-title text-truncate" title="${titulo}"> 
47							${titulo} 
48					</p> 
49					<p class="ibd-blog__related-content-description list-group-subtitle text-truncate">${descripcion}</p> 
50				</a> 
51				<div class="autofit-col d-none"></div> 
52			</li> 
53		</#items> 
54		 
55        </#list> 
56    </ul> 
57	<div class="contenido-blog-navegacion-categorias"> 
58		<#if navigationUrls?has_content> 
59			<div id="navegacion-enlace"> 
60				 
61				<a class="link_home_blog" href="/blog/${categoryURL?lower_case}/${navigationUrls[0]}"><i></i> Précédent </a> 
62			</div> 
63			<div id="navegacion-enlace"> 
64				<a class="link_home_blog" href="/blog/${categoryURL?lower_case}/${navigationUrls[1]}">Suivant <i></i></a> 
65				 
66			</div> 
67			 
68		</#if> 
69	</div> 
70</div>