Nous contacter

Si vous souhaitez une assistance particulière ou un renseignement, contactez votre service clientèle Safar Flyer dédié !

Open in a new window

Une erreur s'est produite lors du traitement du modèle.
Java method "com.sun.proxy.$Proxy63.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy63 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@246582a1"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign category = assetCategoryLocal...  [in template "64899143380625#20119#49696" at line 8, column 9]
----
1<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
2 
3<#assign currentUrl = themeDisplay.getURLCurrent()> 
4<#assign catId = currentUrl?matches('.*[?&]categoryId=([0-9]+).*')?then(currentUrl?replace('.*[?&]categoryId=([0-9]+).*', '$1', 'r'), '') /> 
5<#if catId == ""> 
6	<#assign catName = "All"> 
7<#else> 
8	<#assign category = assetCategoryLocalService.getCategory(catId?number)> 
9	<#assign catName = category.getName()> 
10</#if> 
11		 
12<#assign portalURL = currentURL?replace("\\?.*", "", "r") /> 
13		 
14<#if entries?has_content> 
15	<#list entries as curVocabulary> 
16		<div class="container"> 
17			<div class="row"> 
18				<div class="col-12"> 
19					<h2><@liferay.language key="category"/></h2> 
20				</div> 
21			</div> 
22			<div class="row"> 
23				<div class="col-12"> 
24					<div id="flex-tab"> 
25						<div class="custom-dropdown d-lg-none"> 
26							<#assign categoryURL = portalURL>	 
27							<a class="toggle" href="${portalURL}" role="button" data-toggle="dropdown" data-target="faq-tab" aria-haspopup="true" aria-expanded="false"> 
28								<div class="d-flex justify-content-between"><p>${catName}</p><span class="icon-arrow-down"></span></div> 
29							</a> 
30							 
31							<div class="dropdown-menu" aria-labelledby="dropdownMenuLink"> 
32								<a class="dropdown-item" href="${categoryURL}"><p><@liferay.language key="all"/></p></a>	 
33								<#list curVocabulary.getCategories() as curCat> 
34									<#assign categoryURL = portalURL + "?categoryId=" + curCat.categoryId>								 
35									<a class="dropdown-item" href="${categoryURL}"><p>${curCat.getTitle(themeDisplay.getLocale())}</p></a> 
36								</#list>	 
37							</div>	 
38						</div> 
39					</div> 
40				</div> 
41			</div>				 
42			<div class="row usual-ques"> 
43				<div class="col-lg-12"> 
44					<div id="faq-dropdown"> 
45						<ul class="nav tab-nav arrow-list d-none d-lg-block" id="faq-tab" role="tablist"> 
46							<#assign categoryURL = portalURL> 
47							<#if catId == ""> 
48								<#assign active ="aria-selected='true'"> 
49							<#else> 
50								<#assign active ="">							 
51							</#if>							 
52							<li><a href="${categoryURL}" ${active}><@liferay.language key="all"/></a></li> 
53							<#list curVocabulary.getCategories() as curCat> 
54								<#assign categoryURL = portalURL + "?categoryId=" + curCat.categoryId> 
55								<#if catId != "" && catId?number == curCat.categoryId> 
56									<#assign active ="aria-selected='true'"> 
57								<#else> 
58									<#assign active ="">							 
59								</#if> 
60								<li><a href="${categoryURL}" ${active}>${curCat.getTitle(themeDisplay.getLocale())}</a> 
61								</li> 
62							</#list> 
63						</ul> 
64					</div>	 
65				</div> 
66			</div> 
67		</div>	 
68	</#list> 
69</#if> 
Une erreur s'est produite lors du traitement du modèle.
Java method "com.sun.proxy.$Proxy63.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy63 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@246582a1"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign category = assetCategoryLocal...  [in template "64899143380625#20119#49671" at line 12, column 41]
----
1<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/> 
2<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")/> 
3<#assign currentUrl = themeDisplay.getURLCurrent()> 
4<#assign catId = currentUrl?matches('.*[?&]categoryId=([0-9]+).*')?then(currentUrl?replace('.*[?&]categoryId=([0-9]+).*', '$1', 'r'), '') /> 
5 
6	<div class="col-12 tab-content" id="faq-tab-content">  
7		<div class="tab-pane fade active show" role="tabpanel" aria-labelledby="baggage-tab"> 
8			<div class="d-none d-lg-block"> 
9				<#if catId == ""> 
10					<h3><@liferay.language key="all"/></h3> 
11				<#else> 
12					<#assign category = assetCategoryLocalService.getCategory(catId?number)> 
13					<h3><@liferay.language key="${category.getName()}"/></h3> 
14				</#if>		 
15				<hr> 
16			</div> 
17			<#if entries?has_content> 
18				<div class="page-list"> 
19					<ul class="bullet-list"> 
20						<#list entries as curEntry> 
21							<#assign assetRenderer = curEntry.getAssetRenderer()/> 
22							<#assign journalArticle = assetRenderer.getAssetObject() /> 
23							<#assign ddmStructure = journalArticle.getDDMStructure() /> 
24							<#assign structureMap = ddmStructure.getDDMFormFieldsMap() /> 
25							<#assign ddmForm = ddmStructure.getDDMForm()/> 
26							<#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) /> 
27							<#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() /> 
28							 
29							<#list ddmFormFieldValues as fieldName> 
30								 
31								<#if fieldName.getFieldReference() == 'Question'> 
32									<#assign Question = fieldName.getValue().getString(locale)/> 
33								</#if> 
34								 
35							</#list> 
36							 
37							<#assign link = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry)> 
38      				<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, link)> 
39 							<#assign articlePrimKey = journalArticle.resourcePrimKey > 
40							<#assign className= curEntry.getClassName()> 
41							<#assign articleCatNames = assetCategoryLocalService.getCategoryNames(className, getterUtil.getLong(articlePrimKey))> 
42							<#assign market = ramUtils.getCurrentMarket(request)>  
43							<#assign showEntry = false> 
44							<#assign matchesCategory = false> 
45 
46							<#if catId == ""> 
47								<#assign matchesCategory = true> 
48							<#else> 
49								<#assign entryCatIds = assetCategoryLocalService.getCategoryIds(className, getterUtil.getLong(articlePrimKey))> 
50								<#list entryCatIds as ecid> 
51									<#if ecid?string == catId> 
52										<#assign matchesCategory = true> 
53									</#if> 
54								</#list> 
55							</#if> 
56 
57							 
58							<#list articleCatNames as catName> 
59									<#if catName?starts_with("Market ")> 
60										<#assign catMarket = catName?split(" ")[1]?split("-")[0]?lower_case> 
61										<#if catMarket == market> 
62											<#assign showEntry = true> 
63										</#if> 
64									</#if> 
65							</#list> 
66 
67							<#if viewURL?split("?")?size gt 0> 
68								<#list viewURL?split("?") as text> 
69											<#if text_index == 0> 
70												<#assign viewURL = text> 
71											</#if> 
72								</#list> 
73							</#if> 
74								 
75 
76							<#if showEntry && matchesCategory> 
77								<li><a href="${viewURL}">${Question}</a></li> 
78							</#if> 
79						</#list>	 
80					</ul> 
81				</div> 
82			</#if> 
83		</div> 
84	</div>