Return-Path: Delivered-To: apmail-incubator-jsecurity-dev-archive@locus.apache.org Received: (qmail 9229 invoked from network); 22 Oct 2008 13:50:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2008 13:50:55 -0000 Received: (qmail 93540 invoked by uid 500); 22 Oct 2008 13:50:58 -0000 Delivered-To: apmail-incubator-jsecurity-dev-archive@incubator.apache.org Received: (qmail 93498 invoked by uid 500); 22 Oct 2008 13:50:57 -0000 Mailing-List: contact jsecurity-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jsecurity-dev@incubator.apache.org Delivered-To: mailing list jsecurity-dev@incubator.apache.org Received: (qmail 93447 invoked by uid 99); 22 Oct 2008 13:50:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 06:50:57 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tskowronek@wi.rr.com designates 71.74.56.125 as permitted sender) Received: from [71.74.56.125] (HELO hrndva-omtalb.mail.rr.com) (71.74.56.125) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 13:49:43 +0000 Received: from JAVAONE ([69.76.39.119]) by hrndva-omta05.mail.rr.com with ESMTP id <20081022134921.LCSW15876.hrndva-omta05.mail.rr.com@JAVAONE> for ; Wed, 22 Oct 2008 13:49:21 +0000 From: "Thomas Skowronek" To: Subject: StackOverflowError when calling getUserPrincipal() Date: Wed, 22 Oct 2008 08:46:46 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Ack0TJ/qUoG7FAx7RhC2aC2SRkA3mA== X-Virus-Checked: Checked by ClamAV on apache.org I have a custom security manager that extends DefaultWebSecurityManager. I have overridden the following createSubject(). http://jsecurity.org/api/org/jsecurity/web/DefaultWebSecurityManager.html#cr eateSubject(org.jsecurity.session.Session,%20javax.servlet.ServletRequest,%2 0javax.servlet.ServletResponse) In createSubject(), if I cast request to a HttpServletRequest and call getUserPrincipal(), I get a java.lang.StackOverflowError. According to the spec, if the user has not been authenticated, the method returns null. Any ideas? This issue originated from the following thread. Peter suggested I submit the problem to this list. http://www.nabble.com/SSO-with-Grails-JSecurity-Plugin-to19996414.html#a2009 5094 The full stacktrace can be seen here. http://www.nabble.com/file/p20094546/console_output.txt Thank you, Thomas