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

IndexOutOfBoundsException on confirmSubmit

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.x
    • Fix Version/s: 2.8.0
    • Labels:
      None
    • Previous Issue Keys:
      SAK-15458, SAM-759

      Description

      Looks like the same JSF state issue seen elsewhere, arising from double-click on a button. The page that submits to confirmSubmit should have javascript to disable further links/buttons once clicked. We saw 12 of these out of a group of approx 120 taking an assessment.

      usage-session: 607ac50b-0d81-4727-a04d-4fdff25005b4
      stack-trace-digest: 82409BBC2FAE78F05193AC83098799D08718D79A
      sakai-version: 2.6
      service-version: [r56228-r6779]
      app-server: vula2a
      user-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
      browser-id: Win-InternetExplorer
      IP: 137.158.109.27
      request-path: /portal/tool/3b15cb99-c3e2-488c-b8a9-030d95fb3d15/jsf/delivery/confirmSubmit
      time: 20-Jan-2009 19:15:52

      stack trace:

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: Index: 0, Size: 0
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:70)
      caused by: org.sakaiproject.tool.api.ToolException: Index: 0, Size: 0
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1215)
      caused by: javax.servlet.ServletException: Index: 0, Size: 0
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.RangeCheck(ArrayList.java:546)
      at java.util.ArrayList.remove(ArrayList.java:389)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:271)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at com.corejsf.UploadFilter.doFilter(UploadFilter.java:142)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:556)
      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:679)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:285)
      at org.sakaiproject.jsf.util.JsfTool.doPost(JsfTool.java:256)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
      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:485)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1215)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:188)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:93)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:70)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1058)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      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:607)
      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:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
      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:174)
      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:689)
      at java.lang.Thread.run(Thread.java:595)

      Tool Placement:
      No Placement

      Request:
      : AuthType:null
      : CharEncoding:utf-8
      : ContentLength:1634
      : ContentType:multipart/form-data; boundary=---------------------------7d93b1297007c
      : ContextPath:/portal
      : LocalAddress:null
      : LocalName:vula.uct.ac.za
      : LocalPort:443
      : Method:POST
      : PathInfo:/tool/3b15cb99-c3e2-488c-b8a9-030d95fb3d15/jsf/delivery/confirmSubmit
      : Protocol:HTTP/1.1
      : QueryString:null
      : RemoteAddress:137.158.109.27
      : RemoteHost:137.158.109.27
      : RemotePort:-1
      : Requested URL:https://vula.uct.ac.za/portal/tool/3b15cb99-c3e2-488c-b8a9-030d95fb3d15/jsf/delivery/confirmSubmit
      : Scheme:https
      : ServerName:vula.uct.ac.za
      : Headers:
      : Header:accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-silverlight, /
      : Header:referer:https://vula.uct.ac.za/portal/tool/3b15cb99-c3e2-488c-b8a9-030d95fb3d15/jsf/delivery/deliverAssessment
      : Header:Accept-Language:en-za
      : Header:content-type:multipart/form-data; boundary=---------------------------7d93b1297007c
      : Header:UA-CPU:x86
      : Header:Accept-Encoding:gzip, deflate
      : Header:user-agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
      : Header:host:vula.uct.ac.za
      : Header:content-length:1634
      : Header:connection:Keep-Alive
      : Header:Cache-Control:no-cache
      : Header:cookie:--censored--
      : Parameters:
      : Attributes:
      : Attribute:tool.url.manager:org.sakaiproject.portal.util.ToolURLManagerImpl@2ed55468
      : Attribute:sakai.session:org.sakaiproject.tool.impl.SessionComponent$MySession@5f261514
      : 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.request.native.url:sakai.request.native.url
      : Attribute:sakai.html.body.onload:setMainFrameHeight('Main3b15cb99xc3e2x488cxb8a9x030d95fb3d15');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:1232463851642
      : LastAccess:1232471752512
      : MaxInactive:8400
      : Attributes:
      : Attribute:portalskin:defaultskin

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                samigoteam SAMIGO TEAM (Inactive)
                Reporter:
                smarquard Stephen Marquard
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code