Go into the jmx-console when the error occurs and go to the jboss.security:service=XMLLoginConfig mbean and invoke the displayAppConfig operation passing in the jbossmq string. The exception indicates that the jbossmq configuration has been removed. This msg: > 2003-10-02 13:00:26,125 TRACE [org.jboss.mq.sm.file.DynamicLoginModule] > logout
indicates that the authentication cache entry expired as the same time. Does this always happen after 30 minutes?
-- xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
Panagiotis Korros wrote:
I am using JBoss 3.2.2 with JDK 1.4.2 and i get the following error:
javax.jms.JMSSecurityException: User: null is NOT authenticated at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java: 215) At org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecur ityInterceptor.java:51) At org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.j ava:650) At org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java: 288) at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:302) at org.jboss.mq.Connection.authenticate(Connection.java:876) at org.jboss.mq.Connection.<init>(Connection.java:238) at org.jboss.mq.Connection.<init>(Connection.java:315) at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:60) At org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFac tory.java:78) at ...
When I start my application it works ok but after a while the problem appears. When it appears a server restart is required for the jms topic to function correctly. This is happening when I use the default JVM Invoker.
When I switched to use the OIL2 invoker instead of JVM Invoker then the problem doesn't appear at all.
If I enable TRACE logging for the following categories I get:
org.jboss.security org.jboss.mq.security org.jboss.mq.sm
TRACE INFO
This is the trace that the last call to createTopicConnection(SpyConnectionFactory.java:78) produces when the system runs ok.
2003-10-02 12:56:58,796 TRACE [org.jboss.mq.security.ServerSecurityInterceptor] Autenticating user null/null 2003-10-02 12:56:58,796 TRACE [org.jboss.security.plugins.JaasSecurityManager.jbossmq] validateCache, [EMAIL PROTECTED] 2003-10-02 12:56:58,796 TRACE [org.jboss.mq.security.SecurityManager] Username: null is authenticated 2003-10-02 12:56:58,796 TRACE [org.jboss.mq.security.SecurityManager] Adding group : class org.jboss.security.NestableGroup Roles(members:subscriber,publisher,guest,durpublisher) 2003-10-02 12:56:58,796 TRACE [org.jboss.mq.security.SecurityManager] Checking authorize on subjectInfo: SubjectInfo {subject=Subject: Principal: guest Principal: Roles(members:subscriber,publisher,guest,durpublisher) ;principal=null;roles=Roles(members:subscriber,publisher,guest,durpublis her) for rolePrincipals [guest] 2003-10-02 12:56:58,812 TRACE [org.jboss.mq.security.ServerSecurityInterceptor] Checking receive authorize on SpyDistributedConnection:ID:1/7e0aa1fa14d29607fe91f5b99116b5f2 subId=-2147483648 2003-10-02 12:56:58,812 TRACE [org.jboss.mq.security.SecurityManager] Checking authorize on subjectInfo: SubjectInfo {subject=Subject: Principal: Roles(members:subscriber,publisher,guest,durpublisher) ;principal=null;roles=Roles(members:subscriber,publisher,guest,durpublis her) for rolePrincipals [guest] 2003-10-02 12:56:58,812 TRACE [org.jboss.mq.security.ServerSecurityInterceptor] Checking receive authorize on SpyDistributedConnection:ID:1/7e0aa1fa14d29607fe91f5b99116b5f2 subId=-2147483648 2003-10-02 12:56:58,812 TRACE [org.jboss.mq.security.SecurityManager] Checking authorize on subjectInfo: SubjectInfo {subject=Subject: Principal: Roles(members:subscriber,publisher,guest,durpublisher) ;principal=null;roles=Roles(members:subscriber,publisher,guest,durpublis her) for rolePrincipals [guest]
This is the result of the stack trace when the system stops working:
2003-10-02 13:00:26,125 TRACE [org.jboss.mq.security.ServerSecurityInterceptor] Autenticating user null/null 2003-10-02 13:00:26,125 TRACE [org.jboss.mq.sm.file.DynamicLoginModule] logout 2003-10-02 13:00:26,125 DEBUG [org.jboss.security.plugins.JaasSecurityManager.jbossmq] Login failure javax.security.auth.login.LoginException: No LoginModules configured for jbossmq at javax.security.auth.login.LoginContext.init(LoginContext.java:189)
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
