News and Media Details - Home
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1086.getArticleByUrlTitle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1086 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@711336d6"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign article = JournalArticleLocal... [in template "20096#20121#885308" at line 26, column 5]
---- 1<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/> 2<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 3<#assign urlTitle = "" /> 4<#assign currentURL = themeDisplay.getURLCurrent()> 5 6<#-- Check if the URL contains query parameters --> 7<#if currentURL?contains("?")> 8 <#assign queryParams = currentURL?split("?")[1]> 9 <#assign params = queryParams?split("&")> 10 11 <#-- Loop through parameters to find the 'content' parameter --> 12 <#assign title = ""> 13 <#list params as param> 14 <#if param?contains("content=")> 15 <#assign urlTitle = param?substring(param?index_of("content=") + 6)?split("=")[1]> 16 <#assign decodedTitle = urlTitle?replace("%20", " ")> 17 <#assign decodedTitle = decodedTitle?replace("%09", " ")> 18 <#assign decodedTitle = decodedTitle?replace("%21", "!")> 19 <#assign decodedTitle = decodedTitle?replace("%22", "\"")> 20 <#assign decodedTitle = decodedTitle?replace("%23", "#")> 21 <#assign decodedTitle = decodedTitle?replace("%24", "$")> 22 <#assign decodedTitle = decodedTitle?replace("%25", "%")> 23 </#if> 24 </#list> 25 <#if decodedTitle?? && decodedTitle != ""> 26 <#assign article = JournalArticleLocalService.getArticleByUrlTitle(themeDisplay.getScopeGroupId(), decodedTitle?trim) /> 27 <@liferay_journal["journal-article"] 28 articleId=article.getArticleId() 29 ddmTemplateKey=article.getDDMTemplateKey() 30 groupId=article.getGroupId() 31 /> 32<#else> 33 <p>No query parameters found in the URL.</p> 34</#if> 35 36 37 38 39<#else> 40 <p>Content parameter is missing or empty.</p> 41</#if> 42 43 44 45 <script> 46 47 $( document ).ready(function() { 48 $(".newsdetail-section").removeClass("d-none"); 49 $(".temp-hide").addClass("d-none"); 50 $(".remainSession .temp-hide").removeClass("d-none"); 51 $(".remainSession .newsdetail-section").addClass("d-none"); 52}); 53 54</script> An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1086.getArticleByUrlTitle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1086 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@711336d6"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign article = JournalArticleLocal... [in template "20096#20121#885311" at line 41, column 41]
---- 1<!-- recent news slider section start --> 2<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/> 3<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 4<#assign urlTitle = "Checkout-Our-Recent-News-Header"/> 5<#assign CurrenturlTitle = "" /> 6 7<#assign currentURL = themeDisplay.getURLCurrent()> 8 9<#-- Check if the URL contains query parameters --> 10<#if currentURL?contains("?")> 11 <#assign queryParams = currentURL?split("?")[1]> 12 <#assign params = queryParams?split("&")> 13 14 <#-- Loop through parameters to find the 'content' parameter --> 15 <#assign title = ""> 16 <#list params as param> 17 <#if param?contains("content=")> 18 <#assign urlTitle = param?substring(param?index_of("content=") + 6)?split("=")[1]> 19 <#assign decodedTitle = urlTitle?replace("%20", " ")> 20 <#assign decodedTitle = decodedTitle?replace("%09", " ")> 21 <#assign decodedTitle = decodedTitle?replace("%21", "!")> 22 <#assign decodedTitle = decodedTitle?replace("%22", "\"")> 23 <#assign decodedTitle = decodedTitle?replace("%23", "#")> 24 <#assign decodedTitle = decodedTitle?replace("%24", "$")> 25 <#assign decodedTitle = decodedTitle?replace("%25", "%")> 26 </#if> 27 </#list> 28 </#if> 29 <#if decodedTitle?? && decodedTitle != ""> 30 <#assign CurrenturlTitle = decodedTitle?trim /> 31</#if> 32 33 34 35 36<section class="rcn-slider-wrap overflowXhidden" data-aos="fade-up"> 37 <div class="container"> 38 39 <div class="title-arrows-wrap"> 40 <h2 class="bigHeading" data-aos="fade-up" data-aos-anchor-placement="bottom-bottom"> 41 <#assign article= JournalArticleLocalService.getArticleByUrlTitle(themeDisplay.getScopeGroupId(), CurrenturlTitle) /> 42 43 </h2> 44 <div class="swiperArrow" data-aos="fade-up" data-aos-anchor-placement="bottom-bottom" data-aos-duration="800"> 45 <div class="swiper-button-prev"> 46 <span class="swiper-rectangle"><img src="/o/diez-theme/images/swiper-rectangle.svg" alt="" /></span> 47 <span class="swiper-arrow"><img src="/o/diez-theme/images/swiper-arrow-left.svg" alt="" /></span> 48 </div> 49 <div class="swiper-button-next"> 50 <span class="swiper-rectangle"><img src="/o/diez-theme/images/swiper-rectangle.svg" alt="" /></span> 51 <span class="swiper-arrow"><img src="/o/diez-theme/images/swiper-arrow-right.svg" alt="" /></span> 52 </div> 53 </div> 54 </div> 55 56 <div class="rcnslider"> 57 <div class="swiper mySwiper"> 58 59 60 61 62 <div class="swiper-wrapper remainSession"> 63 64 <#if entries?has_content> 65 <#list entries as curEntry> 66 67 <#assign assetRenderer = curEntry.getAssetRenderer() 68 journalArticle = assetRenderer.getAssetObject() /> 69 <#assign webcontentTitle = journalArticle.getUrlTitle() /> 70 <#if CurrenturlTitle?? && CurrenturlTitle != ""> 71 <#if webcontentTitle?trim?lower_case != CurrenturlTitle?trim?lower_case> 72 <div class="swiper-slide "> 73 74 <@liferay_journal["journal-article"] 75 articleId=journalArticle.getArticleId() 76 ddmTemplateKey=journalArticle.getDDMTemplateKey() 77 groupId=journalArticle.getGroupId() 78 /> 79 </div> 80 81 </#if> 82 83<#else> 84 <p>Content parameter is missing or empty.</p> 85</#if> 86 87 88 </#list> 89</#if> 90 91 </div> 92 93 94 <div class="swiper-scrollbar"></div> 95 96 </div> 97 </div> 98 99 </div> 100</section> 101<!-- recent news slider section end --> 102 103<style> 104.rcn-slider-wrap .bigHeading {margin-bottom: 0;} 105</style>
