Bugs item #551877, was opened at 2002-05-03 07: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: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Michael Hussey (mhussey)
>Assigned to: Scott M Stark (starksm)
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);
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2002-05-03 08:47
Message:
Logged In: YES
user_id=175228
Test against the 2.4.5RC3 release as the configuration is
preloaded on startup of the security service so thread
contention on the initial load is not an issue. A testcase
of the JAAS code is of no use as we already know about its
problems.
----------------------------------------------------------------------
Comment By: Michael Hussey (mhussey)
Date: 2002-05-03 07:55
Message:
Logged In: YES
user_id=357070
Using Windows2000, jdk 1.3.1_3, jboss 2.4.4
----------------------------------------------------------------------
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