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

NullPointerException when creating site with LTI tool

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.5 [Tentative]
    • Fix Version/s: 11.5 [Tentative]
    • Component/s: BasicLTI, Site Info
    • Labels:
      None
    • 11 status:
      Resolved
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      Steps to replicate:

      1) Login as admin
      2) External Tools install new LTI tool available for site creation
      3) Worksite Setup -> New
      4) Create Course site
      5) On tool selection, make sure to select the LTI tool we created in step (2)
      6) Continue

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
       at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:857)
       caused by: org.sakaiproject.tool.api.ToolException: java.lang.reflect.InvocationTargetException
       at org.sakaiproject.site.tool.SiteAction.toolModeDispatch(SiteAction.java:15186)
       caused by: java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       caused by: java.lang.NullPointerException
       at org.sakaiproject.site.tool.SiteAction.buildContextForTemplate(SiteAction.java:2897)
       at org.sakaiproject.site.tool.SiteAction.buildMainPanelContext(SiteAction.java:1328)
       at org.sakaiproject.site.tool.SiteAction.buildMainPanelContext(SiteAction.java:1261)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.sakaiproject.cheftool.VelocityPortletPaneledAction.toolModeDispatch(VelocityPortletPaneledAction.java:401)
       at org.sakaiproject.site.tool.SiteAction.toolModeDispatch(SiteAction.java:15186)
       at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:236)
       at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1154)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
       at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:411)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:356)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)
       at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:513)
       at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1493)
       at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:204)
       at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:100)
       at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:857)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:460)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
       at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:685)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
       at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
       at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
       at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
       at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
       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)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  csev Charles Severance
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code