Employer

An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1080.addArticle(String, long, long, long, long, long, String, boolean, double, Map, Map, Map, String, String, String, String, int, int, int, int, int, int, int, int, int, int, boolean, int, int, int, int, int, boolean, boolean, boolean, String, java.io.File, Map, String, com.liferay.portal.kernel.service.ServiceContext)" threw an exception when invoked on com.sun.proxy.$Proxy1080 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@1d23d047"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign artykul = journalArticleServi...  [in template "20096#20121#SZABLON-FORMULARZA-DODANIA-SZKICOW-OFERT-PRACY-BIURO-KARIER" at line 50, column 1]
----
1<#assign serviceContext = ujObjectProvider.createServiceContext() /> 
2<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 
3 
4<#assign artificalArticle = journalArticleService.createJournalArticle(0)/> 
5 
6${artificalArticle.setTitleMap({locale:"kks"})} 
7${artificalArticle.setDescriptionMap({locale:"jks"})} 
8${artificalArticle.setDescriptionMap({locale:"jks"})} 
9 
10<#assign userId = getterUtil.getLong('614789') /> <#-- TODO id piotr.rapciak@uj.edu.pl --> 
11<#assign groupId = getterUtil.getLong('757428') /> <#-- groupId dla Biura Karier w portalu --> 
12<#assign tytul = "Oferta pracy - " /> 
13<#assign opis = 'Oferta pracy wygenerowana z formularza Biura Karier' /> 
14<#assign typTresci = 'bulletin' /> 
15<#assign structureId = 'STRUKTURA-OFERTY-PRACY-BIURA-KARIER' /> 
16<#assign templateId = 'SZABLON-LISTY-OFERT-PRACY-BIURA-KARIER' /> 
17<#assign content = 'gfd' /> 
18<#assign categoryIds = [] /> 
19<#assign listaTagow = [] /> 
20<#assign friendlyURLMap = { locale : "/oferta-pracy" } /> 
21 
22${serviceContext.setAssetCategoryIds(categoryIds)} 
23${serviceContext.setAssetTagNames(listaTagow)} 
24${serviceContext.setCompanyId(getterUtil.getLong(companyId))} 
25${serviceContext.setScopeGroupId(groupId)} 
26${serviceContext.setUserId(userId)} 
27${serviceContext.setWorkflowAction(getterUtil.getInteger("2"))} <#-- 2 to draft, 1 to publish - com.liferay.portal.kernel.workflow.WorkflowConstants --> 
28${serviceContext.setLanguageId(languageId)} 
29 
30<#assign y = getterUtil.getInteger(2026)/> 
31<#assign M = getterUtil.getInteger(2)/> 
32<#assign d = getterUtil.getInteger(2)/> 
33<#assign H = getterUtil.getInteger(2)/> 
34<#assign mm = getterUtil.getInteger(2)/> 
35<#assign dzisiaj = .now?date/> 
36<#assign m = dzisiaj?long/> 
37 
38<#assign expirationDate = "20260606"?date("yyyyMMdd")/> 
39<#assign m = expirationDate?long/> 
40 
41<#assign expY = getterUtil.getInteger(dateUtil.getDate(expirationDate, "yyyy", locale))/> 
42<#assign expM = getterUtil.getInteger(dateUtil.getDate(expirationDate, "MM", locale)) - 1/> 
43<#assign expD = getterUtil.getInteger(dateUtil.getDate(expirationDate, "dd", locale))/> 
44<#assign expH = 0/> 
45<#assign expMM = 0/> 
46<#assign fileService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
47eId,--> 
48<#--serviceContext)--> 
49 
50<#assign artykul = journalArticleService.addArticle( 
51"", userId, groupId, 
52getterUtil.getLong(0), getterUtil.getLong(0), getterUtil.getLong(0), "", <#-- wszystko git --> 
53true, getterUtil.getDouble(0), artificalArticle.getTitleMap(), 
54artificalArticle.getDescriptionMap(), 
55friendlyURLMap, content, 
56structureId, templateId, null, 
57M, d, y, 
58H, mm, expM, 
59expD, expY, 
60expH, expMM, 
61false, 0, 0, 
620, 0, 0, 
63true, true, false, 
64"", null, 
65{}, "", 
66serviceContext) 
67/>