[JBoss-user] [Security & JAAS/JBoss] - JaasSecurityManager try to insert duplicate entry into Timed

2006-03-29 Thread wwwluo
Hi there, I have a customer site threw the following exception, but it is not reproducable in my development environment. The DefaultCacheTimeout is already set to 0 to disable the security caching, but JBoss seemed trying to cache it anyway according to the stack trace. Could any one look at t

[JBoss-user] [Security & JAAS/JBoss] - Re: JaasSecurityManager try to insert duplicate entry into T

2006-04-11 Thread wwwluo
One thing I forget to mention in the original post: we use a different policy for our main application HSM, and multiple similar policy for other data sources. We have multiple data sources in our application, all using the same encrypted username/password. 1. Could this has anything to do with

[JBoss-user] [Security & JAAS/JBoss] - Re: JaasSecurityManager try to insert duplicate entry into T

2006-04-12 Thread wwwluo
Scott, Thanks for your help. We are not using a custom cache or accessing the cache via JNDI. It's worth noting that the hsm policy, which is used by the application to authenticate Browser users, uses a custom principal and sets its principal via SecurityAssociationValve.userPrincipal.set(myI

[JBoss-user] [Security & JAAS/JBoss] - Re: JaasSecurityManager try to insert duplicate entry into T

2006-04-20 Thread wwwluo
Scott, Given that TimedCachePolicy is created thread-safe, the code try to insert into it are wrapped in synchronized block and it is always try to remove existing entry with same principal before insertion, but we still got IllegalStateException for "Attempt to insert duplicate entry", there m