Expand my Community achievements bar.

SOLVED

Event download as ICS file

Avatar

Former Community Member

I've created a event using foundation event component (/libs/collab/calendar/components/event) and set the required values. But if I try to download the event ICS file then it's throwing following exception:

com.day.cq.wcm.core.impl.WCMDebugFilter Exception: null java.lang.NullPointerException
    at edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:769)
    at net.fortuna.ical4j.model.TimeZoneRegistryImpl.getTimeZone(TimeZoneRegistryImpl.java:136)
    at com.adobe.cq.social.calendar.impl.JcrTimeZoneRegistry.getTimeZone(JcrTimeZoneRegistry.java:101)
    at com.adobe.cq.social.calendar.servlets.ICalExportServlet.doGet(ICalExportServlet.java:129)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
    at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:508)
    at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
    at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:182)
    at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:149)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:144)

 

It appears from the stacktrace that event timezone is set to null. I don't see how to set it or am missing anything else.

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Level 10

Issue has been filled (CQ5-34388) internally.  As a workaround manually set the timezone. Ex:- for geometrixx "/content/geometrixx/en/events/shapecon/jcr:content/par/event/event" path create a property called "timeZone" of type "String" and assign value as "Asia/India" which is IST time zone.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Issue has been filled (CQ5-34388) internally.  As a workaround manually set the timezone. Ex:- for geometrixx "/content/geometrixx/en/events/shapecon/jcr:content/par/event/event" path create a property called "timeZone" of type "String" and assign value as "Asia/India" which is IST time zone.