musxav / liferay-calendar-color

Liferay calendar type color
0 stars 1 forks source link

Index Out of bounds exceptions #2

Open goagrawal opened 10 years ago

goagrawal commented 10 years ago

Hi

All of sudden the calendar portlet stopped working. Could you please suggest a solution?

16:11:47,217 ERROR [http-bio-8080-exec-28][IncludeTag:253] Current URL /web/abc-xyz-team/calendar?p_p_id=8&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_8_struts_action=%2Fcalendar%2Fedit_event&_8_redirect=http%3A%2F%2Fhome.company.net%2Fweb%2Fabc-xyz-team%2Fcalendar%3Fp_p_id%3D8%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_count%3D1&_8_backURL=http%3A%2F%2Fhome.company.net%2Fweb%2Fabc-xyz-team%2Fcalendar%3Fp_p_id%3D8%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_count%3D1&_8_month=5&_8_day=4&_8_year=2014 generates exception: 20 16:11:47,234 ERROR [http-bio-8080-exec-28][IncludeTag:154] java.lang.ArrayIndexOutOfBoundsException: 20 at org.apache.jsp.html.portlet.calendar.edit_005fevent_jsp._jspService(edit_005fevent_jsp.java:1439) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54) at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345) at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245) at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86) at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:4569) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)

musxav commented 10 years ago

Hi, Possible problem in string definition of categories and colors, test if correct the categorie and color/color on configuration. Look at default configuration in portal properties, defect is "calendar.event.types.color=*" Force reset to default categories and colors to test if you do not view any mistake.

Best regards.

goagrawal commented 10 years ago

Thank you for quick response. This is what I see in portletpreferences table for this site :

colorTypes be::::#1f1a1a::#3c6ebe::Deployment::#0d0202::#be443c::57be3c::Infrastructure Changes & Freeze Dates::#0d0202::#3c60be::Vacation::#0d0202::#be7f3c::Group Launches::#0d0202::#be3c9c::Scheduled Maintenance::#0d0202::#3cb6be

Does it look good? What should I change from database?

musxav commented 10 years ago

The construction is "description::color::color" separator is "::" String in elements be::::#1f1a1a::#3c6ebe -> 2 separators after description. ::Deployment::#0d0202::#be443c ::57be3c -> ??? ::Infrastructure Changes & Freeze Dates::#0d0202::#3c60be ::Vacation::#0d0202::#be7f3c ::Group Launches::#0d0202::#be3c9c ::Scheduled Maintenance::#0d0202::#3cb6be

Modify or in plugin reset colors to default and set colors.