look at this thread here:
It seems related to me.
Try setting up your security config as mentioned on that thread. Maybe that would solve your problem.
Thanks for your reply,
I will try to increase the jaas default cache timeout and see what happens.
I would advice you to use the Database.
I changed the jboss messaging login configuration to use the database and despite that i am still getting the same exception ('java.lang.SecurityException: Invalid authentication attempt, principal=null') almost every day in our production server.
What should I try next? Any ideas, please?
Any ideas, please?
Testcase replicating the issue?
I have tried in the past to consistently reproduce the problem without any success. The problem is random and sometimes it appears many times in a day and sometimes it takes weeks to appear.
I will enable tracing at the org.jboss.resource.connectionmanager package and see if this gives me any more insight in what is going wrong.
You should add trace on org.jboss.jms.server.plugin (for the JDBCJMSUserManagerService) and mainly org.jboss.security.
I *believe* there is something ignoring possible exceptions on org.jboss.security. Maybe some config is affecting it under load. (what about datasource limits?)
I'm hoping the trace on org.jboss.security would reveal any exceptions eaten.