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@29a952de"; 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		<#assign categoryURL = category.getName()?replace("á","a")?replace("é","e")?replace("í","i")?replace("ó","o")?replace("ú","u")?replace(" ","-") /> 
26		<#assign parentCategoryId = category.getParentCategoryId()/> 
27		<#assign vocabularyId = category.getVocabularyId() /> 
28		<#assign parentCategory = AssetCategoryServiceUtil.getAssetCategory(parentCategoryId)/> 
29		<#assign parentCategoryURL =parentCategory.getName()?replace("á","a")?replace("é","e")?replace("í","i")?replace("ó","o")?replace("ú","u")?replace(" ","-") /> 
30	</#list> 
31</#if> 
32<#if vocabularyId?has_content> 
33	<#assign vocabularyName = AssetVocabularyLocalService.fetchAssetVocabulary(vocabularyId).getName()/> 
34</#if> 
35 
36<#if contenuWebnvoa?? &&contenuWebnvoa.getData()?? && contenuWebnvoa.getData() !=""> 
37	<#assign contenidoSeleccionadoString = contenuWebnvoa.getData() > 
38	<#assign contenidoSeleccionado = contenuWebnvoa.getData()?eval > 
39	<#assign selectedContent = JournalArticleLocalService.fetchJournalArticleByUuidAndGroupId(contenidoSeleccionado.uuid,groupId) /> 
40	<#if selectedContent??> 
41	<div class="hide col-md-12 portlet-column portlet-column-only yui3-dd-drop" id="contenidSeleccionadoDiv"> 
42		<@liferay_journal["journal-article"]  
43			articleId =selectedContent.getArticleId() 
44			ddmTemplateKey=selectedContent.getDDMTemplateKey() 
45			groupId = groupId/> 
46	</div> 
47	</#if> 
48</#if> 
49 
50 
51<div class="ibd-blog-detail"> 
52    <div class="ibd-blog-detail__body"> 
53		<div id="navegacion-enlace-back-blog"> 
54			<a class="Btn_link_home_blog" href="/a-propos-iberdrola/media/${parentCategoryURL?lower_case}"><div class="blogLinkBackIcon"></div> <div class="blogLinkBackText">Retour aux articles</div> </a> 
55		</div> 
56        <div class="ibd-blog-detail__text">${contentBlog.getData()}</div> 
57		 
58		<div class="contenido-blog-navegacion-completo"> 
59			<#if navigationUrls?has_content> 
60				<div id="navegacion-enlace"> 
61					<a class="Btn_link_home_blog" href="/blog/${categoryURL?lower_case}/${navigationUrls[0]}"><div class="blogLinkBackIcon"></div> <div class="blogLinkBackText">Précédent</div></a> 
62				</div>	 
63				<div id="navegacion-enlace"> 
64					<a class="Btn_link_home_blog" href="/blog/${categoryURL?lower_case}/${navigationUrls[1]}"><div class="blogLinkBackText">Suivant</div><div class="blogLinkBackIconDerech"></div></a> 
65				</div>	 
66			</#if> 
67		</div> 
68    </div> 
69    <#-- RRSS --> 
70	 
71    <div class="ibd-blog-detail__social-networks"> 
72		<h3>Partager</h3> 
73		<div class="ibd-blog-detail__social-networks-icons"> 
74			<#if selectReseaux??> 
75				<#if selectReseaux.getOptions()?seq_contains("Facebook")> 
76					<a href="https://www.facebook.com/sharer/sharer.php?u=${themeDisplay.getPortalURL()}/blog/${categoryURL}/${actualURL}"><img class="imgRrss" src="/o/iberdrola-fr-theme/images/blog/RRSS_Facebook.svg" alt=""></a> 
77				</#if> 
78				<#if selectReseaux.getOptions()?seq_contains("Twitter")> 
79					<a href="https://twitter.com/intent/tweet?url=${themeDisplay.getPortalURL()}/blog/${categoryURL}/${actualURL}"><img class="imgRrss" src="/o/iberdrola-fr-theme/images/blog/RRSS_Twitter.svg" alt=""></a> 
80				</#if> 
81				<#if selectReseaux.getOptions()?seq_contains("Whatsapp")> 
82					<a href="https://api.whatsapp.com/send?text=${themeDisplay.getPortalURL()}/blog/${categoryURL}/${actualURL}"><img class="imgRrss" src="/o/iberdrola-fr-theme/images/blog/RRSS_Whatsapp.svg" alt=""></a> 
83				</#if> 
84				<#if selectReseaux.getOptions()?seq_contains("Linkedin")> 
85					<a href="https://www.facebook.com/sharer/sharer.php?u=${themeDisplay.getPortalURL()}/blog/${categoryURL}/${actualURL}"><img class="imgRrss" src="/o/iberdrola-fr-theme/images/blog/RRSS_Linkedin.svg" alt=""></a> 
86				</#if> 
87			</#if> 
88			<#if IconRedes??>  
89 
90				<#list IconRedes.getSiblings() as link> 
91					<#assign urlRedesSociales = "#" /> 
92					<#assign IconRedes = "#" /> 
93					<#-- URL REDES SOCIALES --> 
94					<#if link?? && link.urlRedes.getData()?? && link.getData()?? && link.getData()?has_content> 
95						<#assign urlRedesSociales = link.urlRedes.getData() /> 
96						<#assign IconRedes = link.getData() /> 
97						<a href="${urlRedesSociales}"><img class="imgRrss" src="${IconRedes}" alt=""></a> 
98					</#if> 
99				</#list> 
100			</#if> 
101			<a id="ibd-blog-detail__social-networks-blog" href="#" onclick="copyToClipboard()" class="aImgTwitter" onfocusout="hideMessage()"> 
102				<img class="imgRrss" src="/o/iberdrola-fr-theme/images/blog/Link-Thick.svg" alt=""> 
103			</a> 
104			<span style="display:none" id="copyLink">Lien copié</span> 
105		</div> 
106    </div> 
107    <#-- FIN RRSS --> 
108</div> 
109 
110<script> 
111    document.addEventListener("DOMContentLoaded", function() { 
112        var divOriginal = document.getElementById("column-1"); 
113        var nuevoDiv = document.getElementById("contenidSeleccionadoDiv"); 
114        if(nuevoDiv){ 
115            divOriginal.innerHTML = nuevoDiv.innerHTML; 
116
117         
118    }); 
119    function copyToClipboard() { 
120 
121        navigator.clipboard.writeText(window.location.href); 
122        document.getElementById("copyLink").style.display= ''; 
123 
124
125 
126    function hideMessage() { 
127        document.getElementById("copyLink").style.display= 'none'; 
128
129</script> 
Une erreur s'est produite lors du traitement du gabarit.
Java method "com.sun.proxy.$Proxy1165.getArticleByUrlTitle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1165 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@5c9e8440"; 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>