Bugs item #551877, was opened at 2002-05-03 09:47
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=551877&group_id=22866
Category: JBossServer
Group: v2.4 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Hussey (mhussey)
Assigned to: Nobody/Anonymous (nobody)
Summary: JAAS ConfigFile is not thread-safe
Initial Comment:
Using multiple threads, instantiating a LoginContext
can fail with SecurityException in ConfigFile. Here
is an example stack trace:
java.lang.SecurityException: Configuration Error:
Expected module class name, read end of file
at
com.sun.security.auth.login.ConfigFile.getAppConfigurat
ionEntry(ConfigFile.java:221)
at javax.security.auth.login.LoginContext.init
(LoginContext.java:172)
The text of the exception always complains about some
problem with the file. Changing the timing or number
of threads causes the exceptions to disappear so it is
clearly not related to real problems with the file.
To reproduce, simply download the JAASBug.java and the
JAASBug.bat. Modify the batch file to specify a
jboss_dist that matches your system and run the batch
file. You may need to modify the paramaters passed to
JAASBug, but it is unlikely.
Here is the line of code where it will fail:
LoginContext lc = new LoginContext("jboss-client",
handler);
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=551877&group_id=22866
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development