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

JDK Bug System | Felix Yang | 4 months ago
  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 | 4 months ago | Felix Yang
    java.lang.RuntimeException: java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
  2. 0

    Secure Zookeeper for CDH4.1.1 - Grokbase

    grokbase.com | 1 year ago
    java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
  3. 0

    Secure Zookeeper for CDH4.1.1 - Grokbase

    grokbase.com | 5 months ago
    java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Secure Zookeeper for CDH4.1.1 - Grokbase

    grokbase.com | 5 months ago
    java.lang.IllegalArgumentException: EncryptionKey: Key bytes cannot be null!
  6. 0

    This has been observed in jigsaw nightly runs. Two tests fail: javax/rmi/PortableRemoteObject/8146975/RmiIiopReturnValueTest.java javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.java Please refer to test output below: ----------messages:(5/486)---------- command: main -Djava.naming.provider.url=iiop://localhost:5050 -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory RmiIiopReturnValueTest -port 5049 reason: User specified action: run main/othervm -Djava.naming.provider.url=iiop://localhost:5050 -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory RmiIiopReturnValueTest -port 5049 Mode: othervm [/othervm specified] Additional options from @modules: --add-modules java.corba elapsed time (seconds): 24.494 ----------configuration:(3/38)---------- Boot Layer add modules: java.corba ----------System.out:(22/1586)---------- Starting orbd with NS port 5050 and activation port 5049 RmiIiopReturnValueTest: Executing: [/Users/aurora/CommonData/jdk/bin/orbd, -J-d64, -ORBInitialHost, localhost, -ORBInitialPort, 5050, -port, 5049] Starting RmiIiopServer RmiIiopReturnValueTest: Executing: [/Users/aurora/CommonData/jdk/bin/java, --add-modules, java.corba, -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory, -Djava.naming.provider.url=iiop://localhost:5050, -cp, /Users/aurora/sandbox/gresults/testoutput/jdk_other/JTwork/classes/javax/rmi/PortableRemoteObject/8146975:/Users/aurora/sandbox/testbase/jdk/test/javax/rmi/PortableRemoteObject/8146975:/Users/aurora/sandbox/gresults/testoutput/jdk_other/JTwork/classes/lib/testlibrary:/Users/aurora/sandbox/testbase/jdk/test/lib/testlibrary:/Users/aurora/CommonData/jtreg/lib/javatest.jar:/Users/aurora/CommonData/jtreg/lib/jtreg.jar, HelloServer, -port, 5049] RmiIiopReturnValueTest.executeRmiIiopClient: HelloClient.executeRmiClientCall HelloClient.main: enter ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... HelloClient.main: HelloService lookup ... RmiIiopReturnValueTest.stopRmiIiopServer: destroy rmiServerProcess serverProcess exitCode:9 RmiIiopReturnValueTest.stopOrbd: destroy orbdProcess orbd exitCode:9 ----------System.err:(85/5723)---------- java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) NameNotFoundException Caught .... try again java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) NameNotFoundException Caught .... try again java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) NameNotFoundException Caught .... try again java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) NameNotFoundException Caught .... try again java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) NameNotFoundException Caught .... try again java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425) at HelloServer.main(HelloServer.java:42) NameNotFoundException Caught .... try again NameNotFoundException Caught .... try again NameNotFoundException Caught .... try again NameNotFoundException Caught .... try again NameNotFoundException Caught .... try again HelloClient terminating java.lang.RuntimeException: Expected Response not received at RmiIiopReturnValueTest.stopTestComponents(RmiIiopReturnValueTest.java:85) at RmiIiopReturnValueTest.main(RmiIiopReturnValueTest.java:67) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:537) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.base/java.lang.Thread.run(Thread.java:844)

    JDK Bug System | 4 weeks ago | Felix Yang
    java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:602) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:693) at java.corba@9-ea/com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:710) at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425)

    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. 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