à la une

Retour Le Pass' sport découverte

Une erreur s'est produite lors du traitement du gabarit.
Java method "com.sun.proxy.$Proxy1033.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1033 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@3a4a2f0"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign articlePrimKey = journalLocal...  [in template "20115#20151#112304" at line 4, column 1]
----
1<#assign journalLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
2<#assign scopeId = themeDisplay.getScopeGroupId()> 
3 
4<#assign articlePrimKey = journalLocalService.getArticle(getterUtil.getLong(scopeId), .vars['reserved-article-id'].data).resourcePrimKey> 
5 
6<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
7<#assign articleCatNames = catLocalService.getCategoryNames("com.liferay.journal.model.JournalArticle", getterUtil.getLong(articlePrimKey))> 
8<#assign categorieNom = ["routes", "environnement", "collèges", "social", "culture", "tourisme", "sport et jeunesse", "handicap", "personnes agées", "Sensibilisation a l'environnement", "preservation des milieux aquatiques et gestion de l'eau", "valorisation des espaces naturels", "Autonomie", "Enfance-famille","Insertion","Santé-Prévention", "Habitat"]> 
9<#assign categorieStyle = ["routes", "environnement", "colleges", "social", "culture", "tourisme", "sports", "social", "social", "environnement", "environnement", "environnement", "social","social","social","social", "social"]> 
10<#assign styleTitre = ""> 
11<#assign styleTitreArticle = ""> 
12<#assign styleImage = ""> 
13<#assign hasImage = false> 
14<#--<#assign objImages = ImageArticle>--> 
15<#assign newImageArticle = false> 
16 
17<#if ImageArticle??> 
18    <#list ImageArticle.getSiblings() as cur_Image> 
19        <#assign hasImage = cur_Image.getData()!=''> 
20        <#assign objImages = ImageArticle> 
21        <#assign newImageArticle = true> 
22        <#break> 
23    </#list> 
24</#if> 
25 
26<#if hasImage> 
27    <#assign largeurTexte = " col-xs-12 col-md-7" > 
28    <#assign largeurImage = " col-xs-12 col-md-5" > 
29<#else> 
30    <#list Image.getSiblings() as cur_Image > 
31        <#assign hasImage = cur_Image.getData()!=''> 
32        <#assign objImages = Image> 
33        <#break> 
34    </#list> 
35</#if> 
36 
37<#if hasImage> 
38    <#assign largeurTexte = " col-xs-12 col-md-7" > 
39    <#assign largeurImage = " col-xs-12 col-md-5" > 
40<#else> 
41    <#assign largeurTexte = " col-xs-12" > 
42    <#assign largeurImage = " hide" > 
43</#if> 
44<#list articleCatNames as cat > 
45    <#if styleTitre != ""> 
46        <#break> 
47    </#if> 
48    <#assign count = 1> 
49    <#list categorieNom as categorie> 
50        <#assign index = count - 1> 
51        <#if categorie?lower_case == cat?lower_case?trim> 
52            <#assign styleTitre = categorieStyle[index] + "_titre"> 
53            <#assign styleTitreArticle = categorieStyle[index] + "_titre_article"> 
54            <#assign styleImage = categorieStyle[index]+ "_image"> 
55             <#break> 
56        </#if> 
57        <#assign count = count + 1 > 
58    </#list> 
59</#list> 
60<#if styleTitre == ""> 
61    <#assign styleTitre = "default_titre"> 
62    <#assign styleTitreArticle = "default_titre_article"> 
63    <#assign styleImage = "default_image"> 
64</#if> 
65<div class="row"> 
66    <div class="col-xs-12"> 
67        <h1 class="_image_article _titre_article ${styleTitre} ${styleTitreArticle} ${styleImage}"> 
68            ${.vars['reserved-article-title'].data} 
69        </h1> 
70        <div class=""> 
71            <#assign date_fin_fr = ""> 
72            <#assign date_debut_fr = ""> 
73            <#assign Date_debut_Data = getterUtil.getString(Date_debut.getData())> 
74            <#if validator.isNotNull(Date_debut_Data)> 
75                <#assign Date_debut_DateObj = dateUtil.parseDate("yyyy-MM-dd",Date_debut_Data, locale)> 
76 
77                <#assign date_debut_fr = dateUtil.getDate(Date_debut_DateObj, "dd MMM yyyy", locale)> 
78            </#if> 
79            <#assign Date_fin_Data = getterUtil.getString(Date_fin.getData())> 
80            <#if validator.isNotNull(Date_fin_Data)> 
81                <#assign Date_fin_DateObj = dateUtil.parseDate("yyyy-MM-dd",Date_fin_Data, locale)> 
82                <#assign date_fin_fr = dateUtil.getDate(Date_fin_DateObj, "dd MMM yyyy", locale)> 
83            </#if> 
84            <#assign heuredebut = Heure_debut.getData()> 
85            <#assign heurefin = Heure_fin.getData()> 
86            <#assign Date_debut_Data = getterUtil.getLong(Date_debut.getData())> 
87 
88 
89            <#if date_debut_fr != '' && date_fin_fr != ''> 
90                Du ${date_debut_fr} ${heuredebut} au ${date_fin_fr} ${heurefin} 
91            <#elseif date_debut_fr != ''> 
92                Le ${date_debut_fr} 
93                <#if heuredebut != ""> 
94                    à ${heuredebut} 
95                </#if> 
96            </#if> 
97            <#if Lieu.getData() != ''> 
98                à ${Lieu.getData()} 
99            </#if> 
100        </div> 
101    </div> 
102    <div class="${largeurTexte}" style="font-size:16px"> 
103        <div class="resume_article"> 
104            ${.vars['reserved-article-description'].data} 
105        </div> 
106        <div class="contenu_article"> 
107            ${Contenu.getData()} 
108        </div> 
109    </div> 
110    <div class="${largeurImage}"> 
111        <#if hasImage && (objImages.getSiblings()?size == 1)> 
112            <#list objImages.getSiblings() as cur_Image> 
113                <#assign imageAlt = ""> 
114                <#if newImageArticle> 
115                    <#if cur_Image.getAttribute("alt")??> 
116                        <#assign imageAlt = cur_Image.getAttribute("alt")> 
117                    </#if> 
118                </#if> 
119                <img alt="${imageAlt}" src="${cur_Image.getData()}" class="image-article" style="width:100%"/> 
120            </#list> 
121        <#elseif (objImages.getSiblings()?size gt 1)> 
122            <div id="images_article"> 
123                <#list objImages.getSiblings() as cur_Image> 
124                    <div class="card card-2 article_image_carousel" style="background-image:url('${cur_Image.getData()}');"> 
125                        &nbsp; 
126                    </div> 
127                </#list> 
128            </div> 
129            <div id="images_article_nav"> 
130                <#list objImages.getSiblings() as cur_Image> 
131                    <div class="card card-2 article_image_carousel_nav" style="background-image:url('${cur_Image.getData()}');"> 
132                        &nbsp; 
133                    </div> 
134                </#list> 
135            </div> 
136        </#if> 
137    </div> 
138 
139</div> 
140<#if hasImage && (objImages.getSiblings()?size gt 1)> 
141    <script> 
142        $(document).ready(function(){ 
143            $('#images_article').slick({ 
144                dots: false, 
145                infinite: true, 
146                speed: 300, 
147                slidesToShow: 1, 
148                slidesToScroll: 1, 
149                arrows: false, 
150                fade: true, 
151                asNavFor: '#images_article_nav' 
152 
153            }); 
154            $('#images_article_nav').slick({ 
155                slidesToShow: 2, 
156                centerMode : true, 
157                slidesToScroll: 1, 
158                asNavFor: '#images_article', 
159                arrows: false, 
160                dots: true, 
161                focusOnSelect: true 
162            }); 
163        }); 
164    </script> 
165</#if> 
166<script> 
167    $(document).ready(function(){ 
168        setTimeout(function() { 
169            adaptImagesWidth(".contenu_article"); 
170            addResponsiveTable('table'); 
171        },250); 
172    }); 
173    /* $( window ).resize(function() { 
174         adaptImagesWidth(".contenu_article"); 
175     }); */ 
176</script>