שגיאה קרתה בעת עיבוד התבנית
Method public static com.liferay.portlet.documentlibrary.model.DLFileEntry com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getDLFileEntryByUuidAndGroupId(java.lang.String,long) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception
1<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 2<#assign themeDisplay = serviceContext.getThemeDisplay() /> 3<#assign journalArticleId = .vars['reserved-article-id'].data> 4<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil"]> 5<#assign journalArticleLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil"]> 6<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil"]> 7<#assign assetEntryLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil"]> 8<#assign assetLinkLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetLinkLocalServiceUtil"]> 9<#assign assetLinkLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetLinkLocalServiceUtil"]> 10<#assign classNameLocalServiceUtil = staticUtil["com.liferay.portal.service.ClassNameLocalServiceUtil"]> 11<#assign dlService = staticUtil["com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"]> 12<#assign ddmStructureLocalServiceUtil = staticUtil["com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil"]> 13<#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/> 14<#assign assetEntry = assetEntryLocalServiceUtil.fetchEntry("com.liferay.portlet.journal.model.JournalArticle",articleResourcePK)/> 15<#assign saxReaderUtil = staticUtil["com.liferay.portal.kernel.xml.SAXReaderUtil"]> 16<#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.portlet.journal.model.JournalArticle",articleResourcePK) > 17<#assign linksList=assetLinkLocalServiceUtil.getDirectLinks(assetEntry.getEntryId()) > 18<#assign journalArticleClassNameId = classNameLocalServiceUtil.fetchClassName("com.liferay.portlet.journal.model.JournalArticle")> 19 20<div class="container"> 21 <div class="row"> 22 <div class="col-md-8 left_details generico" style="word-wrap: break-word;"> 23 <div class="pull-left"> 24 <div class="full-date"> 25 <#assign D_FECHA_Data = getterUtil.getLong(D_FECHA.getData())> 26 <#if (D_FECHA_Data > 0)> 27 <#assign D_FECHA_DateObj = dateUtil.newDate(D_FECHA_Data)> 28 29 ${dateUtil.getDate(D_FECHA_DateObj, "dd MMMMM yyyy", locale)} 30 </#if> 31 </div> 32 <div class="etiquetas"> 33 <#list categoryList as currentCategory> 34 ${currentCategory.getName()} | 35 </#list> 36 </div> 37 </div> 38 <!-- <div class="pull-right text-center lectura_facil"> 39 <a href="#"> 40 <img src="${themeDisplay.getPathThemeImages()}/icons/icon_lectura_facil.png" width="25" height="32" alt="Lectura fácil"> 41 <span>Lectura fácil</span> 42 </a> 43 </div> 44 --> 45 <div class="clearfix"></div> 46 <#if T_ANTETITULO?has_content> 47 <h2 class="subtitle"> 48 ${T_ANTETITULO.getData()} 49 </h2> 50 </#if> 51 <h1 class="pull-left22" style="text-align: justify;"> <span style="color: rgb(40, 164, 224); font-family: inherit; font-size: 41px; font-weight: 700; letter-spacing: -2px;"> 52 ${R_TITULO.getData()}</span> 53 </h1> 54 <#if R_ENTRADILLA?has_content> 55 <div class="excerpt"> 56 ${R_ENTRADILLA.getData()} 57 58 59 </#if> 60 61 </div> 62 63 64 65 <#if T_LUGAR.getData()?has_content> 66 <div class="pull-left dato"> 67 Lugar: <strong>${T_LUGAR.getData()}</strong> 68 </div> 69 </#if> 70 71 <!-- IMAGEN PEQUEÑA --> 72 <#if P_IMAGEN?has_content> 73 <div class="contenido"> 74 <img src="${P_IMAGEN.getData()}" align="" hspace="10 px" width="250px" height="100%" > 75 </div> 76 </#if> 77 78 79 <!-- FIN IMAGEN PEQEÑA--> 80 81 <#if T_FUENTE.getData()?has_content> 82 <div class="pull-left dato"> 83 Fuente: <a href="#" target="_blank">${T_FUENTE.getData()}</a> 84 </div> 85 </#if> 86 87 88 <div class="clearfix"></div> 89 90 91 92 <#if R_CABECERA?has_content> 93 <div class="cabecera"> 94 ${R_CABECERA.getData()} 95 </div> 96 </#if> 97 <#if R_CUERPO?has_content> 98 <div class="contenido"> 99 ${R_CUERPO.getData()} 100 </div> 101 </#if> 102 103 104 <#if P_IMAGEN_GRANDE.getSiblings()?has_content> 105 <div class="galeria"> 106 <!-- Container for the image gallery --> 107 <div class="wrap-galeria"> 108 <!-- Full-width images with number text --> 109 <#assign index = 1/> 110 <#assign size = P_IMAGEN_GRANDE.getSiblings()?size/> 111 <#list P_IMAGEN_GRANDE.getSiblings() as currentImage> 112 <#if index == 1> 113 <div class="mySlides active" style="display: block;"> 114 <#else> 115 <div class="mySlides" style="display: none;"> 116 </#if> 117 <div class="numbertext">${index} / ${size}</div> 118 <img src="${currentImage.getData()}" style="width:100%" alt="${currentImage.T_DESC_IMAGEN_GRANDE.getData()}"> 119 </div> 120 <#assign index = index + 1/> 121 </#list> 122 123 124 <!-- Next and previous buttons --> 125 <a class="prev" onclick="plusSlides(-1)">❮</a> 126 <a class="next" onclick="plusSlides(1)">❯</a> 127 <#assign index = 1/> 128 <!-- Thumbnail images --> 129 <div class="miniaturas"> 130 <#list P_IMAGEN_GRANDE.getSiblings() as currentImage> 131 <div class="pull-left miniatura"> 132 <img class="thumbn trans" src="${currentImage.getData()}" onclick="currentSlide(${index})" alt="${currentImage.T_DESC_IMAGEN_GRANDE.getData()}"> 133 </div> 134 <#assign index = index + 1/> 135 </#list> 136 <div class="clearfix"></div> 137 </div> 138 </div> 139 </div> 140 </#if> 141 </div> 142 <div class="col-md-4 sidebar-right sidebar-min list-post"> 143 144 145 146 147 148 149 150 151 152 <#if F_ARCHIVOS_DESCARGA.getSiblings()?has_content && F_ARCHIVOS_DESCARGA.getSiblings()[0].getData()?contains("/")> 153 <div class="sidebar-module"> 154 <div class="title-blue border-bottom-black">Documentos para descargar</div> 155 <div class="post"> 156 <#list F_ARCHIVOS_DESCARGA.getSiblings() as cur_F_ARCHIVO_DESCARGA> 157 <#assign index = 0/> 158 <#list cur_F_ARCHIVO_DESCARGA.getData()?split("/") as urlChunks> 159 <#if index == 2> 160 <#assign groupIdChunk = urlChunks/> 161 <#assign gid = getterUtil.getLong(groupIdChunk)/> 162 </#if> 163 <#if index == 3> 164 <#assign fid = getterUtil.getLong(urlChunks)/> 165 </#if> 166 <#if index == 4> 167 <#assign fileTitle = urlChunks/> 168 </#if> 169 <#if index == 5> 170 <#assign uuid = urlChunks/> 171 </#if> 172 <#assign index = index + 1/> 173 </#list> 174 <#assign fileEntry = dlService.getDLFileEntryByUuidAndGroupId(uuid, getterUtil.getLong(gid))/> 175 <a href="${cur_F_ARCHIVO_DESCARGA.getData()}"> 176 <div class="title title-post-min"> 177 <#if fileEntry.getDescription()?has_content> 178 ${fileEntry.getDescription()} 179 <#else> 180 ${httpUtil.decodeURL(fileEntry.getTitle(),true)} 181 </#if> 182 </div> 183 <div class="btn_download"> 184 DESCARGAR DOCUMENTO 185 <img src="${themeDisplay.getPathThemeImages()}/icons/icon_arrow_bottom_red.png" alt="Descargar"/> 186 </div> 187 </a> 188 </#list> 189 </div> 190 </div> 191 </#if> 192 193 <#assign enlaces = [] /> 194 <#assign docRelacionados = [] /> 195 196 <#if linksList?has_content > 197 198 <#list linksList as currentLink> 199 <#assign entry = assetEntryLocalServiceUtil.getAssetEntry(currentLink.getEntryId2()) /> 200 <#if entry.getClassNameId() == journalArticleClassNameId. getClassNameId()> 201 <#assign journalArticle = journalArticleLocalServiceUtil.getLatestArticle(entry.getClassPK()) /> 202 <#assign structure = ddmStructureLocalServiceUtil.fetchStructure(groupId, journalArticleClassNameId.getClassNameId(), journalArticle.getStructureId()) /> 203 <#if structure.getName(themeDisplay.getLocale()) == "MS_EST_ENLACE"> 204 <#assign enlaces = enlaces + [entry] /> 205 <#else> 206 <#assign docRelacionados = docRelacionados + [entry] /> 207 </#if> 208 <#else> 209 <#assign docRelacionados = docRelacionados + [entry] /> 210 </#if> 211 212 </#list> 213 </#if> 214 <#if enlaces?has_content > 215 <div class="sidebar-module"> 216 <div class="title-blue border-bottom-black">Ampliar información</div> 217 <#list enlaces as currentLink> 218 <#assign targetCategoryList= assetCategoryLocalServiceUtil.getEntryCategories(currentLink.getEntryId()) > 219 <#assign targetJournalArticle = journalArticleLocalServiceUtil.getLatestArticle(currentLink.getClassPK()) > 220 <#assign targetDocument = saxReaderUtil.read(targetJournalArticle.getContentByLocale(themeDisplay.getLocale())) > 221 <#assign targetRoot = targetDocument.getRootElement()> 222 <#list targetRoot.elements() as field> 223 <#if "T_TEXTO_ENLACE" == field.attributeValue("name")> 224 <#assign currentLinkText = field.element("dynamic-content").getText() > 225 </#if> 226 <#if "T_URL" == field.attributeValue("name")> 227 <#assign currentLinkURL = field.element("dynamic-content").getText() > 228 </#if> 229 <#if "B_NEW_WINDOW" == field.attributeValue("name")> 230 <#assign opensNewWindow = getterUtil.getBoolean(field.element("dynamic-content").getText()) > 231 </#if> 232 </#list> 233 <#if opensNewWindow> 234 <#assign targetValue = "_blank"> 235 <#else> 236 <#assign targetValue = "_self"> 237 </#if> 238 <div class="post"> 239 <div class="title"> 240 <a href="${currentLinkURL}" target="${targetValue}"> 241 ${currentLinkText} 242 </a> 243 </div> 244 <#if targetCategoryList?has_content> 245 <div class="category"> 246 <#list targetCategoryList as currentTargetCategory> 247 ${currentTargetCategory.getName()} <span>|</span> 248 </#list> 249 </div> 250 </#if> 251 </div> 252 253 </#list> 254 </div> 255 </#if> 256 257 <#if docRelacionados?has_content > 258 <div class="sidebar-module"> 259 <div class="title-blue border-bottom-black">Contenidos relacionados</div> 260 <#list docRelacionados as currentLink> 261 <#assign targetCategoryList= assetCategoryLocalServiceUtil.getEntryCategories(currentLink.getEntryId()) > 262 <div class="post"> 263 <div class="title"> 264 <a href="${themeDisplay.getPathFriendlyURLPublic()}${themeDisplay.getScopeGroup().getFriendlyURL()}/-/${currentLink.getAssetRenderer().getUrlTitle()}" target="_blank"> 265 ${currentLink.getTitleCurrentValue()} 266 </a> 267 </div> 268 <#if targetCategoryList?has_content> 269 <div class="category"> 270 <#list targetCategoryList as currentTargetCategory> 271 ${currentTargetCategory.getName()} <span>|</span> 272 </#list> 273 </div> 274 </#if> 275 </div> 276 277 </#list> 278 </div> 279 </#if> 280 </div> 281 </div> 282</div>