Liferay 6.2 CE GA6: Calendar Portlet generates jasper exceptionLiferay 6.2 CE GA6: Calendar Portlet generates jasper exceptionhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1021974182024-03-28T08:32:46Z2024-03-28T08:32:46ZLiferay 6.2 CE GA6: Calendar Portlet generates jasper exceptionMarco Ferrettihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1021974172018-01-03T09:57:19Z2018-01-03T09:57:19Z<html><head></head><body>Hi all, <br><br>I am facing a strange issue with calendar portlet: it looks like there's a process (indexing ?) that causes the portal to try and compile JSP pages of the calendar portlet that cause a jasper exception (eg): <br><pre><code>
09:18:24,434 ERROR [ajp-bio-8009-exec-31][PortletServlet:116] javax.portlet.PortletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /view_calendars.jsp at line 25__22: CalendarResource calendarResource = (CalendarResource)request.getAttribute(WebKeys.CALENDAR_RESOURCE);_23: %&gt;_24: _25: <liferay-ui:header_26: backURL="<%= redirect %>" _27: title="<%= LanguageUtil.format(pageContext, &quot;x-calendars&quot;, calendarResource.getName(locale), false) %>" _28: />___Stacktrace: [Sanitized]
javax.portlet.PortletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /view_calendars.jsp at line 25__22: CalendarResource calendarResource = (CalendarResource)request.getAttribute(WebKeys.CALENDAR_RESOURCE);_23: %&gt;_24: _25: <liferay-ui:header_26: backURL="<%= redirect %>" _27: title="<%= LanguageUtil.format(pageContext, &quot;x-calendars&quot;, calendarResource.getName(locale), false) %>" _28: />___Stacktrace: [Sanitized]
</code></pre><br><br>I have checked the jsp page and it looks like the call <br><pre><code>
&lt;%
...
CalendarResource calendarResource = (CalendarResource)request.getAttribute(WebKeys.CALENDAR_RESOURCE);
%&gt;
</code></pre><br><br>returns null when it is expected to have a value and any subsequent (not checked) call to calendarResource throws a nullpointer exception.<br><br>I have other jasper (compiler) exceptions on the same portlet for different pages : <br>(e.g.) <br><pre><code>
09:42:48,778 ERROR [ajp-bio-8009-exec-21][PortletServlet:116] javax.portlet.PortletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /edit_calendar_booking.jsp at line 131__128: }_129: }_130: _131: List<calendar> manageableCalendars = CalendarServiceUtil.search(themeDisplay.getCompanyId(), new long[] {user.getGroupId(), scopeGroupId}, null, null, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, new CalendarNameComparator(true), ActionKeys.MANAGE_BOOKINGS);_132: _133: long[] otherCalendarIds = StringUtil.split(SessionClicks.get(request, "calendar-portlet-other-calendars", StringPool.BLANK), 0L);_134: ___Stacktrace: [Sanitized]
javax.portlet.PortletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /edit_calendar_booking.jsp at line 131__128: }_129: }_130: _131: List<calendar> manageableCalendars = CalendarServiceUtil.search(themeDisplay.getCompanyId(), new long[] {user.getGroupId(), scopeGroupId}, null, null, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, new CalendarNameComparator(true), ActionKeys.MANAGE_BOOKINGS);_132: _133: long[] otherCalendarIds = StringUtil.split(SessionClicks.get(request, "calendar-portlet-other-calendars", StringPool.BLANK), 0L);_134: ___Stacktrace: [Sanitized]
</calendar></calendar></code></pre><br><br>Does anyone have a clue about this ? Is there anything I can do to prevent this ?<br><br>TIA<br><br>Marco F.</body><