Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9924

Improve error handling if crowd is down

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • crowd-plugin
    • None

      Using crowd to authenticate, if the server is down I have this error :

      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Server returned error code = 503 for URI : https://identity.exoplatform.org/services/SecurityServer. Check server logs for details
      	org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:92)
      	org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
      	$Proxy15.findPrincipalByName(Unknown Source)
      	com.atlassian.crowd.integration.service.soap.client.SecurityServerClientImpl.findPrincipalByName(SecurityServerClientImpl.java:568)
      	com.atlassian.crowd.integration.service.cache.CachingUserManager$Server.getUser(CachingUserManager.java:280)
      	com.atlassian.crowd.integration.service.cache.CachingUserManager.getUser(CachingUserManager.java:33)
      	com.atlassian.crowd.integration.acegi.user.CrowdUserDetailsServiceImpl.loadUserByUsername(CrowdUserDetailsServiceImpl.java:43)
      	com.atlassian.crowd.integration.acegi.user.CrowdUserDetailsServiceImpl.loadUserByUsername(CrowdUserDetailsServiceImpl.java:29)
      	org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.loadUserDetails(TokenBasedRememberMeServices.java:308)
      	org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.autoLogin(TokenBasedRememberMeServices.java:218)
      	org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      root cause
      
      org.codehaus.xfire.fault.XFireFault: Server returned error code = 503 for URI : https://identity.exoplatform.org/services/SecurityServer. Check server logs for details
      	org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
      	org.codehaus.xfire.client.Invocation.invoke(Invocation.java:83)
      	org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
      	org.codehaus.xfire.client.Client.invoke(Client.java:336)
      	org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
      	org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
      	$Proxy15.findPrincipalByName(Unknown Source)
      	com.atlassian.crowd.integration.service.soap.client.SecurityServerClientImpl.findPrincipalByName(SecurityServerClientImpl.java:568)
      	com.atlassian.crowd.integration.service.cache.CachingUserManager$Server.getUser(CachingUserManager.java:280)
      	com.atlassian.crowd.integration.service.cache.CachingUserManager.getUser(CachingUserManager.java:33)
      	com.atlassian.crowd.integration.acegi.user.CrowdUserDetailsServiceImpl.loadUserByUsername(CrowdUserDetailsServiceImpl.java:43)
      	com.atlassian.crowd.integration.acegi.user.CrowdUserDetailsServiceImpl.loadUserByUsername(CrowdUserDetailsServiceImpl.java:29)
      	org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.loadUserDetails(TokenBasedRememberMeServices.java:308)
      	org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.autoLogin(TokenBasedRememberMeServices.java:218)
      	org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      root cause
      
      org.codehaus.xfire.XFireRuntimeException: Server returned error code = 503 for URI : https://identity.exoplatform.org/services/SecurityServer. Check server logs for details
      	org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:130)
      	org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
      	org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
      	org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
      	org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
      	org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
      	org.codehaus.xfire.client.Client.invoke(Client.java:336)
      	org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
      	org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
      	$Proxy15.findPrincipalByName(Unknown Source)
      	com.atlassian.crowd.integration.service.soap.client.SecurityServerClientImpl.findPrincipalByName(SecurityServerClientImpl.java:568)
      	com.atlassian.crowd.integration.service.cache.CachingUserManager$Server.getUser(CachingUserManager.java:280)
      	com.atlassian.crowd.integration.service.cache.CachingUserManager.getUser(CachingUserManager.java:33)
      	com.atlassian.crowd.integration.acegi.user.CrowdUserDetailsServiceImpl.loadUserByUsername(CrowdUserDetailsServiceImpl.java:43)
      	com.atlassian.crowd.integration.acegi.user.CrowdUserDetailsServiceImpl.loadUserByUsername(CrowdUserDetailsServiceImpl.java:29)
      	org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.loadUserDetails(TokenBasedRememberMeServices.java:308)
      	org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices.autoLogin(TokenBasedRememberMeServices.java:218)
      	org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:104)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.14 logs.
      
      Apache Tomcat/7.0.14
      

      Perhaps a more human readable error could help

            rmangi rmangi
            aheritier Arnaud Héritier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: