An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy539.getJournalArticleResource(long)" threw an exception when invoked on com.sun.proxy.$Proxy539 object "com.liferay.journal.service.impl.JournalArticleResourceLocalServiceImpl@55a7f4bc"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign journalArticleResource = Jour...  [in template "20116#20152#283049" at line 21, column 1]
----
1<#-- 
2Name: Provider News Article 
3Type: Web Content Template 
4Provides the template for a Provider News Article structure. Intended 
5to be used in conjunction with the Provider News & Updates Application 
6Display Template in an Asset Publisher. 
7--> 
8 
9<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
10<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
11<#assign layout = themeDisplay['plid'] /> 
12<#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
13<#assign layoutObject = layoutService.getLayout(layout?number) /> 
14<#assign page_group = layoutObject.getGroup() /> 
15<#assign site_title = page_group.getDescriptiveName() /> 
16<#assign articleId = themeDisplay.getRequest().getParameter('articleId')> 
17<#assign classPK = themeDisplay.getRequest().getParameter('classPK')> 
18<#assign JournalArticleResource = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")> 
19<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
20<#assign SAXReaderUtil = serviceLocator.findService("com.liferay.portal.kernel.xml.SAXReaderUtil")> 
21<#assign journalArticleResource = JournalArticleResource.getJournalArticleResource(getterUtil.getLong(classPK))> 
22<#assign journalArticle = JournalArticleLocalService.getLatestArticle(journalArticleResource.getResourcePrimKey())> 
23<#assign document = SAXReaderUtil.read(journalArticle.getContent())> 
24<#assign Headline = document.selectSingleNode("/root/dynamic-element[@name='Headline']/dynamic-content").getStringValue()?trim> 
25<#assign Audience = document.selectSingleNode("/root/dynamic-element[@name='Audience']/dynamic-content").getStringValue()> 
26<#assign Dateline = document.selectSingleNode("/root/dynamic-element[@name='Dateline']/dynamic-content").getStringValue()> 
27<#assign Body = document.selectSingleNode("/root/dynamic-element[@name='Body']/dynamic-content").getStringValue()> 
28<div class="pageTools body hidden-print breadcrumb-container"> 
29	<div class="container-block"> 
30	<div role="navigation" aria-label="breadcrumb" class="breadcrumb breadcrumbDisplay"> 
31		<#if site_title == "Excellus Providers"> 
32			<span><a href="https://provider.excellusbcbs.com">Provider</a></span> 
33		<#else> 
34			<span><a href="https://provider.univerahealthcare.com">Provider</a></span> 
35		</#if> 
36		<span class="breadcrumb-icon" aria-hidden="true"></span><a href="/resources/news">News and Updates</a> 
37		<span class="breadcrumb-icon" aria-hidden="true"></span>${Headline} 
38	</div> 
39	</div> 
40</div> 
41 
42<#if site_title == "Excellus Providers"> 
43	<script> 
44		var headline = "${Headline}"; 
45		document.title = headline + ' | Provider | Excellus BlueCross BlueShield'; 
46	</script> 
47<#else> 
48	<script> 
49		var headline = "${Headline}"; 
50		document.title = headline + ' | Provider | Univera Healthcare'; 
51	</script> 
52</#if> 
53 
54<div class="container-fluid body"> 
55	<div class="row"> 
56	   <div class="col-sm-9 provider-news__article"> 
57		  <a class="provider-news__article__back-link" href="/resources/news"> 
58		  <i class="fa fa-chevron-left"></i>Return to Provider News 
59		  </a> 
60		  <h1 class="provider-news__article__title" id="${Headline}">${Headline}</h1> 
61		  <#if validator.isNotNull(Dateline)> 
62		  <#assign DateObj = dateUtil.parseDate("yyyy-MM-dd", Dateline, locale)> 
63		  <span class="provider-news__article__dateline text-muted"> 
64		  Issued ${dateUtil.getDate(DateObj, "MMMM d, yyyy", locale)} 
65		  </span> 
66		  </#if> 
67		  <div class="provider-news__article__body"> 
68			 <#if Audience?contains("*") == false> 
69				<p class="text-center"><strong>Audience: ${Audience}</strong></p> 
70			 </#if> 
71			 ${Body} 
72			 <#if site_title == "Excellus Providers"> 
73			    <a class="email-icon" href="mailto:?subject=Read%20%22${Headline}%22%20from Excellus%20BCBS&amp;body=I%20thought%20you%20might%20be%20interested%20in%20this%20article%20from%20Excellus%20BCBS%3A%0Ahttps://provider.excellusbcbs.com/resources/news/article?articleId=${articleId}%26classPK=${classPK}">Email this article</a> 
74			 <#else> 
75			    <a class="email-icon" href="mailto:?subject=Read%20%22${Headline}%22%20from%20Univera%20Healthcare&amp;body=I%20thought%20you%20might%20be%20interested%20in%20this%20article%20from%20Univera%20Healthcare%3A%0Ahttps://provider.univerahealthcare.com/resources/news/article?articleId=${articleId}%26classPK=${classPK}">Email this article</a> 
76			 </#if> 
77		  </div> 
78	   </div> 
79	   <div class="col-sm-3  provider-news" > 
80		<div class="row "><div class="row ">&nbsp;</div><div class="row ">&nbsp;</div> 
81		  <#-- 
82		  Name: Provider Related News 
83		  Type: Asset Publisher Template 
84		  Uses content template: No 
85		  Provides template to retrieve Related Article based on Journal Article Categories. 
86		  --> 
87		  <style> 
88			 .relatedCat{background-color:transparent;border-color:#bbb;color:#007ac3;border:solid #007ac3 1px;font-size:1.1rem;border-radius:4px;font-weight:600;padding-bottom:.75rem;padding-top:.75rem;transition:color .3s,border-color .3s,background-color .3s;display:inline-block;text-align:center;vertical-align:middle;touch-action:manipulation;white-space:nowrap;padding:3px 6px;font-family:'Open Sans',sans-serif} 
89		  </style> 
90		  <#assign templateTitle = "Related News"> 
91		  <#assign templateCategory = "Category"> 
92		  <#assign articleUrl = "article"> 
93		  <#assign strArticleId = themeDisplay.getRequest().getParameter('articleId')> 
94		  <#assign strClassPK = themeDisplay.getRequest().getParameter('classPK')> 
95		  <#assign classPK = strClassPK?number> 
96		  <#assign articleId = strArticleId?number> 
97		  <#assign portalURL = themeDisplay.getURLPortal()> 
98		  <#assign siteGroupId = themeDisplay.getSiteGroupId()> 
99		  <#assign globalGroupId = themeDisplay.getCompanyGroupId()> 
100		   
101		  <#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
102		  <#assign categories = AssetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle",classPK)/> 
103		  <#assign RelatedArticlcleService = serviceLocator.findService("com.excellus.custom.service.relatedarticles.RelatedArticleService")> 
104		   <#assign relatedEntries = RelatedArticlcleService.getRelatedArticles(articleId,classPK,portalURL,siteGroupId,globalGroupId)/> 
105		  <h5 class="provider-news__title">${templateTitle}</h5> 
106		  <#if relatedEntries?has_content> 
107		  <#list relatedEntries> 
108		  <#items as relatedEntry> 
109		  <#-- Get Article Metadata --> 
110		  <#assign renderer = relatedEntry.getAssetRenderer()> 
111		  <#assign journalArticle = renderer.getAssetObject()> 
112		  <#assign urlTitle = renderer.getUrlTitle()> 
113		  <#assign modifiedDate = relatedEntry.getModifiedDate()> 
114		  <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale))> 
115		  <#assign rootElement = document.getRootElement()> 
116		  <#-- Get fields --> 
117		  <#assign HeadlinexPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Headline']")> 
118		  <#assign Headline = HeadlinexPathSelector.selectSingleNode(rootElement).getStringValue()> 
119		  <#assign DatelinexPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Dateline']")> 
120		  <#assign Dateline = DatelinexPathSelector.selectSingleNode(rootElement).getStringValue()> 
121		  <#assign BodyxPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Body']")> 
122		  <#assign Body = BodyxPathSelector.selectSingleNode(rootElement).getStringValue()> 
123		  <#-- Get article link --> 
124		  <#assign viewURL = "${articleUrl}?articleId=" + relatedEntry.getEntryId() + "&classPK=" + relatedEntry.getClassPK()> 
125		  <div class="provider-news__entry"> 
126			 <b><a class="provider-news__entry__link" href="${viewURL}">${Headline}</a></b> 
127			 <p><span class="provider-news__entry__dateline text-muted"> 
128				<#if Dateline?trim?has_content> 
129				<#assign DateObj = dateUtil.parseDate("yyyy-MM-dd", Dateline?trim, locale)> 
130				Issued ${dateUtil.getDate(DateObj, "MMMM d, yyyy", locale)} 
131				</#if> 
132				</span> 
133			 </p> 
134		  </div> 
135		  </#items> 
136		  </#list> 
137		  </#if> 
138		  <h5 class="provider-news__title">${templateCategory}</h5> 
139		  <#list categories as category> 
140		  <p class="badge">${category.getName()}</p> 
141		  </#list> 
142		  </div> 
143		</div> 
144	</div> 
145</div>