You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ical service at https://myhost/xwiki/bin/get/MoccaiCalendar/Service?calendar=MoccaCalendar.Box.WebHome&user=user&password=pass now returns an error instead of the ical content.
Getting
<div class="box xwikirenderingerror"><p>Erreur dans l'exécution de la macro [groovy]. Cause : [startup failed: xwiki:MoccaiCalendar.Service: 75: You cannot create an instance from the abstract interface 'net.fortuna.ical4j.util.UidGenerator'. @ line 75, column 23. UidGenerator ug = new UidGenerator(new SimpleHostInfo('atelier-medias.org'), eventDocument.documentReference.toString()); ^ 1 error ]. Cliquer sur ce message pour voir plus de détails.</p></div><div class="box xwikirenderingerrordescription hidden"><p>org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Script Macro for content [import net.fortuna.ical4j.model.*;<br/>import net.fortuna.ical4j.data.*;<br/>import net.fortuna.ical4j.model.property.*;<br/>import net.fortuna.ical4j.model.component.*;<br/>import net.fortuna.ical4j.model.parameter.*;<br/>import net.fortuna.ical4j.util.*;<br/>import org.xwiki.security.authorization.*;<br/><br/>def calendarReference = request.calendar<br/>if (calendarReference == null) {<br/>
println '{{error}}No "calendar" URL parameter has been provided{{/error}}'<br/><br/>
return;<br/>}<br/><br/>if (xcontext.userReference == null) {<br/>
// Since Google Calendar does not support basic auth and the only thing you can give is a URL we have workaround it with a crappy hack<br/>
// Never ever use that if you are no behind SSL<br/>
def user = request.user;<br/>
if (user != null) {<br/>
def password = request.password;<br/>
def principal = xwiki.getXWiki().getAuthService().authenticate(user, password, xcontext.context);<br/>
if (principal != null) {<br/>
//request.getSession().setAttribute(java.security.Principal.PRINCIPAL_SESSION_KEY, principal);<br/>
xcontext.context.setUser(principal.getName());<br/>
}<br/>
}<br/>}<br/><br/>def calendarDocument = xwiki.getDocument(calendarReference)<br/>if (calendarDocument == null || calendarDocument.isNew()) {<br/>
println "{{error}}Cannot access calendar [[$calendarReference>>$calendarReference]]{{/error}}";<br/><br/>
return ;<br/>}<br/><br/>// Create the calendar<br/>Calendar calendar = new Calendar();<br/>calendar.getProperties().add(new ProdId("-//XWiki//iCal4j 1.0//EN"));<br/>calendar.getProperties().add(Version.VERSION_2_0);<br/>calendar.getProperties().add(CalScale.GREGORIAN);<br/>calendar.getProperties().add(new XProperty("X-WR-CALNAME", calendarDocument.plainTitle));<br/><br/>// Add events<br/>def events = services.query.xwql('from doc.object(MoccaCalendar.MoccaCalendarEventClass) as event where doc.parent = :parent').bindValue('parent', calendarReference).execute();<br/><br/>events.each {<br/>
def eventDocument = xwiki.getDocumentAsAuthor(it);<br/><br/>
if (eventDocument != null) {<br/>
def startDate = eventDocument.getValue('startDate');<br/>
def endDate = eventDocument.getValue('endDate');<br/><br/>
VEvent event;<br/>
if (endDate != null && eventDocument.getValue('allDay') != 1) {<br/>
startDate = new DateTime(startDate);<br/>
startDate.setUtc(true);<br/>
endDate = new DateTime(endDate);<br/>
endDate.setUtc(true);<br/><br/>
event = new VEvent(startDate, endDate, eventDocument.plainTitle);<br/>
} else {<br/>
// Go trough String to workaround any timezone issue<br/>
// TODO: find a more elegant way<br/>
def utcDate = new Date(startDate.format('yyyyMMdd'), 'yyyyMMdd')<br/>
event = new VEvent(utcDate, eventDocument.plainTitle);<br/>
}<br/><br/>
def description = eventDocument.getValue('description').replace('([^\\r])\\n', '$1\\r\\n');<br/>
description += "\r\n\r\n";<br/>
description += eventDocument.externalURL;<br/>
event.getProperties().add(new Description(description));<br/><br/>
// Generate a UID for the event..<br/>
UidGenerator ug = new UidGenerator(new SimpleHostInfo('atelier-medias.org'), eventDocument.documentReference.toString());<br/>
event.getProperties().add(ug.generateUid());<br/>
calendar.getComponents().add(event)<br/>
}<br/>}<br/><br/>// Set mime type<br/>response.setContentType('text/calendar');<br/>// set file name<br/>response.setHeader("Content-Disposition", "attachment; filename=${calendarReference}.ics");<br/><br/>// Send result<br/>CalendarOutputter outputter = new CalendarOutputter();<br/>outputter.output(calendar, response.outputStream);<br/>response.flushBuffer();<br/><br/>// We are done<br/>xcontext.setFinished(true)]<br/>
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:202)<br/>
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:60)<br/>
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)<br/>
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)<br/>
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:309)<br/>
at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)<br/>
at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)<br/>
at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:395)<br/>
at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:268)<br/>
at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)<br/>
at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)<br/>
at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)<br/>
at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)<br/>
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)<br/>
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)<br/>
at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)<br/>
at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)<br/>
at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)<br/>
at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)<br/>
at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)<br/>
at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)<br/>
at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1350)<br/>
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1487)<br/>
at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1436)<br/>
at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1405)<br/>
at com.xpn.xwiki.api.Document.displayDocument(Document.java:798)<br/>
at jdk.internal.reflect.GeneratedMethodAccessor962.invoke(Unknown Source)<br/>
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br/>
at java.base/java.lang.reflect.Method.invoke(Method.java:566)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)<br/>
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)<br/>
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)<br/>
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)<br/>
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)<br/>
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)<br/>
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)<br/>
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)<br/>
at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)<br/>
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)<br/>
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)<br/>
at org.apache.velocity.Template.merge(Template.java:358)<br/>
at org.apache.velocity.Template.merge(Template.java:262)<br/>
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)<br/>
at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)<br/>
at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)<br/>
at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)<br/>
at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)<br/>
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)<br/>
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)<br/>
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)<br/>
at jdk.internal.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)<br/>
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br/>
at java.base/java.lang.reflect.Method.invoke(Method.java:566)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)<br/>
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)<br/>
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)<br/>
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)<br/>
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)<br/>
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)<br/>
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)<br/>
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)<br/>
at org.apache.velocity.Template.merge(Template.java:358)<br/>
at org.apache.velocity.Template.merge(Template.java:262)<br/>
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)<br/>
at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)<br/>
at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)<br/>
at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)<br/>
at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)<br/>
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)<br/>
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)<br/>
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)<br/>
at jdk.internal.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)<br/>
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br/>
at java.base/java.lang.reflect.Method.invoke(Method.java:566)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)<br/>
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)<br/>
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)<br/>
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)<br/>
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)<br/>
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)<br/>
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)<br/>
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)<br/>
at org.apache.velocity.Template.merge(Template.java:358)<br/>
at org.apache.velocity.Template.merge(Template.java:262)<br/>
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)<br/>
at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)<br/>
at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)<br/>
at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)<br/>
at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)<br/>
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)<br/>
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)<br/>
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)<br/>
at jdk.internal.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)<br/>
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br/>
at java.base/java.lang.reflect.Method.invoke(Method.java:566)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)<br/>
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)<br/>
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)<br/>
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)<br/>
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)<br/>
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)<br/>
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)<br/>
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)<br/>
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)<br/>
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)<br/>
at org.apache.velocity.Template.merge(Template.java:358)<br/>
at org.apache.velocity.Template.merge(Template.java:262)<br/>
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)<br/>
at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)<br/>
at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)<br/>
at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)<br/>
at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)<br/>
at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)<br/>
at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)<br/>
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)<br/>
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)<br/>
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)<br/>
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)<br/>
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:601)<br/>
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:289)<br/>
at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)<br/>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)<br/>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br/>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br/>
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)<br/>
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)<br/>
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)<br/>
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)<br/>
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)<br/>
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)<br/>
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)<br/>
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)<br/>
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)<br/>
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)<br/>
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:887)<br/>
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1684)<br/>
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br/>
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)<br/>
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)<br/>
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br/>
at java.base/java.lang.Thread.run(Thread.java:829)<br/>
Caused by: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:<br/>xwiki:MoccaiCalendar.Service: 75: You cannot create an instance from the abstract interface 'net.fortuna.ical4j.util.UidGenerator'.<br/>
@ line 75, column 23.<br/>
UidGenerator ug = new UidGenerator(new SimpleHostInfo('atelier-medias.org'), eventDocument.documentReference.toString());<br/>
^<br/><br/>1 error<br/><br/>
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:158)<br/>
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.eval(AbstractJSR223ScriptMacro.java:351)<br/>
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:249)<br/>
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:197)<br/>
... 221 more<br/>
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:<br/>xwiki:MoccaiCalendar.Service: 75: You cannot create an instance from the abstract interface 'net.fortuna.ical4j.util.UidGenerator'.<br/>
@ line 75, column 23.<br/>
UidGenerator ug = new UidGenerator(new SimpleHostInfo('atelier-medias.org'), eventDocument.documentReference.toString());<br/>
^<br/><br/>1 error<br/><br/>
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:292)<br/>
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:914)<br/>
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:627)<br/>
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389)<br/>
at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332)<br/>
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)<br/>
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)<br/>
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:330)<br/>
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)<br/>
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:257)<br/>
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getScriptClass(GroovyScriptEngineImpl.java:336)<br/>
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:153)<br/>
... 224 more</p></div>
Most probably caused by an ical4j upgrade.
The text was updated successfully, but these errors were encountered:
The ical service at
https://myhost/xwiki/bin/get/MoccaiCalendar/Service?calendar=MoccaCalendar.Box.WebHome&user=user&password=pass
now returns an error instead of the ical content.Getting
Most probably caused by an ical4j upgrade.
The text was updated successfully, but these errors were encountered: