Breadcrumb

Xerrades Alzheimer

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> xPathSelector.selectSingleNode(rootElement)  [in template "20155#20195#1762358" at line 199, 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#1762358" at line 199, 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                <#if xPathSelector.selectSingleNode(rootElement)?has_content> 
35					<#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
36				<#else> 
37					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='ca_ES']") > 
38					<#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
39				</#if> 
40				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='en_GB']") > 
41				<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
42					<#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
43				<#else> 
44					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='ca_ES']") > 
45					<#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
46				</#if> 
47				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='en_GB']") > 
48				<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
49					<#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
50				<#else> 
51					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='ca_ES']") > 
52					<#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
53				</#if> 
54				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='en_GB']") > 
55				<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
56					<#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
57				<#else> 
58					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='ca_ES']") > 
59					<#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
60				</#if> 
61				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='en_GB']") > 
62                <#if xPathSelector.selectSingleNode(rootElement)?has_content> 
63					<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
64					<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
65					<#assign uuid = jsonObject.getString("uuid")> 
66					<#assign groupId = jsonObject.getLong("groupId")> 
67					 
68					<#if uuid!=""> 
69					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
70					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
71					</#if> 
72					 
73					<#-- assign fileEntryId = jsonObject.getLong("fileEntryId")> 
74					<#if fileEntryId != 0> 
75						<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
76						<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
77					<#else> 
78						<#assign documento = ""> 
79					</#if --> 
80				<#else> 
81					<#assign documento = ""> 
82				</#if> 
83            <#elseif locale?contains("es")> 
84                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='es_ES']") > 
85				<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
86					<#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
87				<#else> 
88					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='ca_ES']") > 
89					<#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
90				</#if> 
91				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='es_ES']") > 
92				<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
93					<#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
94				<#else> 
95					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='ca_ES']") > 
96					<#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
97				</#if> 
98				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='es_ES']") > 
99				<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
100					<#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
101				<#else> 
102					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='ca_ES']") > 
103					<#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
104				</#if> 
105				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='es_ES']") > 
106				<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
107					<#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
108				<#else> 
109					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='ca_ES']") > 
110					<#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
111				</#if> 
112				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='es_ES']") > 
113                <#if xPathSelector.selectSingleNode(rootElement)?has_content> 
114					<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
115					<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
116					<#assign uuid = jsonObject.getString("uuid")> 
117					<#assign groupId = jsonObject.getLong("groupId")> 
118					 
119					<#if uuid!=""> 
120					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
121					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
122					</#if> 
123					 
124					<#-- assign fileEntryId = jsonObject.getLong("fileEntryId")> 
125					<#if fileEntryId != 0> 
126						<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
127						<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
128					<#else> 
129						<#assign documento = ""> 
130					</#if --> 
131				<#else> 
132					<#assign documento = ""> 
133				</#if> 
134            <#else> 
135                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='ca_ES']") > 
136                <#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
137                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='ca_ES']") > 
138                <#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
139				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='ca_ES']") > 
140                <#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
141				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='ca_ES']") > 
142                <#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
143				<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='ca_ES']") > 
144                <#if xPathSelector.selectSingleNode(rootElement)?has_content> 
145					<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
146					<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
147					<#assign uuid = jsonObject.getString("uuid")> 
148					<#assign groupId = jsonObject.getLong("groupId")> 
149					 
150					<#if uuid!=""> 
151					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
152					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
153					</#if> 
154					 
155					<#-- assign fileEntryId = jsonObject.getLong("fileEntryId")> 
156					<#if fileEntryId != 0> 
157						<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
158						<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
159					<#else> 
160						<#assign documento = ""> 
161					</#if --> 
162				<#else> 
163					<#assign documento = ""> 
164				</#if> 
165            </#if> 
166            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) > 
167             
168            <#if fechaAlta != ""> 
169				<#assign displaydate = fechaAlta?datetime("yyyy-MM-dd")> 
170			</#if> 
171             
172            <li> 
173        		<div class="actualitatData"> 
174					<div class="dataSup">${displaydate?string["MMM"]}'${displaydate?string["yyyy"]}</div> 
175        			<div class="lineaVerde"></div> 
176        			<div class="dataInf">${displaydate?string["dd"]}</div> 
177        		</div> 
178        		<div class="actualitatText"> 
179        			<#if texto != ""> 
180						<a href="${viewURL }" target="_self" class="titolVerd"> 
181        			<#else> 
182						<a href="${documento }" target="_blank" class="titolVerd"> 
183        			</#if> 
184        				<h4 style="color:rgb(85,85,85)">${titol}</h4> 
185        			</a> 
186        			<span class="resum">${resum }</span> 
187        		</div> 
188        	</li> 
189        <#recover> 
190			<#assign journalArticle = journalService.getLatestArticle(curEntry.getClassPK()) /> 
191    	 
192    		<#assign contenidoArticulo = journalArticle.getContent() /> 
193    		 
194    		<#assign document = saxReader.read(contenidoArticulo) /> 
195     
196    		<#assign rootElement =document.getRootElement()>  
197			 
198			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titol']/dynamic-content[@language-id='ca_ES']") > 
199			<#assign titol = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
200			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resum']/dynamic-content[@language-id='ca_ES']") > 
201			<#assign resum = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
202			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Descripcio']/dynamic-content[@language-id='ca_ES']") > 
203			<#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
204			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Data']/dynamic-content[@language-id='ca_ES']") > 
205			<#assign fechaAlta = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
206			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Documents_adjunts']/dynamic-content[@language-id='ca_ES']") > 
207			<#if xPathSelector.selectSingleNode(rootElement)?has_content> 
208				<#assign documentotmp = xPathSelector.selectSingleNode(rootElement).getStringValue() >					 
209				<#assign jsonObject = jsonFactoryUtil.createJSONObject(documentotmp)> 
210				<#assign uuid = jsonObject.getString("uuid")> 
211				<#assign groupId = jsonObject.getLong("groupId")> 
212				<#-- assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(uuid, groupId) /> 
213				<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") / --> 
214				 
215				<#assign fileEntryId = jsonObject.getLong("fileEntryId")> 
216				<#if fileEntryId != 0> 
217					<#assign fileEntry = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getPortletFileEntry(fileEntryId) /> 
218					<#assign documento = staticUtil["com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil"].getDownloadPortletFileEntryURL(themeDisplay,fileEntry,"") /> 
219				<#else> 
220					<#assign documento = ""> 
221				</#if> 
222			<#else> 
223				<#assign documento = ""> 
224			</#if> 
225			 
226			<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) > 
227			 
228			<#if fechaAlta != ""> 
229				<#assign displaydate = fechaAlta?datetime("yyyy-MM-dd")> 
230			</#if> 
231			 
232			<li> 
233        		<div class="actualitatData"> 
234					<div class="dataSup">${displaydate?string["MMM"]}'${displaydate?string["yyyy"]}</div> 
235        			<div class="lineaVerde"></div> 
236        			<div class="dataInf">${displaydate?string["dd"]}</div> 
237        		</div> 
238        		<div class="actualitatText"> 
239        			<#if texto != ""> 
240						<a href="${viewURL }" target="_self" class="titolVerd"> 
241        			<#else> 
242						<a href="${documento }" target="_blank" class="titolVerd"> 
243        			</#if> 
244        				<h4 style="color:rgb(85,85,85)">${titol}</h4> 
245        			</a> 
246        			<span class="resum">${resum }</span> 
247        		</div> 
248        	</li> 
249        </#attempt> 
250	</#list> 
251</#if> 
252 
253    </ul> 
254</div> 

HOSSPAU Menu

Health Education

Banner programa xerrades alzheimer

Programa Alzheimer xerrades
+
Xerrades divulgatives per a familiars de persones amb Alzheimer

Programa del cicle