javax.naming.AuthenticationException: User: mhegde, failed to be authenticated. [Root exception is java.lang.SecurityException: User: mhegde, failed to be authenticated.]

myagileplm.com | 5 months ago
  1. 0

    SSO configuration in Agile 934 with SAML authentication - MyAgilePLM

    myagileplm.com | 5 months ago
    javax.naming.AuthenticationException: User: mhegde, failed to be authenticated. [Root exception is java.lang.SecurityException: User: mhegde, failed to be authenticated.]
  2. 0

    I tried to use JNDI security with OpenEJB - that is, constructing InitialContext with properties Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS set. It works beautifully, however when another InitialContext is constructed (first one is closed using Context.close()) the following exception occurs: Caused by: javax.naming.NamingException: Cannot instantiate an IntraVM InitialContext. Exception: javax.naming.AuthenticationException User could not be authenticated: karolko [Root exception is javax.naming.AuthenticationException: User could not be authenticated: karolko [Root exception is javax.security.auth.login.LoginException: Thread already associated with a client identity. Refusing to overwrite.]] at org.apache.openejb.client.LocalInitialContextFactory.getIntraVmContext(LocalInitialContextFactory.java:116) at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:41) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:197) at com.whitestein.fe.client.ejb.ClientCommunicationImpl.newClient(ClientCommunicationImpl.java:109) ... 16 more Caused by: javax.naming.AuthenticationException: User could not be authenticated: karolko [Root exception is javax.security.auth.login.LoginException: Thread already associated with a client identity. Refusing to overwrite.] at org.apache.openejb.core.ivm.naming.InitContextFactory.getInitialContext(InitContextFactory.java:53) at org.apache.openejb.client.LocalInitialContextFactory.getIntraVmContext(LocalInitialContextFactory.java:114) ... 22 more Caused by: javax.security.auth.login.LoginException: Thread already associated with a client identity. Refusing to overwrite. at org.apache.openejb.core.security.AbstractSecurityService.associate(AbstractSecurityService.java:174) at org.apache.openejb.core.security.AbstractSecurityService.associate(AbstractSecurityService.java:60) at org.apache.openejb.core.ivm.naming.InitContextFactory.getInitialContext(InitContextFactory.java:51) ... 23 more Probably the client identity should be removed from ThreadLocal on Context.close(), or J2SE security (doPrivileged) could be used to hold the principal.

    Apache's JIRA Issue Tracker | 8 years ago | Martin Vysny
    javax.naming.AuthenticationException: User could not be authenticated: karolko [Root exception is javax.security.auth.login.LoginException: Thread already associated with a client identity. Refusing to overwrite.]]
  3. 0

    [OpenEJB-users] OpenEJB local interfaces JNDI security - Grokbase

    grokbase.com | 7 months ago
    javax.naming.AuthenticationException: User could not be authenticated: karolko [Root exception is javax.security.auth.login.LoginException: Thread already associated with a client identity. Refusing to overwrite.]] at org.apache.openejb.client.LocalInitialContextFactory.getIntraVmContext(LocalInitialContextFactory.java:116) at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:41) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error in Toplink 10.1.3 cache coordination usin... | Oracle Community

    oracle.com | 11 months ago
    javax.naming.AuthenticationException: Login failed: com.ibm.websphere.security.auth.WSLoginFailedException [Root exception is com.ibm.websphere.security.auth.WSLoginFailedException]]
  6. 0

    SASL authentication help needed

    Oracle Community | 1 decade ago | 807573
    javax.naming.AuthenticationException: SASL authentication failed. Root exception is java.lang.NoSuchMethodError

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.AuthenticationException

      User: mhegde, failed to be authenticated. [Root exception is java.lang.SecurityException: User: mhegde, failed to be authenticated.]

      at weblogic.jndi.internal.ExceptionTranslator.toNamingException()
    2. weblogic.jndi.internal
      ExceptionTranslator.toNamingException
      1. weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
      1 frame
    3. weblogic.jndi
      WLInitialContextFactory.getInitialContext
      1. weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:808)
      2. weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:697)
      3. weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:485)
      4. weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:373)
      5. weblogic.jndi.Environment.getContext(Environment.java:319)
      6. weblogic.jndi.Environment.getContext(Environment.java:288)
      7. weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
      7 frames
    4. Java RT
      InitialContext.<init>
      1. javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      2. javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      3. javax.naming.InitialContext.init(Unknown Source)
      4. javax.naming.InitialContext.<init>(Unknown Source)
      4 frames
    5. com.agile.ui
      PCEJBConnection.login
      1. com.agile.ui.java.security.weblogic.WeblogicSecurityAdapter.login(WeblogicSecurityAdapter.java:69)
      2. com.agile.ui.java.data.pc.PCEJBUtil.<init>(PCEJBUtil.java:276)
      3. com.agile.ui.java.data.pc.PCEJBUtil.createInstance(PCEJBUtil.java:238)
      4. com.agile.ui.java.data.pc.PCEJBConnection.login(PCEJBConnection.java:905)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    7. com.agile.ui
      PCInterfaceFactory$1.invoke
      1. com.agile.ui.java.data.pc.PCInterfaceFactory$1.invoke(PCInterfaceFactory.java:27)
      1 frame
    8. com.sun.proxy
      $Proxy1.login
      1. com.sun.proxy.$Proxy1.login(Unknown Source)
      1 frame
    9. com.agile.ui
      CommandManager$4.run
      1. com.agile.ui.pcclient.CommandLogin.doExecute(CommandLogin.java:118)
      2. com.agile.ui.java.command.CommandManager$4.run(CommandManager.java:301)
      2 frames
    10. foxtrot
      AbstractWorkerThread$2.run
      1. foxtrot.AbstractWorkerThread$2.run(AbstractWorkerThread.java:49)
      1 frame
    11. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    12. foxtrot
      AbstractWorkerThread.runTask
      1. foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:45)
      1 frame
    13. foxtrot.workers
      DefaultWorkerThread.run
      1. foxtrot.workers.DefaultWorkerThread.run(DefaultWorkerThread.java:153)
      1 frame
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame