Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-107329

Sign out SP failed due to NullPointerException

    Details

    • Fix Priority:
      3

      Description

      Step to reproduced:

      1. Configure a Liferay instance as a SAML IdP and a second Liferay instance as SP
      2. Sign out SP

      Note: Test on Tomcat 8.0.53 + MySQL 5.7. Portal DXP 7.0.10.12 SP12 + FP88.

      Expected result: Sign out successfully.

      Actual result: Throw error like below in idp console log.  

      2020-01-19 09:22:17.982 ERROR [http-nio-8080-exec-4][BaseSamlStrutsAction:54] com.liferay.saml.runtime.SamlException: java.lang.NullPointerException
       com.liferay.saml.runtime.SamlException: java.lang.NullPointerException
       at com.liferay.saml.opensaml.integration.internal.profile.ExceptionHandlerUtil.handleException(ExceptionHandlerUtil.java:34)
       at com.liferay.saml.opensaml.integration.internal.profile.SingleLogoutProfileImpl.processSingleLogout(SingleLogoutProfileImpl.java:253)
       at com.liferay.saml.web.internal.portlet.action.SingleLogoutAction.doExecute(SingleLogoutAction.java:62)
       at com.liferay.saml.web.internal.portlet.action.BaseSamlStrutsAction.execute(BaseSamlStrutsAction.java:51)
       at com.liferay.portal.kernel.struts.BaseStrutsAction.execute(BaseStrutsAction.java:39)
       at com.liferay.portal.struts.ActionAdapter.execute(ActionAdapter.java:50)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
       at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:170)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
       at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:607)
       at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:584)
       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.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 com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.frontend.compatibility.ie.servlet.filter.IEMimeTypeCompatibilityFilter.processFilter(IEMimeTypeCompatibilityFilter.java:48)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.portal.servlet.filters.uploadservletrequest.UploadServletRequestFilter.processFilter(UploadServletRequestFilter.java:93)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:57)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.portal.servlet.filters.jsoncontenttype.JSONContentTypeFilter.processFilter(JSONContentTypeFilter.java:42)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:263)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
       at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:181)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
       at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
       at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
       at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
       at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
       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:94)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
       at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1152)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.lang.Thread.run(Thread.java:748)
       Caused by: java.lang.NullPointerException
       at com.liferay.saml.opensaml.integration.internal.profile.SingleLogoutProfileImpl.processIdpLogoutRequest(SingleLogoutProfileImpl.java:623)
       at com.liferay.saml.opensaml.integration.internal.profile.SingleLogoutProfileImpl.processSingleLogoutRequest(SingleLogoutProfileImpl.java:698)
       at com.liferay.saml.opensaml.integration.internal.profile.SingleLogoutProfileImpl.processSingleLogout(SingleLogoutProfileImpl.java:235)
       ... 100 more
       

       

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            della.wang Della Wang (Inactive)
            Participants of an Issue:
            Recent user:
            Della Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 32 weeks, 1 day ago

                Packages

                Version Package
                7.0.10.12 DXP SP12