This topic has 1 reply, 1 voice, and was last updated 6 years, 1 month ago by soma.

  • Author
  • #13624

    Hi All,

    I have a strange issue after log user out. I use OpenAM 13.0 + Tomcat + J2EE Agent 3.5.0 + OpenAM rest api.

    My web application has own login/logout pages. For login I call POST /openam/json/authenticate rest with X-OpenAM-Username and X-OpenAM-Password. For logout I use POST /openam/json/session/?_action=logout.

    My own logout restapi receives the request, calls the mentioned logout OpenAM api and deletes the iPlanetDirectoryPro cookie.

    After a successful logout everything seems perfect:
    * I can see on the OpenAM console that my ‘demo’ user just disappeared from the Session list
    * iPlanetDirectoryPro cookie is removed from client side

    But when I hit refresh in the web browser or try to open again the index page of my web application (which is on the list of the not enforced URIs) then I am redirected to the access-denied page with endless goto url params.

    After logout I have only one cookie. It is the JSESSIONID cookie. When I delete manually this cookie from the web browser then I am able to open the index page of my app without this issue.

    I can see in the debug.out log file a lot of strange but same exceptions when I try to open the index page of my app:

    ERROR: AmFilter: Error while delegating to inbound handler: Not Enforced List Task Handler, access will be denied
            at com.iplanet.dpro.session.SesionId.hashCode(

    When JSESSIONID cookie is deleted by me then everything works fine again till the next logout.

    Do u have any idea what is wrong here?


    This is the full log:

    No configuration value found for: com.sun.identity.agents.config.amFilter.logout.application.handler, or: com.sun.identity.agents.config.logout.application.handler
    amFilter:10/22/2016 07:46:12:678 PM CEST: Thread[http-nio-8080-exec-17,5,main]
    ERROR: AmFilter: Error while delegating to inbound handler: Not Enforced List Task Handler, access will be denied
    	at com.iplanet.dpro.session.SessionID.hashCode(
    	at java.util.Hashtable.get(
    	at com.iplanet.dpro.session.Session.readSession(
    	at com.iplanet.dpro.session.Session.removeSID(
    	at com.sun.identity.agents.filter.LogoutHelper.removeSSOToken(
    	at com.sun.identity.agents.filter.LogoutHelper.doLogout(
    	at com.sun.identity.agents.filter.NotenforcedListTaskHandler.process(
    	at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(
    	at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(
    	at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    	at org.apache.catalina.core.StandardWrapperValve.invoke(
    	at org.apache.catalina.core.StandardContextValve.invoke(
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
    	at org.apache.catalina.core.StandardHostValve.invoke(
    	at org.apache.catalina.valves.ErrorReportValve.invoke(
    	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
    	at org.apache.catalina.core.StandardEngineValve.invoke(
    	at org.apache.catalina.connector.CoyoteAdapter.service(
    	at org.apache.coyote.http11.AbstractHttp11Processor.process(
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(
    	at java.util.concurrent.ThreadPoolExecutor$
    	at org.apache.tomcat.util.threads.TaskThread$
    amFilter:10/22/2016 07:46:12:679 PM CEST: Thread[http-nio-8080-exec-17,5,main]
    AmFilter: now processing: Audit Result Handler
    amFilter:10/22/2016 07:46:12:679 PM CEST: Thread[http-nio-8080-exec-17,5,main]
    AmFilter: result => 
    	Status    	: REDIRECT
    	ProcessResponse    	: false
    	RedirectURL	:
    	RequestURL	: null

    Any idea what to check?

    • This reply was modified 6 years, 1 month ago by soma.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?