Press

An error occurred while processing the template.
Java method "com.mecalux.documenturls.service.impl.MlxDocumentsHelperServiceImpl.getDocumentUrlFromUUID(String, String)" threw an exception when invoked on com.mecalux.documenturls.service.impl.MlxDocumentsHelperServiceImpl object "com.mecalux.documenturls.service.impl.MlxDocumentsHelperServiceImpl@13d86168"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign articleImageUrl = mlxDocument...  [in template "20101#20128#8870041" at line 128, column 65]
----
1<style> 
2    /***  
3         SOBREESCRITURA DE ESTILOS QUE TRAE POR DEFAULT LIFERAY 
4         el contenido del portlet donde esta el campo de busqueda 
5         no se edita desde ADT, viene por default 
6     ****/ 
7              
8     .panel-heading { 
9         display: none; 
10
11     .search-bar { 
12         border: 0; 
13
14      
15     .search-bar-simple  { 
16          
17         padding: 2rem 2rem; 
18         background: #eee; 
19         border-bottom: 1px solid #fff; 
20
21     .search-bar-simple input { 
22         display: block; 
23         width: 100%; 
24         height: 3.2rem; 
25         margin: 0; 
26         border: solid 0.125rem rgba(255, 255, 255, 0); 
27         border-radius: .25rem; 
28         background-color: #fff; 
29         box-shadow: none; 
30         font-size: 1rem; 
31         font-weight: normal; 
32         color: #333; 
33         -webkit-transition: border-color .3s,color .3s,background-color .3s; 
34         transition: border-color .3s,color .3s,background-color .3s; 
35         resize: vertical; 
36         padding: 0rem 1.25rem; 
37         line-height: 1rem; 
38         max-width: 80%; 
39         margin-right: 1rem; 
40			 font-family: inherit; 
41
42     .search-bar-simple input:focus { 
43         outline: none; 
44         border: 2px solid #468847; 
45         background-color: #fff; 
46         box-shadow: none; 
47         -webkit-transition: box-shadow .5s,border-color .25s ease-in-out; 
48         transition: box-shadow .5s,border-color .25s ease-in-out; 
49
50     .search-bar-simple button { 
51         background: #005198; 
52         border-radius: .4rem; 
53         border: none; 
54         color: #fff; 
55         cursor: pointer; 
56         display: inline-block; 
57         padding: 1rem 2rem; 
58         text-decoration: none; 
59         font-weight: bold; 
60         text-align: center; 
61
62     .search-bar-simple button:hover { 
63         background-color: #006ece; 
64         transition: all .4s ease; 
65         color: #fff; 
66
67     .search-bar-simple button svg { 
68         fill:#fff; 
69
70     .search-bar-keywords-input-wrapper { 
71         display: flex; 
72         align-items: center; 
73         justify-content: center; 
74
75     .facet-checkbox-label { 
76         cursor: pointer; 
77
78     .search-total-label { 
79         padding-top: 1rem; 
80         margin: 0 !important; 
81         text-align: center; 
82         background-color:#fafafa; 
83
84    .search-total-label{ 
85        text-align:center; 
86        padding: 2rem 2rem 0; 
87
88    .lexicon-icon-search{ 
89        width:1.25rem; 
90        height:1.25rem; 
91
92    .search-total-label { /* MKTG-1030 - Ocultar resultados de búsqueda de mientras no tenemos acceso a estos campos propios de Liferay */ 
93        display:none; 
94
95</style> 
96 
97<style> 
98	/* [MKTG-1595] TODO: Cuando se realice la migración completa a 7.4, inyectar estos estilos en el tema 
99	Seguramente con quitar los display: none del mix-content bastara */ 
100	.pagination-bar .pagination .page-item #ffek____, .pagination-bar .pagination .page-item #kwsw____, .pagination-bar .pagination .page-item #fehs____ { 
101		display: block; 
102
103</style> 
104 
105<#--MKTG-1196: US Date format --> 
106<#assign domain = themeDisplay.getPortalDomain() /> 
107<#assign dateFormat = "dd MMM yyyy"/> 
108<#if (domain?contains("us")) || (domain?contains("interlake")) > 
109    <#assign dateFormat = "MMMMMMMMM d, yyyy" /> 
110</#if> 
111 
112<#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" /> 
113 
114<div class="corporate--logistics--articles--container"> 
115    <#if entries?hasContent> 
116        <div class="corporate--logistics--articles"> 
117            <ul class="corporate--logistics--articles--list"> 
118            <#list entries as document> 
119                <#assign article = mlxAssetHelperService.fetchLatestApprovedArticle(getterUtil.getLong(document.getClassPK())!0)!"" > 
120                <#if article?hasContent> 
121                    <#assign articleUrl = mlxUrlUtilService.getUrlByJournalArticle(article, themeDisplay.getLanguageId(), themeDisplay.getScopeGroupId()) > 
122                    <#assign articleValues = mlxJournalHelperService.getStructureFieldValues(article, themeDisplay.getLanguageId()) > 
123                    <#assign articleName = (articleValues["article_name"])!"" > 
124                    <#assign description = (articleValues["description"])!"" /> 
125        						<#assign image = (articleValues["image_list"])!"{}" /> 
126                    <#assign imageJSON = jsonFactoryUtil.createJSONObject(image) /> 
127                    <#assign imageUUID = imageJSON.getString("uuid") /> 
128    								<#assign articleImageUrl = mlxDocumentsHelperService.getDocumentUrlFromUUID(imageUUID, locale) /> 
129                    <#assign currStr = article.DDMStructureKey /> 
130                    <#assign publicDate="" /> 
131     
132                    <li class="corporate--logistics--articles--list-item"> 
133                        <article class="corporate--logistics--articles--item"> 
134                            <#if articleImageUrl?hasContent> 
135                                <figure class="corporate--logistics--articles--item-figure"> 
136                                    <a href="${articleUrl}" title="${articleName}"> 
137																				<#assign imgUrl = cdn + articleImageUrl /> 
138																				<#assign imgWidth = '320'> 
139																				<#assign imgTitle = articleName> 
140																				<#assign imgAlt = articleName> 
141																				<#assign imgClass = 'corporate--logistics--articles--item-image'> 
142																				<#assign urlParamConcat = imgUrl?contains("?")?then("&","?")> 
143																				${corporate.img(imgUrl + urlParamConcat + 'imwidth=' + imgWidth + '', true, 
144																												'alt="' + imgAlt + '"', 'title="' + imgTitle + '"', 'class="' + imgClass + '"' 
145																												'srcset="' + imgUrl + urlParamConcat + 'imwidth=320&imdensity=1 320w,' +  
146																																		 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 640w,' +  
147																																		 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 1024w,' + 
148																																		 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 2048w"')} 
149                                    </a> 
150                                </figure> 
151                            </#if> 
152                            <h2 class="corporate--logistics--articles--item-heading"> 
153                                <a class="corporate--logistics--articles--item-link" 
154                                    href="${articleUrl}" 
155                                    title="${articleName}"> 
156                                    ${articleName} 
157                                </a> 
158                            </h2> 
159                            <span class="corporate--logistics--articles--item-date"> 
160                                <#assign publicDate = dateUtil.getDate(article.displayDate, dateFormat, locale, timeZoneUtil.getTimeZone("UTC")) />${publicDate!} 
161                            </span> 
162                            <p class="corporate--logistics--articles--item-content"> 
163                                ${description} 
164                            </p> 
165                        </article> 
166                    </li> 
167                <#else>	 
168                    <li class="hide">${document.get("entryClassPK")!""}</li> 
169                </#if> 
170            </#list> 
171            </ul> 
172        </div> 
173    <#else> 
174        <section class="corporate--section"> 
175            <@corporate.mlxlanguage key="mlx.client.list.no-results" /> 
176        </section> 
177    </#if> 
178</div>