Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-13480

IndexOutOfBoundsException (regression introduced by performance improvements)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.5.0, 2.5.2, 2.5.3, 2.6.0
    • Fix Version/s: 2.5.x
    • Component/s: Email Archive
    • Labels:
      None

      Description

      This bug in Email Archive has surfaced in production since r45481 (SAK-11544 merged into 2-5-x):

      stack-trace-digest: 4ECB358149ECB15A0AA73B1C9CCA434E138CE607
      sakai-version: 2.5
      service-version: [r45903-r5247]
      app-server: vula4a
      user-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)
      browser-id: Win-InternetExplorer
      IP: 196.24.231.60
      request-path: /portal/tool/c6770cab-b1be-432b-809e-6d54dc437ced
      time: 30-Apr-2008 08:12:18

      stack trace:

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:891)
      caused by: org.sakaiproject.tool.api.ToolException
      at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:227)
      caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      caused by: java.lang.IndexOutOfBoundsException: toIndex = 1
      at java.util.SubList.<init>(AbstractList.java:705)
      at java.util.RandomAccessSubList.<init>(AbstractList.java:861)
      at java.util.AbstractList.subList(AbstractList.java:570)
      at java.util.Vector.subList(Vector.java:984)
      at org.sakaiproject.mailarchive.tool.MailboxAction.readResourcesPage(MailboxAction.java:371)
      at org.sakaiproject.cheftool.PagedResourceActionII.prepPage(PagedResourceActionII.java:344)
      at org.sakaiproject.mailarchive.tool.MailboxAction.buildListModeContext(MailboxAction.java:617)
      at org.sakaiproject.mailarchive.tool.MailboxAction.buildMainPanelContext(MailboxAction.java:439)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.toolModeDispatch(VelocityPortletPaneledAction.java:392)
      at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:227)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1005)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:555)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:459)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1343)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:163)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:86)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:891)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:592)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
      at java.lang.Thread.run(Thread.java:595)

      Tool Placement:
      No Placement

      Request:
      : AuthType:null
      : CharEncoding:UTF-8
      : ContentLength:0
      : ContentType:null
      : ContextPath:/portal
      : LocalAddress:null
      : LocalName:vula.uct.ac.za
      : LocalPort:443
      : Method:GET
      : PathInfo:/tool/c6770cab-b1be-432b-809e-6d54dc437ced
      : Protocol:HTTP/1.1
      : QueryString:panel=Main
      : RemoteAddress:196.24.231.60
      : RemoteHost:196.24.231.60
      : RemotePort:-1
      : Requested URL:https://vula.uct.ac.za/portal/tool/c6770cab-b1be-432b-809e-6d54dc437ced
      : Scheme:https
      : ServerName:vula.uct.ac.za
      : Headers:
      : Header:accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-powerpoint, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, /
      : Header:referer:https://vula.uct.ac.za/portal/site/36ad1e3c-2725-4119-80f8-ff3c5ca9a3f4/page/bf74a910-a4cb-437c-0067-8ede7fa2cd36
      : Header:accept-language:en-za
      : Header:UA-CPU:x86
      : Header:accept-encoding:gzip, deflate
      : Header:user-agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)
      : Header:host:vula.uct.ac.za
      : Header:connection:Keep-Alive
      : Header:cookie:--censored--
      : Header:content-length:0
      : Parameters:
      : Parameter:panel:0:Main
      : Attributes:
      : Attribute:tool.url.manager:org.sakaiproject.portal.util.ToolURLManagerImpl@2499360f
      : Attribute:sakai.session:org.sakaiproject.tool.impl.SessionComponent$MySession@c835061b
      : Attribute:sakai.html.head.css.base:<link href="/library/skin/tool_base.css" type="text/css" rel="stylesheet" media="all" />

      : Attribute:sakai.character.encoding.done:sakai.character.encoding.done
      : Attribute:sakai.html.head.js:<script type="text/javascript" language="JavaScript" src="/library/js/headscripts.js"></script>

      : Attribute:sakai.html.head:<link href="/library/skin/tool_base.css" type="text/css" rel="stylesheet" media="all" />
      <link href="/library/skin/default/tool.css" type="text/css" rel="stylesheet" media="all" />
      <script type="text/javascript" language="JavaScript" src="/library/js/headscripts.js"></script>

      : Attribute:sakai.html.body.onload:setMainFrameHeight('Mainc6770cabxb1bex432bx809ex6d54dc437ced');setFocus(focus_path);
      : Attribute:sakai.filtered:sakai.filtered
      : Attribute:sakai.html.head.css.skin:<link href="/library/skin/default/tool.css" type="text/css" rel="stylesheet" media="all" />

      : Attribute:sakai.html.head.css:<link href="/library/skin/tool_base.css" type="text/css" rel="stylesheet" media="all" />
      <link href="/library/skin/default/tool.css" type="text/css" rel="stylesheet" media="all" />

      Session:
      : Created:1209535697774
      : LastAccess:1209535938279
      : MaxInactive:3600
      : Attributes:
      : Attribute:portalskin:defaultskin

      mysql> select REVISION, BUG_ID, BUG_DATE, CAUSED_BY from SAKAI_BUGS WHERE TOOL='sakai.mailbox' ORDER BY BUG_DATE DESC;
      -----------------------------------------------------------------------------------------+

      REVISION BUG_ID BUG_DATE CAUSED_BY

      -----------------------------------------------------------------------------------------+

      [r45903-r5247] 11460 2008-04-30 08:12:19 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11444 2008-04-29 15:35:31 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11427 2008-04-29 13:23:07 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11424 2008-04-29 12:08:51 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11414 2008-04-29 11:39:18 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11405 2008-04-29 11:03:54 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11401 2008-04-29 10:21:09 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11367 2008-04-25 15:33:56 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11204 2008-04-23 15:47:10 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 11104 2008-04-22 13:41:17 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 10972 2008-04-20 22:38:47 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 10971 2008-04-20 22:38:21 java.lang.IndexOutOfBoundsException: toIndex = 1
      [r45575-r5158] 10970 2008-04-20 22:37:42 java.lang.IndexOutOfBoundsException: toIndex = 1

      -----------------------------------------------------------------------------------------+
      13 rows in set (0.12 sec)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  csev Charles Severance
                  Reporter:
                  smarquard Stephen Marquard
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration