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

stack trace on generating report for event = resource read for single user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.1, 11.0
    • Component/s: Sitestats
    • Labels:
      None
    • 10 status:
      Resolved
    • Previous Issue Keys:
      STAT-385

      Description

      Steps to reproduce
      1) add file to resources
      2) access the file in resources as another participant (student)
      3) go to Site Stats > Add Report
      4) select Activity = Resources; Limit to action = Read; Period = 7 days
      5) in the "Who" select Custom then select the student that accessed the file in step 2

      Seems to work if the "who" is Role or All

      Technical Details

      This information will automatically be included in your bug report.

      org.sakaiproject.portal.api.PortalHandlerException: org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = reportsForm]] threw an exception
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:75)
      caused by: org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = reportsForm]] threw an exception
      at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
      caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -30
      at java.lang.String.substring(String.java:1875)
      at org.sakaiproject.sitestats.tool.wicket.pages.ReportsEditPage$MultipleSelect.convertInput(ReportsEditPage.java:1384)
      at org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1207)
      at org.apache.wicket.markup.html.form.Form$23.validate(Form.java:2209)
      at org.apache.wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:175)
      at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:446)
      at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:433)
      at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrder(FormComponent.java:405)
      at org.apache.wicket.markup.html.form.Form.visitFormComponentsPostOrder(Form.java:1263)
      at org.apache.wicket.markup.html.form.Form.validateComponents(Form.java:2201)
      at org.apache.wicket.markup.html.form.Form.validate(Form.java:2181)
      at org.apache.wicket.markup.html.form.Form.process(Form.java:1028)
      at org.apache.wicket.markup.html.form.Form.process(Form.java:957)
      at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:922)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
      at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
      at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:513)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1535)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:215)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:98)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:75)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1296)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:455)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)

      user: admin

      usage-session: 17e71427-dbae-4c90-ae8d-cb8337447c39

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  roger brown Roger Brown
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration