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

SAML failing when it can't retrieve metadata

    Details

      Description

      When an http connection fails during metadata get like this:

      19:43:47,562 INFO  [AbstractReloadingMetadataProvider:141] Next refresh cycle for metadata provider '[/opt/liferay/bundles/data/salesforce.xml, 2012-01-19T19:47:32.561Z, 2012-01-19T19:47:32.561Z]' will occur on '{}' ('{}' local time)
      19:43:47,565 ERROR [HTTPMetadataProvider:109] Error retrieving metadata from https://15440.netacadtrial.com/saml_meta_data
      java.net.SocketException: Socket closed
      	at java.net.SocketInputStream.socketRead0(Native Method)
      	at java.net.SocketInputStream.read(SocketInputStream.java:129)
      	at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
      	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
      

      I get these:

      19:43:47,953 ERROR [AbstractMetadataProvider:109] Metadata provider failed to properly initializing, halting
      org.opensaml.saml2.metadata.provider.MetadataProviderException: org.opensaml.saml2.metadata.provider.MetadataProviderException: Error retrieving metadata from https://16203.netacadtrial.com/saml_meta_data
      	at org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider.refresh(AbstractReloadingMetadataProvider.java:266)
      	at org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider.doInitialization(AbstractReloadingMetadataProvider.java:236)
      

      then, I get thousands of these as the site is accessed:

      19:44:17,157 WARN  [ChainingMetadataProvider:265] Error retrieving metadata from provider of type org.opensaml.saml2.metadata.provider.HTTPMetadataProvider, proceeding to next provider
      org.opensaml.saml2.metadata.provider.MetadataProviderException: Metadata provider has not been initialized
      	at org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.getEntityDescriptor(AbstractMetadataProvider.java:157)
      	at org.opensaml.saml2.metadata.provider.ChainingMetadataProvider.getEntityDescriptor(ChainingMetadataProvider.java:255)
      	at com.liferay.saml.profile.SingleLogoutProfileImpl.getSoapSamlMessageContext(SingleLogoutProfileImpl.java:333)
      	at com.liferay.saml.profile.SingleLogoutProfileImpl.sendIdpLogoutRequest(SingleLogoutProfileImpl.java:468)
      	at com.liferay.saml.profile.SingleLogoutProfileImpl.processIdpLogout(SingleLogoutProfileImpl.java:117)
      	at com.liferay.saml.profile.SingleLogoutProfileUtil.processIdpLogout(SingleLogoutProfileUtil.java:40)
      	at com.liferay.saml.hook.events.SingleLogoutAction.run(SingleLogoutAction.java:38)
      	at com.liferay.portal.kernel.events.InvokerAction.run(InvokerAction.java:41)
      	at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:81)
      	at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:68)
      	at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:53)
      	at com.liferay.portal.action.LogoutAction.execute(LogoutAction.java:51)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
      	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      	at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
      	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      	at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
      	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:199)
      	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      	at com.liferay.portal.servlet.filters.header.HeaderFilter.processFilter(HeaderFilter.java:150)
      	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
      	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      	at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
      	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
      	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
      	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
      	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
      	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:224)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

        Attachments

          Activity

            People

            Assignee:
            paul.piao Paul Piao (Inactive)
            Reporter:
            brett.swaim Brett Swaim
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 32 weeks ago

                Packages

                Version Package
                6.0.X EE
                6.1.10 EE GA1
                --Sprint 11/12
                6.2.0 CE M2