javax.naming.AuthenticationException: javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!

Oracle Community | 807578 | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Active Directory Authentication problem

    Oracle Community | 7 years ago | 807578
    javax.naming.AuthenticationException: javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
  2. 0

    accessing vdi via Microsoft RDP

    Oracle Community | 8 years ago | 807578
    javax.naming.AuthenticationException: javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!

    Root Cause Analysis

    1. javax.naming.AuthenticationException

      javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!

      at sun.security.krb5.EncryptionKey.<init>()
    2. Java RT
      LoginContext.login
      1. sun.security.krb5.EncryptionKey.<init>(EncryptionKey.java:212)
      2. sun.security.krb5.EncryptionKey.acquireSecretKeys(EncryptionKey.java:190)
      3. sun.security.krb5.EncryptionKey.acquireSecretKeys(EncryptionKey.java:158)
      4. com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:656)
      5. com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:542)
      6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      7. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      8. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      9. java.lang.reflect.Method.invoke(Method.java:585)
      10. javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      11. javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      12. javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      13. java.security.AccessController.doPrivileged(Native Method)
      14. javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      15. javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      15 frames
    3. com.sun.vda
      ClientRequestWorker.run
      1. com.sun.vda.service.ldap.ADConnection.kerberosLogin(ADConnection.java:151)
      2. com.sun.vda.service.ldap.ADConnection.bind(ADConnection.java:124)
      3. com.sun.vda.service.ldap.UserDirConnection.getConnection(UserDirConnection.java:174)
      4. com.sun.vda.service.ldap.UserDirConnection.<init>(UserDirConnection.java:106)
      5. com.sun.vda.service.ldap.UserDirConnection.getInstance(UserDirConnection.java:119)
      6. com.sun.vda.service.core.UserDirectory.getUserDirConnection(UserDirectory.java:282)
      7. com.sun.vda.service.core.UserDirectory.getConnection(UserDirectory.java:288)
      8. com.sun.vda.service.core.UserDirectory.getBaseDn(UserDirectory.java:292)
      9. com.sun.vda.service.core.UserDirectory.getDnFromUserId(UserDirectory.java:135)
      10. com.sun.vda.service.core.UserDirectory.getDnFromUserId(UserDirectory.java:121)
      11. com.sun.vda.service.client.QueryDesktops.execute(QueryDesktops.java:67)
      12. com.sun.vda.service.client.ClientRequestWorker.execute(ClientRequestWorker.java:119)
      13. com.sun.vda.service.client.ClientRequestWorker.run(ClientRequestWorker.java:74)
      13 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      3. java.lang.Thread.run(Thread.java:595)
      3 frames