An error occurred while processing the template.
The following has evaluated to null or missing:
==> DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name) [in template "10311#10344#MAIN_CONTENT" at line 52, column 75]
----
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 current = DLFileEntryUtil.fet... [in template "10311#10344#MAIN_CONTENT" at line 52, column 57]
---- 1<section> 2 <article> 3 <div class="article_content"> 4 <#if top_title.getData()?has_content> 5 <h1 class="section_cab tam_h1">${top_title.getData()}</h1> 6 <hr class="line_xarxa_parcs_full"> 7 </#if> 8 <#list subtitle.getSiblings() as subtitle_item> 9 <#if subtitle_item.getData()?has_content> 10 <div class="article_content_subtitle"> 11 <h2 class="section_cab_full tam_h2">${subtitle_item.getData()}</h2> 12 <hr class="line_xarxa_parcs_subtitle"> 13 </#if> 14 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.getData()> 15 <#if (!urlImgEntry?has_content || urlImgEntry?length ==0) && subtitle_item.sub_text.sub_image.urlExterna??> 16 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.urlExterna.getData()> 17 </#if> 18 <#if urlImgEntry?has_content && urlImgEntry?length gt 0> 19 <#assign class_image= subtitle_item.sub_text.sub_image.sub_image_position.getData()> 20 21 22 <#assign altAuxImg= ""> 23 <#if subtitle_item.sub_text.sub_image.sub_image_title.getData()?has_content> 24 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_title.getData()> 25 </#if> 26 27 <#if subtitle_item.sub_text.sub_image.sub_image_author.getData()?has_content> 28 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_author.getData()> 29 </#if> 30 31 <div class="${class_image}"> 32 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 33 <#if urlImgEntry?has_content> 34 35 <#----------------------------METAINFO_IMG_GETINFO INI----------------------------> 36 <#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 37 38 <#assign uuIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"uuid",false)> 39 <#if uuIdImagen?has_content> 40 41 <#assign groupIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"groupId",false)> 42 43 <#assign current= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuIdImagen, getterUtil.getLong( groupIdImagen))> 44 <#else> <#-- URL imatge 6.1--> 45 <#assign url= urlImgEntry> 46 <#assign parts= stringUtil.split( url,"/")> 47 <#if parts?size gt 4> 48 <#assign group_id=getterUtil.getLong(parts[2])> 49 <#assign folder_id= getterUtil.getLong( parts[3])> 50 <#assign doc_name= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( parts[4])> 51 52 <#assign current= DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name)> 53 </#if> 54 </#if> 55 56 <#----------------------------METAINFO_IMG_GETINFO FIN----------------------------> 57 58 59 60 <#if current?has_content> 61 62 <#assign structureId="IMATGES"> 63 <#assign templateId="IMATGES"> 64 65 <#----------------------------METAINFO_EXIST_CONTENT INI----------------------------> 66 67 <#assign status="approved"> 68 69 <#assign companyId= companyId> 70 <#assign group_Id= scopeGroupId> 71 <#assign title= current.getDescription()> 72 <#if title==""> 73 <#assign title= current.getTitle()> 74 </#if> 75 <#assign type="general"> 76 <#assign isEmpty=true> 77 78 <#assign currentArticle=""> 79 80 81 82 <#----------------------------METAINFO_EXIST_CONTENT FIN-------------------------- --> 83 84 <#if !currentArticle?has_content> 85 <img src="${urlImgEntry}" alt="${altAuxImg}" class="img-fluid" title="" /> 86 <#if altAuxImg?has_content> 87 <p>${altAuxImg}</p> 88 </#if> 89 <#else><#----------------------------IMATGES FIN-------------------------- --> 90 91 <#assign document= saxReaderUtil.read( currentArticle.getContent())> 92 93 <#assign img_autor= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_autor esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 94 <#assign img_titol= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_titol esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 95 <#assign img_alt= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_alt esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 96 <#assign img_imatge= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_imatge esc.s]/dynamic-content")> 97 98 99 <img src="${img_imatge.getText()}" class="image_border img-fluid" alt="${img_alt.getText()}" title="${img_alt.getText()}" > 100 <p>${img_titol.getText()}</p> 101 <p>${img_autor.getText()}</p> 102 103 <#----------------------------IMATGES FIN-------------------------- --> 104 </#if> 105 <#else> <img src="${urlImgEntry}" class="img-fluid" alt="${urlFileEntry}" title="" /> 106 <#if altAuxImg?has_content> 107 <p>${altAuxImg}</p> 108 </#if> 109 </#if> 110 </#if> 111 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 112 </div> 113 </#if> 114 <#if subtitle_item.sub_text.getData()?has_content> 115 <p> 116 ${subtitle_item.sub_text.getData()} 117 </p> 118 </#if> 119 <#if subtitle_item.sub_text.sub_document?? && subtitle_item.sub_text.sub_document.getData()?has_content> 120 <div style="float:left;"> 121 <ul> 122 <#list subtitle_item.sub_text.sub_document.getSiblings() as item> 123 <#assign docURL= item.getData()> 124 <#if !docURL?has_content || docURL?length ==0> 125 <#assign docURL= item.urlExterna2.getData()> 126 </#if> 127 <#if docURL?has_content && docURL?length gt 0> 128 <li> 129 <a href="${docURL}" target="_blank" title="${item.sub_document_alt.getData()}" 130 alt="${item.sub_document_alt.getData()}"> 131 ${item.sub_document_text.getData()} 132 </a> 133 </li> 134 </#if> 135 </#list> 136 </ul> 137 </div> 138 <div style="clear:both;"></div> 139 </#if> 140 141 <#if subtitle_item.sub_text.sub_link.sub_link_url.getData()?has_content> 142 <div style="float:left;"> 143 <ul> 144 <#list subtitle_item.sub_text.sub_link.getSiblings() as item> 145 <#if item.sub_link_url.getData()?has_content> 146 <li> 147 <a href="${item.sub_link_url.getData()}" alt="${item.sub_link_alt.getData()}" 148 title="${item.sub_link_alt.getData()}" 149 target="${item.sub_link_type.getData()}" > 150 ${item.sub_link_text.getData()} 151 </a> 152 </li> 153 </#if> 154 </#list> 155 </ul> 156 </div> 157 <div style="clear:both;"></div> 158 </#if> 159 </#list> 160 161 <#if anchor_name?? && anchor_name.getData()?has_content> 162 <div style="float:left;"> 163 <ul> 164 <#list anchor_name.getSiblings() as item> 165 <li><a href="#${item.anchor_url.getData()}">${item.getData()}</a></li> 166 </#list> 167 </ul> 168 </div> 169 <div style="clear:both;"></div> 170 </#if> 171 <#if info_relacionada?? && stringUtil.equals(info_relacionada.getData(),"si")> 172 <#assign queryString="articleId="+ .vars["reserved-article-id"].data+"&groupId="+ groupId> 173 <runtime-portlet name="cat_diba_parcs_inforelacionada_portlet_InfoRelacionadaPortlet" instance="" queryString="${queryString}" /> 174 </#if> 175 </div> 176 </article> 177</section> Edicions anteriors
An error occurred while processing the template.
The following has evaluated to null or missing:
==> DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name) [in template "10311#10344#MAIN_CONTENT" at line 52, column 75]
----
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 current = DLFileEntryUtil.fet... [in template "10311#10344#MAIN_CONTENT" at line 52, column 57]
---- 1<section> 2 <article> 3 <div class="article_content"> 4 <#if top_title.getData()?has_content> 5 <h1 class="section_cab tam_h1">${top_title.getData()}</h1> 6 <hr class="line_xarxa_parcs_full"> 7 </#if> 8 <#list subtitle.getSiblings() as subtitle_item> 9 <#if subtitle_item.getData()?has_content> 10 <div class="article_content_subtitle"> 11 <h2 class="section_cab_full tam_h2">${subtitle_item.getData()}</h2> 12 <hr class="line_xarxa_parcs_subtitle"> 13 </#if> 14 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.getData()> 15 <#if (!urlImgEntry?has_content || urlImgEntry?length ==0) && subtitle_item.sub_text.sub_image.urlExterna??> 16 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.urlExterna.getData()> 17 </#if> 18 <#if urlImgEntry?has_content && urlImgEntry?length gt 0> 19 <#assign class_image= subtitle_item.sub_text.sub_image.sub_image_position.getData()> 20 21 22 <#assign altAuxImg= ""> 23 <#if subtitle_item.sub_text.sub_image.sub_image_title.getData()?has_content> 24 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_title.getData()> 25 </#if> 26 27 <#if subtitle_item.sub_text.sub_image.sub_image_author.getData()?has_content> 28 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_author.getData()> 29 </#if> 30 31 <div class="${class_image}"> 32 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 33 <#if urlImgEntry?has_content> 34 35 <#----------------------------METAINFO_IMG_GETINFO INI----------------------------> 36 <#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 37 38 <#assign uuIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"uuid",false)> 39 <#if uuIdImagen?has_content> 40 41 <#assign groupIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"groupId",false)> 42 43 <#assign current= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuIdImagen, getterUtil.getLong( groupIdImagen))> 44 <#else> <#-- URL imatge 6.1--> 45 <#assign url= urlImgEntry> 46 <#assign parts= stringUtil.split( url,"/")> 47 <#if parts?size gt 4> 48 <#assign group_id=getterUtil.getLong(parts[2])> 49 <#assign folder_id= getterUtil.getLong( parts[3])> 50 <#assign doc_name= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( parts[4])> 51 52 <#assign current= DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name)> 53 </#if> 54 </#if> 55 56 <#----------------------------METAINFO_IMG_GETINFO FIN----------------------------> 57 58 59 60 <#if current?has_content> 61 62 <#assign structureId="IMATGES"> 63 <#assign templateId="IMATGES"> 64 65 <#----------------------------METAINFO_EXIST_CONTENT INI----------------------------> 66 67 <#assign status="approved"> 68 69 <#assign companyId= companyId> 70 <#assign group_Id= scopeGroupId> 71 <#assign title= current.getDescription()> 72 <#if title==""> 73 <#assign title= current.getTitle()> 74 </#if> 75 <#assign type="general"> 76 <#assign isEmpty=true> 77 78 <#assign currentArticle=""> 79 80 81 82 <#----------------------------METAINFO_EXIST_CONTENT FIN-------------------------- --> 83 84 <#if !currentArticle?has_content> 85 <img src="${urlImgEntry}" alt="${altAuxImg}" class="img-fluid" title="" /> 86 <#if altAuxImg?has_content> 87 <p>${altAuxImg}</p> 88 </#if> 89 <#else><#----------------------------IMATGES FIN-------------------------- --> 90 91 <#assign document= saxReaderUtil.read( currentArticle.getContent())> 92 93 <#assign img_autor= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_autor esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 94 <#assign img_titol= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_titol esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 95 <#assign img_alt= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_alt esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 96 <#assign img_imatge= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_imatge esc.s]/dynamic-content")> 97 98 99 <img src="${img_imatge.getText()}" class="image_border img-fluid" alt="${img_alt.getText()}" title="${img_alt.getText()}" > 100 <p>${img_titol.getText()}</p> 101 <p>${img_autor.getText()}</p> 102 103 <#----------------------------IMATGES FIN-------------------------- --> 104 </#if> 105 <#else> <img src="${urlImgEntry}" class="img-fluid" alt="${urlFileEntry}" title="" /> 106 <#if altAuxImg?has_content> 107 <p>${altAuxImg}</p> 108 </#if> 109 </#if> 110 </#if> 111 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 112 </div> 113 </#if> 114 <#if subtitle_item.sub_text.getData()?has_content> 115 <p> 116 ${subtitle_item.sub_text.getData()} 117 </p> 118 </#if> 119 <#if subtitle_item.sub_text.sub_document?? && subtitle_item.sub_text.sub_document.getData()?has_content> 120 <div style="float:left;"> 121 <ul> 122 <#list subtitle_item.sub_text.sub_document.getSiblings() as item> 123 <#assign docURL= item.getData()> 124 <#if !docURL?has_content || docURL?length ==0> 125 <#assign docURL= item.urlExterna2.getData()> 126 </#if> 127 <#if docURL?has_content && docURL?length gt 0> 128 <li> 129 <a href="${docURL}" target="_blank" title="${item.sub_document_alt.getData()}" 130 alt="${item.sub_document_alt.getData()}"> 131 ${item.sub_document_text.getData()} 132 </a> 133 </li> 134 </#if> 135 </#list> 136 </ul> 137 </div> 138 <div style="clear:both;"></div> 139 </#if> 140 141 <#if subtitle_item.sub_text.sub_link.sub_link_url.getData()?has_content> 142 <div style="float:left;"> 143 <ul> 144 <#list subtitle_item.sub_text.sub_link.getSiblings() as item> 145 <#if item.sub_link_url.getData()?has_content> 146 <li> 147 <a href="${item.sub_link_url.getData()}" alt="${item.sub_link_alt.getData()}" 148 title="${item.sub_link_alt.getData()}" 149 target="${item.sub_link_type.getData()}" > 150 ${item.sub_link_text.getData()} 151 </a> 152 </li> 153 </#if> 154 </#list> 155 </ul> 156 </div> 157 <div style="clear:both;"></div> 158 </#if> 159 </#list> 160 161 <#if anchor_name?? && anchor_name.getData()?has_content> 162 <div style="float:left;"> 163 <ul> 164 <#list anchor_name.getSiblings() as item> 165 <li><a href="#${item.anchor_url.getData()}">${item.getData()}</a></li> 166 </#list> 167 </ul> 168 </div> 169 <div style="clear:both;"></div> 170 </#if> 171 <#if info_relacionada?? && stringUtil.equals(info_relacionada.getData(),"si")> 172 <#assign queryString="articleId="+ .vars["reserved-article-id"].data+"&groupId="+ groupId> 173 <runtime-portlet name="cat_diba_parcs_inforelacionada_portlet_InfoRelacionadaPortlet" instance="" queryString="${queryString}" /> 174 </#if> 175 </div> 176 </article> 177</section> An error occurred while processing the template.
The following has evaluated to null or missing:
==> DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name) [in template "10311#10344#MAIN_CONTENT" at line 52, column 75]
----
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 current = DLFileEntryUtil.fet... [in template "10311#10344#MAIN_CONTENT" at line 52, column 57]
---- 1<section> 2 <article> 3 <div class="article_content"> 4 <#if top_title.getData()?has_content> 5 <h1 class="section_cab tam_h1">${top_title.getData()}</h1> 6 <hr class="line_xarxa_parcs_full"> 7 </#if> 8 <#list subtitle.getSiblings() as subtitle_item> 9 <#if subtitle_item.getData()?has_content> 10 <div class="article_content_subtitle"> 11 <h2 class="section_cab_full tam_h2">${subtitle_item.getData()}</h2> 12 <hr class="line_xarxa_parcs_subtitle"> 13 </#if> 14 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.getData()> 15 <#if (!urlImgEntry?has_content || urlImgEntry?length ==0) && subtitle_item.sub_text.sub_image.urlExterna??> 16 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.urlExterna.getData()> 17 </#if> 18 <#if urlImgEntry?has_content && urlImgEntry?length gt 0> 19 <#assign class_image= subtitle_item.sub_text.sub_image.sub_image_position.getData()> 20 21 22 <#assign altAuxImg= ""> 23 <#if subtitle_item.sub_text.sub_image.sub_image_title.getData()?has_content> 24 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_title.getData()> 25 </#if> 26 27 <#if subtitle_item.sub_text.sub_image.sub_image_author.getData()?has_content> 28 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_author.getData()> 29 </#if> 30 31 <div class="${class_image}"> 32 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 33 <#if urlImgEntry?has_content> 34 35 <#----------------------------METAINFO_IMG_GETINFO INI----------------------------> 36 <#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 37 38 <#assign uuIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"uuid",false)> 39 <#if uuIdImagen?has_content> 40 41 <#assign groupIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"groupId",false)> 42 43 <#assign current= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuIdImagen, getterUtil.getLong( groupIdImagen))> 44 <#else> <#-- URL imatge 6.1--> 45 <#assign url= urlImgEntry> 46 <#assign parts= stringUtil.split( url,"/")> 47 <#if parts?size gt 4> 48 <#assign group_id=getterUtil.getLong(parts[2])> 49 <#assign folder_id= getterUtil.getLong( parts[3])> 50 <#assign doc_name= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( parts[4])> 51 52 <#assign current= DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name)> 53 </#if> 54 </#if> 55 56 <#----------------------------METAINFO_IMG_GETINFO FIN----------------------------> 57 58 59 60 <#if current?has_content> 61 62 <#assign structureId="IMATGES"> 63 <#assign templateId="IMATGES"> 64 65 <#----------------------------METAINFO_EXIST_CONTENT INI----------------------------> 66 67 <#assign status="approved"> 68 69 <#assign companyId= companyId> 70 <#assign group_Id= scopeGroupId> 71 <#assign title= current.getDescription()> 72 <#if title==""> 73 <#assign title= current.getTitle()> 74 </#if> 75 <#assign type="general"> 76 <#assign isEmpty=true> 77 78 <#assign currentArticle=""> 79 80 81 82 <#----------------------------METAINFO_EXIST_CONTENT FIN-------------------------- --> 83 84 <#if !currentArticle?has_content> 85 <img src="${urlImgEntry}" alt="${altAuxImg}" class="img-fluid" title="" /> 86 <#if altAuxImg?has_content> 87 <p>${altAuxImg}</p> 88 </#if> 89 <#else><#----------------------------IMATGES FIN-------------------------- --> 90 91 <#assign document= saxReaderUtil.read( currentArticle.getContent())> 92 93 <#assign img_autor= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_autor esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 94 <#assign img_titol= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_titol esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 95 <#assign img_alt= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_alt esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 96 <#assign img_imatge= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_imatge esc.s]/dynamic-content")> 97 98 99 <img src="${img_imatge.getText()}" class="image_border img-fluid" alt="${img_alt.getText()}" title="${img_alt.getText()}" > 100 <p>${img_titol.getText()}</p> 101 <p>${img_autor.getText()}</p> 102 103 <#----------------------------IMATGES FIN-------------------------- --> 104 </#if> 105 <#else> <img src="${urlImgEntry}" class="img-fluid" alt="${urlFileEntry}" title="" /> 106 <#if altAuxImg?has_content> 107 <p>${altAuxImg}</p> 108 </#if> 109 </#if> 110 </#if> 111 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 112 </div> 113 </#if> 114 <#if subtitle_item.sub_text.getData()?has_content> 115 <p> 116 ${subtitle_item.sub_text.getData()} 117 </p> 118 </#if> 119 <#if subtitle_item.sub_text.sub_document?? && subtitle_item.sub_text.sub_document.getData()?has_content> 120 <div style="float:left;"> 121 <ul> 122 <#list subtitle_item.sub_text.sub_document.getSiblings() as item> 123 <#assign docURL= item.getData()> 124 <#if !docURL?has_content || docURL?length ==0> 125 <#assign docURL= item.urlExterna2.getData()> 126 </#if> 127 <#if docURL?has_content && docURL?length gt 0> 128 <li> 129 <a href="${docURL}" target="_blank" title="${item.sub_document_alt.getData()}" 130 alt="${item.sub_document_alt.getData()}"> 131 ${item.sub_document_text.getData()} 132 </a> 133 </li> 134 </#if> 135 </#list> 136 </ul> 137 </div> 138 <div style="clear:both;"></div> 139 </#if> 140 141 <#if subtitle_item.sub_text.sub_link.sub_link_url.getData()?has_content> 142 <div style="float:left;"> 143 <ul> 144 <#list subtitle_item.sub_text.sub_link.getSiblings() as item> 145 <#if item.sub_link_url.getData()?has_content> 146 <li> 147 <a href="${item.sub_link_url.getData()}" alt="${item.sub_link_alt.getData()}" 148 title="${item.sub_link_alt.getData()}" 149 target="${item.sub_link_type.getData()}" > 150 ${item.sub_link_text.getData()} 151 </a> 152 </li> 153 </#if> 154 </#list> 155 </ul> 156 </div> 157 <div style="clear:both;"></div> 158 </#if> 159 </#list> 160 161 <#if anchor_name?? && anchor_name.getData()?has_content> 162 <div style="float:left;"> 163 <ul> 164 <#list anchor_name.getSiblings() as item> 165 <li><a href="#${item.anchor_url.getData()}">${item.getData()}</a></li> 166 </#list> 167 </ul> 168 </div> 169 <div style="clear:both;"></div> 170 </#if> 171 <#if info_relacionada?? && stringUtil.equals(info_relacionada.getData(),"si")> 172 <#assign queryString="articleId="+ .vars["reserved-article-id"].data+"&groupId="+ groupId> 173 <runtime-portlet name="cat_diba_parcs_inforelacionada_portlet_InfoRelacionadaPortlet" instance="" queryString="${queryString}" /> 174 </#if> 175 </div> 176 </article> 177</section> An error occurred while processing the template.
The following has evaluated to null or missing:
==> DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name) [in template "10311#10344#MAIN_CONTENT" at line 52, column 75]
----
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 current = DLFileEntryUtil.fet... [in template "10311#10344#MAIN_CONTENT" at line 52, column 57]
---- 1<section> 2 <article> 3 <div class="article_content"> 4 <#if top_title.getData()?has_content> 5 <h1 class="section_cab tam_h1">${top_title.getData()}</h1> 6 <hr class="line_xarxa_parcs_full"> 7 </#if> 8 <#list subtitle.getSiblings() as subtitle_item> 9 <#if subtitle_item.getData()?has_content> 10 <div class="article_content_subtitle"> 11 <h2 class="section_cab_full tam_h2">${subtitle_item.getData()}</h2> 12 <hr class="line_xarxa_parcs_subtitle"> 13 </#if> 14 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.getData()> 15 <#if (!urlImgEntry?has_content || urlImgEntry?length ==0) && subtitle_item.sub_text.sub_image.urlExterna??> 16 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.urlExterna.getData()> 17 </#if> 18 <#if urlImgEntry?has_content && urlImgEntry?length gt 0> 19 <#assign class_image= subtitle_item.sub_text.sub_image.sub_image_position.getData()> 20 21 22 <#assign altAuxImg= ""> 23 <#if subtitle_item.sub_text.sub_image.sub_image_title.getData()?has_content> 24 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_title.getData()> 25 </#if> 26 27 <#if subtitle_item.sub_text.sub_image.sub_image_author.getData()?has_content> 28 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_author.getData()> 29 </#if> 30 31 <div class="${class_image}"> 32 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 33 <#if urlImgEntry?has_content> 34 35 <#----------------------------METAINFO_IMG_GETINFO INI----------------------------> 36 <#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 37 38 <#assign uuIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"uuid",false)> 39 <#if uuIdImagen?has_content> 40 41 <#assign groupIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"groupId",false)> 42 43 <#assign current= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuIdImagen, getterUtil.getLong( groupIdImagen))> 44 <#else> <#-- URL imatge 6.1--> 45 <#assign url= urlImgEntry> 46 <#assign parts= stringUtil.split( url,"/")> 47 <#if parts?size gt 4> 48 <#assign group_id=getterUtil.getLong(parts[2])> 49 <#assign folder_id= getterUtil.getLong( parts[3])> 50 <#assign doc_name= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( parts[4])> 51 52 <#assign current= DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name)> 53 </#if> 54 </#if> 55 56 <#----------------------------METAINFO_IMG_GETINFO FIN----------------------------> 57 58 59 60 <#if current?has_content> 61 62 <#assign structureId="IMATGES"> 63 <#assign templateId="IMATGES"> 64 65 <#----------------------------METAINFO_EXIST_CONTENT INI----------------------------> 66 67 <#assign status="approved"> 68 69 <#assign companyId= companyId> 70 <#assign group_Id= scopeGroupId> 71 <#assign title= current.getDescription()> 72 <#if title==""> 73 <#assign title= current.getTitle()> 74 </#if> 75 <#assign type="general"> 76 <#assign isEmpty=true> 77 78 <#assign currentArticle=""> 79 80 81 82 <#----------------------------METAINFO_EXIST_CONTENT FIN-------------------------- --> 83 84 <#if !currentArticle?has_content> 85 <img src="${urlImgEntry}" alt="${altAuxImg}" class="img-fluid" title="" /> 86 <#if altAuxImg?has_content> 87 <p>${altAuxImg}</p> 88 </#if> 89 <#else><#----------------------------IMATGES FIN-------------------------- --> 90 91 <#assign document= saxReaderUtil.read( currentArticle.getContent())> 92 93 <#assign img_autor= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_autor esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 94 <#assign img_titol= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_titol esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 95 <#assign img_alt= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_alt esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 96 <#assign img_imatge= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_imatge esc.s]/dynamic-content")> 97 98 99 <img src="${img_imatge.getText()}" class="image_border img-fluid" alt="${img_alt.getText()}" title="${img_alt.getText()}" > 100 <p>${img_titol.getText()}</p> 101 <p>${img_autor.getText()}</p> 102 103 <#----------------------------IMATGES FIN-------------------------- --> 104 </#if> 105 <#else> <img src="${urlImgEntry}" class="img-fluid" alt="${urlFileEntry}" title="" /> 106 <#if altAuxImg?has_content> 107 <p>${altAuxImg}</p> 108 </#if> 109 </#if> 110 </#if> 111 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 112 </div> 113 </#if> 114 <#if subtitle_item.sub_text.getData()?has_content> 115 <p> 116 ${subtitle_item.sub_text.getData()} 117 </p> 118 </#if> 119 <#if subtitle_item.sub_text.sub_document?? && subtitle_item.sub_text.sub_document.getData()?has_content> 120 <div style="float:left;"> 121 <ul> 122 <#list subtitle_item.sub_text.sub_document.getSiblings() as item> 123 <#assign docURL= item.getData()> 124 <#if !docURL?has_content || docURL?length ==0> 125 <#assign docURL= item.urlExterna2.getData()> 126 </#if> 127 <#if docURL?has_content && docURL?length gt 0> 128 <li> 129 <a href="${docURL}" target="_blank" title="${item.sub_document_alt.getData()}" 130 alt="${item.sub_document_alt.getData()}"> 131 ${item.sub_document_text.getData()} 132 </a> 133 </li> 134 </#if> 135 </#list> 136 </ul> 137 </div> 138 <div style="clear:both;"></div> 139 </#if> 140 141 <#if subtitle_item.sub_text.sub_link.sub_link_url.getData()?has_content> 142 <div style="float:left;"> 143 <ul> 144 <#list subtitle_item.sub_text.sub_link.getSiblings() as item> 145 <#if item.sub_link_url.getData()?has_content> 146 <li> 147 <a href="${item.sub_link_url.getData()}" alt="${item.sub_link_alt.getData()}" 148 title="${item.sub_link_alt.getData()}" 149 target="${item.sub_link_type.getData()}" > 150 ${item.sub_link_text.getData()} 151 </a> 152 </li> 153 </#if> 154 </#list> 155 </ul> 156 </div> 157 <div style="clear:both;"></div> 158 </#if> 159 </#list> 160 161 <#if anchor_name?? && anchor_name.getData()?has_content> 162 <div style="float:left;"> 163 <ul> 164 <#list anchor_name.getSiblings() as item> 165 <li><a href="#${item.anchor_url.getData()}">${item.getData()}</a></li> 166 </#list> 167 </ul> 168 </div> 169 <div style="clear:both;"></div> 170 </#if> 171 <#if info_relacionada?? && stringUtil.equals(info_relacionada.getData(),"si")> 172 <#assign queryString="articleId="+ .vars["reserved-article-id"].data+"&groupId="+ groupId> 173 <runtime-portlet name="cat_diba_parcs_inforelacionada_portlet_InfoRelacionadaPortlet" instance="" queryString="${queryString}" /> 174 </#if> 175 </div> 176 </article> 177</section> An error occurred while processing the template.
The following has evaluated to null or missing:
==> DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name) [in template "10311#10344#MAIN_CONTENT" at line 52, column 75]
----
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 current = DLFileEntryUtil.fet... [in template "10311#10344#MAIN_CONTENT" at line 52, column 57]
---- 1<section> 2 <article> 3 <div class="article_content"> 4 <#if top_title.getData()?has_content> 5 <h1 class="section_cab tam_h1">${top_title.getData()}</h1> 6 <hr class="line_xarxa_parcs_full"> 7 </#if> 8 <#list subtitle.getSiblings() as subtitle_item> 9 <#if subtitle_item.getData()?has_content> 10 <div class="article_content_subtitle"> 11 <h2 class="section_cab_full tam_h2">${subtitle_item.getData()}</h2> 12 <hr class="line_xarxa_parcs_subtitle"> 13 </#if> 14 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.getData()> 15 <#if (!urlImgEntry?has_content || urlImgEntry?length ==0) && subtitle_item.sub_text.sub_image.urlExterna??> 16 <#assign urlImgEntry= subtitle_item.sub_text.sub_image.urlExterna.getData()> 17 </#if> 18 <#if urlImgEntry?has_content && urlImgEntry?length gt 0> 19 <#assign class_image= subtitle_item.sub_text.sub_image.sub_image_position.getData()> 20 21 22 <#assign altAuxImg= ""> 23 <#if subtitle_item.sub_text.sub_image.sub_image_title.getData()?has_content> 24 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_title.getData()> 25 </#if> 26 27 <#if subtitle_item.sub_text.sub_image.sub_image_author.getData()?has_content> 28 <#assign altAuxImg= subtitle_item.sub_text.sub_image.sub_image_author.getData()> 29 </#if> 30 31 <div class="${class_image}"> 32 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 33 <#if urlImgEntry?has_content> 34 35 <#----------------------------METAINFO_IMG_GETINFO INI----------------------------> 36 <#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 37 38 <#assign uuIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"uuid",false)> 39 <#if uuIdImagen?has_content> 40 41 <#assign groupIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"groupId",false)> 42 43 <#assign current= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId( uuIdImagen, getterUtil.getLong( groupIdImagen))> 44 <#else> <#-- URL imatge 6.1--> 45 <#assign url= urlImgEntry> 46 <#assign parts= stringUtil.split( url,"/")> 47 <#if parts?size gt 4> 48 <#assign group_id=getterUtil.getLong(parts[2])> 49 <#assign folder_id= getterUtil.getLong( parts[3])> 50 <#assign doc_name= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( parts[4])> 51 52 <#assign current= DLFileEntryUtil.fetchFileEntryByFileName( group_id, folder_id, doc_name)> 53 </#if> 54 </#if> 55 56 <#----------------------------METAINFO_IMG_GETINFO FIN----------------------------> 57 58 59 60 <#if current?has_content> 61 62 <#assign structureId="IMATGES"> 63 <#assign templateId="IMATGES"> 64 65 <#----------------------------METAINFO_EXIST_CONTENT INI----------------------------> 66 67 <#assign status="approved"> 68 69 <#assign companyId= companyId> 70 <#assign group_Id= scopeGroupId> 71 <#assign title= current.getDescription()> 72 <#if title==""> 73 <#assign title= current.getTitle()> 74 </#if> 75 <#assign type="general"> 76 <#assign isEmpty=true> 77 78 <#assign currentArticle=""> 79 80 81 82 <#----------------------------METAINFO_EXIST_CONTENT FIN-------------------------- --> 83 84 <#if !currentArticle?has_content> 85 <img src="${urlImgEntry}" alt="${altAuxImg}" class="img-fluid" title="" /> 86 <#if altAuxImg?has_content> 87 <p>${altAuxImg}</p> 88 </#if> 89 <#else><#----------------------------IMATGES FIN-------------------------- --> 90 91 <#assign document= saxReaderUtil.read( currentArticle.getContent())> 92 93 <#assign img_autor= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_autor esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 94 <#assign img_titol= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_titol esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 95 <#assign img_alt= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_alt esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")> 96 <#assign img_imatge= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_imatge esc.s]/dynamic-content")> 97 98 99 <img src="${img_imatge.getText()}" class="image_border img-fluid" alt="${img_alt.getText()}" title="${img_alt.getText()}" > 100 <p>${img_titol.getText()}</p> 101 <p>${img_autor.getText()}</p> 102 103 <#----------------------------IMATGES FIN-------------------------- --> 104 </#if> 105 <#else> <img src="${urlImgEntry}" class="img-fluid" alt="${urlFileEntry}" title="" /> 106 <#if altAuxImg?has_content> 107 <p>${altAuxImg}</p> 108 </#if> 109 </#if> 110 </#if> 111 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI-------------------------------------------------------------------------> 112 </div> 113 </#if> 114 <#if subtitle_item.sub_text.getData()?has_content> 115 <p> 116 ${subtitle_item.sub_text.getData()} 117 </p> 118 </#if> 119 <#if subtitle_item.sub_text.sub_document?? && subtitle_item.sub_text.sub_document.getData()?has_content> 120 <div style="float:left;"> 121 <ul> 122 <#list subtitle_item.sub_text.sub_document.getSiblings() as item> 123 <#assign docURL= item.getData()> 124 <#if !docURL?has_content || docURL?length ==0> 125 <#assign docURL= item.urlExterna2.getData()> 126 </#if> 127 <#if docURL?has_content && docURL?length gt 0> 128 <li> 129 <a href="${docURL}" target="_blank" title="${item.sub_document_alt.getData()}" 130 alt="${item.sub_document_alt.getData()}"> 131 ${item.sub_document_text.getData()} 132 </a> 133 </li> 134 </#if> 135 </#list> 136 </ul> 137 </div> 138 <div style="clear:both;"></div> 139 </#if> 140 141 <#if subtitle_item.sub_text.sub_link.sub_link_url.getData()?has_content> 142 <div style="float:left;"> 143 <ul> 144 <#list subtitle_item.sub_text.sub_link.getSiblings() as item> 145 <#if item.sub_link_url.getData()?has_content> 146 <li> 147 <a href="${item.sub_link_url.getData()}" alt="${item.sub_link_alt.getData()}" 148 title="${item.sub_link_alt.getData()}" 149 target="${item.sub_link_type.getData()}" > 150 ${item.sub_link_text.getData()} 151 </a> 152 </li> 153 </#if> 154 </#list> 155 </ul> 156 </div> 157 <div style="clear:both;"></div> 158 </#if> 159 </#list> 160 161 <#if anchor_name?? && anchor_name.getData()?has_content> 162 <div style="float:left;"> 163 <ul> 164 <#list anchor_name.getSiblings() as item> 165 <li><a href="#${item.anchor_url.getData()}">${item.getData()}</a></li> 166 </#list> 167 </ul> 168 </div> 169 <div style="clear:both;"></div> 170 </#if> 171 <#if info_relacionada?? && stringUtil.equals(info_relacionada.getData(),"si")> 172 <#assign queryString="articleId="+ .vars["reserved-article-id"].data+"&groupId="+ groupId> 173 <runtime-portlet name="cat_diba_parcs_inforelacionada_portlet_InfoRelacionadaPortlet" instance="" queryString="${queryString}" /> 174 </#if> 175 </div> 176 </article> 177</section> 