Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2908

quorum.auth.MiniKdcTest.testKerberosLogin failing with NPE on java 9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.4.11, 3.5.4
    • 3.4.11, 3.5.4
    • security, tests
    • None

    Description

      quorum.auth.MiniKdcTest.testKerberosLogin is failing with an NPE on Java 9.

      I recently setup jenkins jobs for java 9 on branch 3.4 and 3.5 and the test is failing as follows.

      javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input(s)
      	at java.base/java.util.Objects.requireNonNull(Objects.java:246)
      	at java.base/javax.security.auth.Subject$SecureSet.remove(Subject.java:1172)
      	at java.base/java.util.Collections$SynchronizedCollection.remove(Collections.java:2039)
      	at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.logout(Krb5LoginModule.java:1193)
      	at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:732)
      	at java.base/javax.security.auth.login.LoginContext.access$000(LoginContext.java:194)
      	at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:665)
      	at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:663)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:663)
      	at java.base/javax.security.auth.login.LoginContext.logout(LoginContext.java:613)
      	at org.apache.zookeeper.server.quorum.auth.MiniKdcTest.testKerberosLogin(MiniKdcTest.java:179)
      	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 org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:55)
      
      	at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:821)
      	at java.base/javax.security.auth.login.LoginContext.access$000(LoginContext.java:194)
      	at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:665)
      	at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:663)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:663)
      	at java.base/javax.security.auth.login.LoginContext.logout(LoginContext.java:613)
      	at org.apache.zookeeper.server.quorum.auth.MiniKdcTest.testKerberosLogin(MiniKdcTest.java:179)
      	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 org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:55)
      

      https://builds.apache.org/view/S-Z/view/ZooKeeper/job/ZooKeeper_branch34_java9/1/testReport/junit/org.apache.zookeeper.server.quorum.auth/MiniKdcTest/testKerberosLogin/

      Attachments

        Issue Links

          Activity

            People

              mfenes Mark Fenes
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: