2 Replies Latest reply on Nov 30, 2012 10:53 PM by 977340

    Keeps getting logged out of OIM 11gR2

    814971
      Hi,

      We have OIM and OAM integrated and has a problem that started to occur a while back, and now occurs very often.
      When a user logs in to OIM, and clicks on a link, the following error occurs:
      Because of inactivity, your session has timed out and is no longer active. Click OK to reload the page.

      Sometimes the problem goes away when clearing out the users cookies in the browser, but not always.
      Has anyone else seen this, or have an idea of what might be wrong?

      The log states this:
      Could not find saved view state for token -3k9h9ayyr
      *ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1[[*
      javax.faces.application.ViewExpiredException: viewId:/home - ADF_FACES-30107:The view state of the page has expired.  Reload the page.

      Here a bit more of the log output:
      [2012-10-24T10:01:25.361+02:00] [oim_server1] [WARNING] [ADFC-52021] [oracle.adf.controller.internal.metadata.MetadataService] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 004nC_yFI17DKeX5Lvs1ye00028l0004tK,0:2] [APP: oracle.iam.console.identity.self-service.ear#V2.0] [URI: /identity/faces/home] ADFc: Duplicate activity 'Empty1_jspx' detected.
      [2012-10-24T10:01:25.381+02:00] [oim_server1] [ERROR] [] [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 004nC_yFI17DKeX5Lvs1ye00028l0004tK,0:2] [APP: oracle.iam.console.identity.self-service.ear#V2.0] [URI: /identity/faces/home] Could not find saved view state for token -3k9h9ayyr
      [2012-10-24T10:01:25.382+02:00] [oim_server1] [WARNING] [] [oracle.adfinternal.view.faces.lifecycle.LifecycleImpl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 004nC_yFI17DKeX5Lvs1ye00028l0004tK,0:2] [APP: oracle.iam.console.identity.self-service.ear#V2.0] [URI: /identity/faces/home] ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1[[
      javax.faces.application.ViewExpiredException: viewId:/home - ADF_FACES-30107:The view state of the page has expired. Reload the page.

      Thanks & Regards,

      Henrik
        • 1. Re: Keeps getting logged out of OIM 11gR2
          814971
          Hi again,

          We are still having this issue. Any ideas?
          I'm pretty sure it started when we introduced a load balancer (CISCO) in front of the OHS server (we still only have a single OHS behind the LB so far).
          The request goes through this servers: LB (ssl termination)-> OHS (with webgate) -> weblogic with OIM deployed.

          In the OAM log we get the error below, something with the user session is off..:
          [2012-10-30T10:27:26.775+01:00] [oam_server1] [ERROR] [OAM-04020] [oracle.oam.proxy.oam] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'web
          logic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 11abe6045d204c99:-6e5787fb:13a9d1244df:-8000-0000000000000010,0] [APP: o
          am_server#11.1.2.0.0] Exception encountered while processing the request message:[[
          oracle.security.am.common.utilities.exception.AmRuntimeException: LoggedIn user is different than the existing session user
          at oracle.security.am.engines.enginecontroller.SSOEngineController.createSession(SSOEngineController.java:2168)
          at oracle.security.am.engines.enginecontroller.SSOEngineController.processEvent(SSOEngineController.java:475)
          at oracle.security.am.controller.MasterController.processEvent(MasterController.java:570)
          at oracle.security.am.controller.MasterController.processRequest(MasterController.java:759)
          at oracle.security.am.proxy.oam.requesthandler.NGProvider.authenticate(NGProvider.java:697)
          at oracle.security.am.proxy.oam.requesthandler.NGProvider.getAuthenticateWAuditResponse(NGProvider.java:1632)
          at oracle.security.am.proxy.oam.requesthandler.NGProvider.getResponse(NGProvider.java:342)
          at oracle.security.am.proxy.oam.requesthandler.RequestHandler.handleRequest(RequestHandler.java:346)
          at oracle.security.am.proxy.oam.requesthandler.ControllerMessageBean.getResponseMessage(ControllerMessageBean.java:75)
          at oracle.security.am.proxy.oam.requesthandler.ControllerMessageBean_eo7ylc_MDOImpl.getResponseMessage(Unknown Source)
          at oracle.security.am.proxy.oam.mina.ObClientToProxyHandler.messageReceived(ObClientToProxyHandler.java:205)
          at org.apache.mina.common.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:743)
          at org.apache.mina.common.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:823)
          at org.apache.mina.common.IoFilterEvent.fire(IoFilterEvent.java:54)
          at org.apache.mina.common.IoEvent.run(IoEvent.java:63)
          at oracle.security.am.proxy.oam.mina.CommonJWorkImpl.run(CommonJWorkImpl.java:42)
          at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
          at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

          Regards,

          Henrik
          • 2. Re: Keeps getting logged out of OIM 11gR2
            977340
            Did you check the if the load balancer, OAM doesn't have time difference