Results 1 to 3 of 3

Thread: StackOverflow error for request.getPrincipal().getClass

  1. #1
    Join Date
    Dec 2005
    Posts
    4

    Default StackOverflow error for request.getUserPrincipal().getClass

    Hi,
    I am using Spring + Acegi for one of my projects.
    Whenever I try to invoke any method on the object returned from request.getUserPrincipal(), I get the following error.

    Code:
    Jan 9, 2006 12:13:57 PM org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext
    SEVERE: Exception initializing page context
    java.lang.StackOverflowError
    	at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:215)
    	at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)
    My configuration files are attached to this post.
    Any help would be highly appreciated.

    Thanks!
    Attached Files Attached Files
    Last edited by sandeshmore; Jan 9th, 2006 at 04:19 AM.

  2. #2
    Join Date
    Aug 2004
    Location
    Northridge, CA
    Posts
    151

    Default

    I work with sandesh and stil have the issue of getting getUserPrincipal(). Can I anyone point us to some direction

    Amad

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Are you using ContextHolderAwareRequestFilter or CustomContextHolderAwareRequestFilter? Also, I see you're not using 1.0.0 RC1 - does the error occur if you use the later version?
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •