Uploaded image for project: 'ZZZ-WSO2 Carbon'
  1. ZZZ-WSO2 Carbon
  2. CARBON-11389

[Cluster setup] First time login to RO node fails (after the node was idling for some)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 3.2.2
    • Fix Version/s: 4.0.0
    • Labels:
      None
    • Environment:

      WSO2 Identity Server v3.2.0 (26/10/2011 packs)
      local registry -> h2
      governance, config registry -> oracle
      UM db -> oracle
      IS in cluster (RW node and RO node)

      Description

      -In a IS/GREG cluster let RO node idle for some time and then try to login

      -First time login fails with following error. (But then again if you login without any issue)

      [2011-10-27 14:15:40,918] INFO

      {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}

      - 'admin' logged in at [2011-10-27 14:15:40,0917] from IP address 0:0:0:0:0:0:0:1
      [2011-10-27 14:15:41,050] INFO

      {org.wso2.carbon.user.core.authorization.PermissionTree}

      - updated permission tree from database for tenant 0
      [2011-10-27 14:15:41,072] ERROR

      {org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil}

      -
      java.lang.NullPointerException
      at org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil.setUserInformation(CarbonUIAuthenticationUtil.java:117)
      at org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil.onSuccessAdminLogin(CarbonUIAuthenticationUtil.java:87)
      at org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil.onSuccessAdminLogin(CarbonUIAuthenticationUtil.java:64)
      at org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:397)
      at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:86)
      at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
      at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164)
      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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154)
      at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:254)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
      at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396)
      at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534)
      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)
      [2011-10-27 14:15:41,080] WARN

      {org.wso2.carbon.ui.CarbonSecuredHttpContext}

      - Exception occured
      org.apache.axis2.AxisFault: Exception occured
      at org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil.setUserInformation(CarbonUIAuthenticationUtil.java:134)
      at org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil.onSuccessAdminLogin(CarbonUIAuthenticationUtil.java:87)
      at org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil.onSuccessAdminLogin(CarbonUIAuthenticationUtil.java:64)
      at org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:397)
      at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:86)
      at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
      at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164)
      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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154)
      at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:254)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
      at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396)
      at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534)
      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)
      Caused by: java.lang.NullPointerException
      at org.wso2.carbon.ui.util.CarbonUIAuthenticationUtil.setUserInformation(CarbonUIAuthenticationUtil.java:117)
      ... 27 more
      [2011-10-27 14:15:41,093] INFO

      {org.wso2.carbon.core.services.authentication.AuthenticationAdmin}

      - 'admin' logged out at [2011-10-27 14:15:41,0092]

        Attachments

          Activity

            People

            • Assignee:
              dimuthul@wso2.com Dimuthu Leelarathne
              Reporter:
              pavithra@wso2.com Pavithra Madurangi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: