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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807578, 1 year ago
java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
via Oracle Community by 843810, 1 year ago
java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
javax.security.auth.login.LoginException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
at sun.security.krb5.EncryptionKey.(EncryptionKey.java:212)
at sun.security.krb5.EncryptionKey.acquireSecretKeys(EncryptionKey.java:190)
at sun.security.krb5.EncryptionKey.acquireSecretKeys(EncryptionKey.java:158)
at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:656)
at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:542)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at com.sun.vda.service.ldap.ADConnection.kerberosLogin(ADConnection.java:151)
at com.sun.vda.service.ldap.UserDirConnection.checkUserCredentials(UserDirConnection.java:230)
at com.sun.vda.service.client.ClientRequestWorker.authenticate(ClientRequestWorker.java:139)
at com.sun.vda.service.client.ClientRequestWorker.execute(ClientRequestWorker.java:117)
at com.sun.vda.service.client.ClientRequestWorker.run(ClientRequestWorker.java:74)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at com.sun.vda.service.ldap.ADConnection.kerberosLogin(ADConnection.java:151)
at com.sun.vda.service.ldap.UserDirConnection.checkUserCredentials(UserDirConnection.java:230)
at com.sun.vda.service.client.ClientRequestWorker.authenticate(ClientRequestWorker.java:139)
at com.sun.vda.service.client.ClientRequestWorker.execute(ClientRequestWorker.java:117)
at com.sun.vda.service.client.ClientRequestWorker.run(ClientRequestWorker.java:74)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.