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

NPE in delegated access

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Incorporated
    • Affects Version/s: 11.0
    • Fix Version/s: None
    • Component/s: DelegatedAccess
    • Labels:
    • Test Plan:
      Hide
      • As a user that has been granted with 'delegated access', the first time that the user attempts to access 'Delegated Access' from 'My Workspace'/'Home', he gets an ERROR page
      • Also, as an Admin, when browsing the tool, sometimes you get this NPE in the browser. (I believe this was happening when the cache timed out after 10 minutes of no activity, so someone testing would have to wait 10 minutes with nobody else going to the page)
      • If you refresh, the error goes away and you can continue working. Its random, I've not been able to find a 100% path to reproduce the error but I get it multiple times.
      Show
      As a user that has been granted with 'delegated access', the first time that the user attempts to access 'Delegated Access' from 'My Workspace'/'Home', he gets an ERROR page Also, as an Admin, when browsing the tool, sometimes you get this NPE in the browser. (I believe this was happening when the cache timed out after 10 minutes of no activity, so someone testing would have to wait 10 minutes with nobody else going to the page) If you refresh, the error goes away and you can continue working. Its random, I've not been able to find a 100% path to reproduce the error but I get it multiple times.

      Description

      As a user that has been granted with 'delegated access', the first time that the user attempts to access 'Delegated Access' from 'My Workspace'/'Home', he gets an ERROR page and the following error is shown on the logs.

      Also, as an Admin, when browsing the tool, sometimes you get this NPE in the browser. If you refresh, the error goes away and you can continue working. Its random, I've not been able to find a path to reproduce the error but I get it multiple times.

      org.sakaiproject.portal.api.PortalHandlerException: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public org.sakaiproject.delegatedaccess.tool.pages.UserPage()
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:835)
      caused by: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public org.sakaiproject.delegatedaccess.tool.pages.UserPage()
          at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)
      caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      caused by: java.lang.NullPointerException
          at org.sakaiproject.delegatedaccess.tool.pages.UserPage.<init>(UserPage.java:311)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
          at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)
          at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)
          at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)
          at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)
          at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
          at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
          at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1279)
          at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
          at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
          at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
          at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
          at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
          at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:406)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:720)
          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:358)
          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
          at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:513)
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1459)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1154)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1010)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:484)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:263)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:151)
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:835)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
          at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:467)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
          at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
          at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
          at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:868)
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
          at java.lang.Thread.run(Thread.java:745)
      
      
      usuario: 6ee63233-bf8b-44f6-b251-9ee2b90894f8
      
      usage-session: c94d857a-6148-4d94-a080-e845df5cefb7
      
      hora: 28-jul-2016 12:23:36
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jmariano Jose Mariano Lujan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code