java.lang.RuntimeException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!

JDK Bug System | Felix Yang | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This has been failing since fix of JDK-6977937. Please refer to the test output below: ----------System.out:(10/556)---------- Start KDC on 12541 ----------------------------------------------- >>>>> UDP packet received RABBIT.HOLE> empty@RABBIT.HOLE sends AS-REQ for krbtgt/RABBIT.HOLE@RABBIT.HOLE, KDCOptions: FORWARDABLE, ----------------------------------------------- >>>>> UDP packet received RABBIT.HOLE> empty@RABBIT.HOLE sends AS-REQ for krbtgt/RABBIT.HOLE@RABBIT.HOLE, KDCOptions: FORWARDABLE, ----------------------------------------------- >>>>> UDP packet received RABBIT.HOLE> empty@RABBIT.HOLE sends AS-REQ for krbtgt/RABBIT.HOLE@RABBIT.HOLE, KDCOptions: FORWARDABLE, ----------System.err:(60/3879)---------- java.lang.RuntimeException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null! at KDC.keyForUser(KDC.java:634) at KDC.processAsReq(KDC.java:917) at KDC.processMessage(KDC.java:646) at KDC$1.run(KDC.java:1265) Caused by: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null! at sun.security.krb5.EncryptionKey.<init>(java.security.jgss@9-ea/EncryptionKey.java:208) at KDC.keyForUser(KDC.java:628) ... 3 more java.lang.RuntimeException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null! at KDC.keyForUser(KDC.java:634) at KDC.processAsReq(KDC.java:917) at KDC.processMessage(KDC.java:646) at KDC$1.run(KDC.java:1265) Caused by: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null! at sun.security.krb5.EncryptionKey.<init>(java.security.jgss@9-ea/EncryptionKey.java:208) at KDC.keyForUser(KDC.java:628) ... 3 more java.lang.RuntimeException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null! at KDC.keyForUser(KDC.java:634) at KDC.processAsReq(KDC.java:917) at KDC.processMessage(KDC.java:646) at KDC$1.run(KDC.java:1265) Caused by: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null! at sun.security.krb5.EncryptionKey.<init>(java.security.jgss@9-ea/EncryptionKey.java:208) at KDC.keyForUser(KDC.java:628) ... 3 more javax.security.auth.login.LoginException: Receive timed out at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(jdk.security.auth@9-ea/Krb5LoginModule.java:795) at com.sun.security.auth.module.Krb5LoginModule.login(jdk.security.auth@9-ea/Krb5LoginModule.java:581) at Context.fromUserPass(Context.java:168) at Context.fromUserPass(Context.java:136) at EmptyPassword.main(EmptyPassword.java:40) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(java.base@9-ea/Native Method) at java.net.AbstractPlainDatagramSocketImpl.receive(java.base@9-ea/AbstractPlainDatagramSocketImpl.java:180) at java.net.DatagramSocket.receive(java.base@9-ea/DatagramSocket.java:814) at sun.security.krb5.internal.UDPClient.receive(java.security.jgss@9-ea/NetClient.java:205) at sun.security.krb5.KdcComm$KdcCommunication.run(java.security.jgss@9-ea/KdcComm.java:411) at sun.security.krb5.KdcComm$KdcCommunication.run(java.security.jgss@9-ea/KdcComm.java:364) at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) at sun.security.krb5.KdcComm.send(java.security.jgss@9-ea/KdcComm.java:348) at sun.security.krb5.KdcComm.sendIfPossible(java.security.jgss@9-ea/KdcComm.java:253) at sun.security.krb5.KdcComm.send(java.security.jgss@9-ea/KdcComm.java:229) at sun.security.krb5.KdcComm.send(java.security.jgss@9-ea/KdcComm.java:200) at sun.security.krb5.KrbAsReqBuilder.send(java.security.jgss@9-ea/KrbAsReqBuilder.java:326) at sun.security.krb5.KrbAsReqBuilder.action(java.security.jgss@9-ea/KrbAsReqBuilder.java:371) at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(jdk.security.auth@9-ea/Krb5LoginModule.java:753) ... 10 more

    JDK Bug System | 6 months ago | Felix Yang
    java.lang.RuntimeException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      EncryptionKey: Key bytes cannot be null! at sun.security.krb5.EncryptionKey.<init>(java.security.jgss@9-ea/EncryptionKey.java:208)

      at KDC.keyForUser()
    2. Unknown
      KDC$1.run
      1. KDC.keyForUser(KDC.java:628)
      2. KDC.processAsReq(KDC.java:917)
      3. KDC.processMessage(KDC.java:646)
      4. KDC$1.run(KDC.java:1265)
      4 frames