Return-Path: Delivered-To: apmail-shiro-dev-archive@www.apache.org Received: (qmail 63516 invoked from network); 5 Mar 2011 22:30:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Mar 2011 22:30:10 -0000 Received: (qmail 85483 invoked by uid 500); 5 Mar 2011 22:30:10 -0000 Delivered-To: apmail-shiro-dev-archive@shiro.apache.org Received: (qmail 85457 invoked by uid 500); 5 Mar 2011 22:30:10 -0000 Mailing-List: contact dev-help@shiro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shiro.apache.org Delivered-To: mailing list dev@shiro.apache.org Received: (qmail 85449 invoked by uid 99); 5 Mar 2011 22:30:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2011 22:30:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2011 22:30:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D838C570D9 for ; Sat, 5 Mar 2011 22:29:45 +0000 (UTC) Date: Sat, 5 Mar 2011 22:29:45 +0000 (UTC) From: "Les Hazlewood (JIRA)" To: dev@shiro.apache.org Message-ID: <1283085167.1242.1299364185882.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <643302545.547.1298036858538.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (SHIRO-270) DelegatingSubjectTest#testRunAs null pointer exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SHIRO-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Les Hazlewood resolved SHIRO-270. --------------------------------- Resolution: Fixed Fix Version/s: 1.2.0 Assignee: Les Hazlewood (was: Kalle Korhonen) Thanks for the issue! > DelegatingSubjectTest#testRunAs null pointer exception > ------------------------------------------------------ > > Key: SHIRO-270 > URL: https://issues.apache.org/jira/browse/SHIRO-270 > Project: Shiro > Issue Type: Bug > Environment: jdk1.6.0_23 > Reporter: Maria Jurcovicova > Assignee: Les Hazlewood > Priority: Minor > Fix For: 1.2.0 > > Attachments: patch_test.txt > > > When all the tests are run, the test DelegatingSubjectTest#testRunAs throws null pointer exception > java.lang.NullPointerException > at org.apache.shiro.mgt.SessionsSecurityManager.start(SessionsSecurityManager.java:121) > at org.apache.shiro.subject.support.DelegatingSubject.getSession(DelegatingSubject.java:306) > at org.apache.shiro.subject.support.DelegatingSubject.getSession(DelegatingSubject.java:295) > at org.apache.shiro.mgt.DefaultSecurityManager.bind(DefaultSecurityManager.java:163) > at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:284) > at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:247) > at org.apache.shiro.subject.DelegatingSubjectTest.testRunAs(DelegatingSubjectTest.java:157) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > If only DelegatingSubjectTest class tests are run, everything is OK. > NOTE: point 3 of https://issues.apache.org/jira/browse/SHIRO-208 mentions similar issue. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira