0 Replies Latest reply on Oct 16, 2013 7:57 AM by sae_stahlgruber

    javax.ejb.EJBAccessException: Invalid User - sometimes, after several login attempts

    sae_stahlgruber Newbie

      I am using JBoss 6.1.0 Final "Neo" with a DatabaseServerLoginModule on the server side.


      The client is a swing client which uses /eclipse-open:☂=UniversalkatalogClient/C:\/Program Files\/Java\/jdk1.6.0_45\/jre\/lib\/rt.jar<javax.security.auth.login(LoginContext.class☃LoginContext~LoginContext~Ljava.lang.String;~Ljavax.security.auth.callback.CallbackHandler;javax.security.auth.login.LoginContext.LoginContext(String name, CallbackHandler callbackHandler) to login.


      If the first and only login is correct everythiny is fine an I can call all the remote methods on the server any number of times just fine.


      But when logging in with wrong username, logging out and logging in with a new LoginContext every n-th method call fails with javax.ejb.EJBAccessException: Invalid User

      Debugging into DatabaseServerLoginModule on the server side reveals that the wrong user name is still used for every failing method invocation.


      Any hints or suggestions?