You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Maria Jurcovicova (JIRA)" <ji...@apache.org> on 2011/02/18 14:47:38 UTC

[jira] Created: (SHIRO-270) DelegatingSubjectTest#testRunAs null pointer exception

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
            Priority: Minor


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

        

[jira] Resolved: (SHIRO-270) DelegatingSubjectTest#testRunAs null pointer exception

Posted by "Les Hazlewood (JIRA)" <ji...@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

        

[jira] Assigned: (SHIRO-270) DelegatingSubjectTest#testRunAs null pointer exception

Posted by "Kalle Korhonen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalle Korhonen reassigned SHIRO-270:
------------------------------------

    Assignee: Kalle Korhonen

> 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: Kalle Korhonen
>            Priority: Minor
>         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

        

[jira] [Closed] (SHIRO-270) DelegatingSubjectTest#testRunAs null pointer exception

Posted by "Les Hazlewood (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Les Hazlewood closed SHIRO-270.
-------------------------------


Closing with the 1.2.0 release.
                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SHIRO-270) DelegatingSubjectTest#testRunAs null pointer exception

Posted by "Maria Jurcovicova (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Jurcovicova updated SHIRO-270:
------------------------------------

    Attachment: patch_test.txt

> 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
>            Priority: Minor
>         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