This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

HttpSession is now null, but was not null at start of request; session was invalidated  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After user password is being reset user is supposed to redirected to security questions page(/PP/enduser/securityQuestions.do?clear=true') instead user is getting AccessDeniedException because session is invalidated and user is given anonymousUser authentication. I tried the solution from other similar problem http://stackoverflow.com/questions/15500519/an-authentication-object-was-not-found-in-the-securitycontext-spring-3-2-2 but the solution not working for me.

AM using jdk 7, spring-security-web-3.1.4.RELEASE, spring-security-core-3.1.4.RELEASE and Tomcat 7
Below is my Authentication success handler



security-applicationContext.xml

my web.xml


After the user is redirected to /enduser/securityQuestions.do page user is getting customaccessdenied exception and kicked back to login page(index.do)



After keep trying for couple of minutes user is redirected to the securityQuestion page and below are the logs for successful redirect from index.do to securityquestions.do

 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!