[CARBON-11389] [Cluster setup] First time login to RO node fails (after the node was idling for some) Created: 27/Oct/11  Updated: 16/Oct/13  Resolved: 19/Mar/12

Status: Resolved
Project: ZZZ-WSO2 Carbon
Component/s: None
Affects Version/s: 3.2.2
Fix Version/s: 4.0.0

Type: Bug Priority: Highest
Reporter: Pavithra Madurangi Assignee: Dimuthu Leelarathne
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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)


Severity: Critical
Estimated Complexity: Moderate
Attachment License: I agree to grant a license to WSO2 for this work for inclusion in WSO2 works as per the WSO2 Contributor License Agreement and the Apache License 2.0

 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]



 Comments   
Comment by Evanthika Amarasiri [ 09/Nov/11 ]

I came across this issue with G-Reg 4.1.0 release as well

Comment by Pavithra Madurangi [ 08/Dec/11 ]

Observed this in IS 3.2.3 07-12-2011 packs and this issue appears from time to time in both maser node and slave node. Hence making the priority higher

Comment by Pavithra Madurangi [ 15/Dec/11 ]

In IS 3.2.3 14-12-2011 build, observed this even without a cluster setup. Sometimes login fails even in a standalone server.

Comment by Dimuthu Leelarathne [ 19/Mar/12 ]

Fixed in revision 122953.

Generated at Mon Oct 26 19:54:57 PDT 2020 using JIRA 7.2.2#72004-sha1:9d5132893cc8c728a3601a9034a1f8547ef5c7be.