SalaDePremsa

Sala de premsa

HOSSPAU Menu Horizontal

Press room

An error occurred while processing the template.
The following has evaluated to null or missing:
==> xPathSelector.selectSingleNode(rootElement)  [in template "20155#20195#1554215" at line 150, column 42]

----
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 titol = xPathSelector.selectS...  [in template "20155#20195#1554215" at line 150, column 25]
----
1<#assign groupService = serviceLocator.findService('com.liferay.portal.kernel.service.GroupLocalService') /> 
2<#assign tagsService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
3<#assign entryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryService") /> 
4<#assign journalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
5<#assign saxReader = serviceLocator.findService("com.liferay.portal.kernel.xml.SAXReader") /> 
6<#assign portlet_setup = portletDisplay.getPortletSetup()> 
7<#assign portlet_show_title = portlet_setup.getValue("portletSetupUseCustomTitle","Boolean")> 
8 
9<div class="fonsActualitat" style="width: 100%;"> 
10    <#if portlet_show_title == "true"> 
11    <div> 
12		<h5 class="titolVerd" > 
13			${portletDisplay.getTitle()} 
14		</h5> 
15		<div class="lineaVerde"></div> 
16	</div> 
17	</#if> 
18	<ul class="actualitat clearfix"> 
19 
20 
21<#if entries?has_content> 
22	<#list entries as curEntry> 
23	    <#attempt> 
24    	    <#assign journalArticle = journalService.getLatestArticle(curEntry.getClassPK()) /> 
25    	 
26    		<#assign contenidoArticulo = journalArticle.getContent() /> 
27    		 
28    		<#assign document = saxReader.read(contenidoArticulo) /> 
29     
30    		<#assign rootElement =document.getRootElement()>  
31    		 
32    		<#if locale?contains("en")> 
33    			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='en_GB']") > 
34                <#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
35				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='en_GB']") > 
36                <#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
37				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='en_GB']") > 
38                <#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
39				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='en_GB']") > 
40                <#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
41				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='en_GB']") > 
42                <#if xPathSelector.selectSingleNode(rootElement)?has_content> 
43					<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
44					<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
45					<#assign uuid = jsonObject.getString("uuid")> 
46					<#assign groupId = jsonObject.getLong("groupId")> 
47					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
48					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
49					 
50					<#-- assign fileEntryId = jsonObject.getLong("fileEntryId")> 
51					<#if fileEntryId != 0> 
52						<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
53						<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
54					<#else> 
55						<#assign documento = ""> 
56					</#if --> 
57				<#else> 
58					<#assign documento = ""> 
59				</#if> 
60            <#elseif locale?contains("es")> 
61                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='es_ES']") > 
62                <#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
63				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='es_ES']") > 
64                <#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
65				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='es_ES']") > 
66                <#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
67				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='es_ES']") > 
68                <#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
69				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='es_ES']") > 
70                <#if xPathSelector.selectSingleNode(rootElement)?has_content> 
71					<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
72					<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
73					<#assign uuid = jsonObject.getString("uuid")> 
74					<#assign groupId = jsonObject.getLong("groupId")> 
75					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
76					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
77					 
78					<#-- assign fileEntryId = jsonObject.getLong("fileEntryId")> 
79					<#if fileEntryId != 0> 
80						<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
81						<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
82					<#else> 
83						<#assign documento = ""> 
84					</#if --> 
85				<#else> 
86					<#assign documento = ""> 
87				</#if> 
88            <#else> 
89                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='ca_ES']") > 
90                <#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
91                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='ca_ES']") > 
92                <#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
93				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='ca_ES']") > 
94                <#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
95				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='ca_ES']") > 
96                <#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
97				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='ca_ES']") > 
98                <#if xPathSelector.selectSingleNode(rootElement)?has_content> 
99					<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
100					<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
101					<#assign uuid = jsonObject.getString("uuid")> 
102					<#assign groupId = jsonObject.getLong("groupId")> 
103					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
104					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
105					 
106					<#-- assign fileEntryId = jsonObject.getLong("fileEntryId")> 
107					<#if fileEntryId != 0> 
108						<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
109						<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
110					<#else> 
111						<#assign documento = ""> 
112					</#if --> 
113				<#else> 
114					<#assign documento = ""> 
115				</#if> 
116            </#if> 
117            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) > 
118             
119            <#if fechaAlta != ""> 
120				<#assign displaydate = fechaAlta?datetime("yyyy-MM-dd")> 
121			</#if> 
122             
123            <li> 
124        		<div class="actualitatData"> 
125					<div class="dataSup">${displaydate?string["MMM"]}'${displaydate?string["yyyy"]}</div> 
126        			<div class="lineaVerde"></div> 
127        			<div class="dataInf">${displaydate?string["dd"]}</div> 
128        		</div> 
129        		<div class="actualitatText"> 
130        			<#if texto != ""> 
131						<a href="${viewURL }" target="_self" class="titolVerd"> 
132        			<#else> 
133						<a href="${documento }" target="_blank" class="titolVerd"> 
134        			</#if> 
135        				<h4 style="color:rgb(85,85,85)">${titol}</h4> 
136        			</a> 
137        			<span class="resum">${resum }</span> 
138        		</div> 
139        	</li> 
140        <#recover> 
141			<#assign journalArticle = journalService.getLatestArticle(curEntry.getClassPK()) /> 
142    	 
143    		<#assign contenidoArticulo = journalArticle.getContent() /> 
144    		 
145    		<#assign document = saxReader.read(contenidoArticulo) /> 
146     
147    		<#assign rootElement =document.getRootElement()>  
148			 
149			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='ca_ES']") > 
150			<#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
151			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='ca_ES']") > 
152			<#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
153			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='ca_ES']") > 
154			<#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
155			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='ca_ES']") > 
156			<#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
157			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='ca_ES']") > 
158			<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
159				<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
160				<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
161				<#assign uuid = jsonObject.getString("uuid")> 
162				<#assign groupId = jsonObject.getLong("groupId")> 
163				<#-- assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
164				<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") / --> 
165				 
166				<#assign fileEntryId = jsonObject.getLong("fileEntryId")> 
167				<#if fileEntryId != 0> 
168					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
169					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
170				<#else> 
171					<#assign documento = ""> 
172				</#if> 
173			<#else> 
174				<#assign documento = ""> 
175			</#if> 
176			 
177			<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) > 
178			 
179			<#if fechaAlta != ""> 
180				<#assign displaydate = fechaAlta?datetime("yyyy-MM-dd")> 
181			</#if> 
182			 
183			<li> 
184        		<div class="actualitatData"> 
185					<div class="dataSup">${displaydate?string["MMM"]}'${displaydate?string["yyyy"]}</div> 
186        			<div class="lineaVerde"></div> 
187        			<div class="dataInf">${displaydate?string["dd"]}</div> 
188        		</div> 
189        		<div class="actualitatText"> 
190        			<#if texto != ""> 
191						<a href="${viewURL }" target="_self" class="titolVerd"> 
192        			<#else> 
193						<a href="${documento }" target="_blank" class="titolVerd"> 
194        			</#if> 
195        				<h4 style="color:rgb(85,85,85)">${titol}</h4> 
196        			</a> 
197        			<span class="resum">${resum }</span> 
198        		</div> 
199        	</li> 
200        </#attempt> 
201	</#list> 
202</#if> 
203 
204    </ul> 
205</div> 

Banner Butlleti Sant Pau Ara

Imatge amb enllaç per realitzar subscripcions al butlletí
+
Subscriu-te al butlletí