Question

How to get HttpSession

Hi,

I have a use case to store user's login attempts when they log in through WebLDAP (PRCustom). I am trying maintain this in http session. But I received following error on fetching HttpSession from HttpServletRequest. Can someone help with this?

Caused by: java.lang.RuntimeException: HTTP Session not available in the ETier
at com.pega.pegarules.priv.authentication.RequestFacade.getSession(RequestFacade.java:316) ~[prpublic.jar:?]
at com.pegarules.generated.activity.ra_action_authenticationldapweb_3f64242ff48fd6dc6b2b57fa6ba9024c.step1_circum0(ra_action_authenticationldapweb_3f64242ff48fd6dc6b2b57fa6ba9024c.java:399) ~[?:?]
at com.pegarules.generated.activity.ra_action_authenticationldapweb_3f64242ff48fd6dc6b2b57fa6ba9024c.perform(ra_action_authenticationldapweb_3f64242ff48fd6dc6b2b57fa6ba9024c.java:72) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.authentication.AuthenticationUtil.runActivity(AuthenticationUtil.java:278) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.authentication.SchemePRCustom.authenticateOperator(SchemePRCustom.java:718) ~[prprivate.jar:?]

Comments

Keep up to date on this post and subscribe to comments