The null pointer is happening because the principal is null.
We runn HttpUnit with ant. We use a singleton to call our login
page and then all our tests run. Then we each test is down
we call our logout page. For some unknown reason.. After our
tests have been running. We start getting these stack traces.
But they are intermingled with ok requests as well. One of
our tests is multithreaded. I was concerned that maybe it has
to do with sending the same loginContext through multiple threads?
d.
-----Original Message-----
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 7:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Security Exception - Principal is null
Describe the details of the test. What is causing the NPE in
MD5SecurityAssociationHandler?
----- Original Message -----
From: "Ferguson, Doug" <[EMAIL PROTECTED]>
To: "JBoss User (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 4:15 PM
Subject: [JBoss-user] Security Exception - Principal is null
> I am seeing a really wierd exception when I am running my application
> my principal get lost somehow. I only see this when I am running
> my HttpUnit tests, and it is extrememely hard to recreate.
> Seems like I have to run my tests for a long indeterminate time
> to get this to happen.
>
> Any ideas what might cause this?
>
> d.
>
>
> [Default] [DBConnectionFactory] getConnection(logDB)
> [Default] LoginException: java.lang.NullPointerException
> at
>
com.coremetrics.security.MD5SecurityAssociationHandler.handle(MD5SecurityAss
> ociationHandler.java:73)
> at
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:731)
> at java.security.AccessController.doPrivileged(Native Method)
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user