Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
jdk1.6.0_23
Description
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.