javax.security.auth.login.LoginException: No password provided

JDK Bug System | Shadow Bug | 2 years 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.

Root Cause Analysis

  1. javax.security.auth.login.LoginException

    No password provided

    at com.sun.security.auth.module.Krb5LoginModule.promptForPass()
  2. Java RT
    HttpURLConnection.getInputStream
    1. com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:919)
    2. com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760)
    3. com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)
    4. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    5. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    6. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    7. java.lang.reflect.Method.invoke(Method.java:497)
    8. javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
    9. javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
    10. javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
    11. javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
    12. java.security.AccessController.doPrivileged(Native Method)
    13. javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    14. javax.security.auth.login.LoginContext.login(LoginContext.java:587)
    15. sun.security.jgss.GSSUtil.login(GSSUtil.java:258)
    16. sun.security.jgss.krb5.Krb5Util.getTicket(Krb5Util.java:158)
    17. sun.security.jgss.krb5.Krb5InitCredential$1.run(Krb5InitCredential.java:335)
    18. sun.security.jgss.krb5.Krb5InitCredential$1.run(Krb5InitCredential.java:331)
    19. java.security.AccessController.doPrivileged(Native Method)
    20. sun.security.jgss.krb5.Krb5InitCredential.getTgt(Krb5InitCredential.java:330)
    21. sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:145)
    22. sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
    23. sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
    24. sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
    25. sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
    26. sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
    27. sun.security.jgss.spnego.SpNegoContext.GSS_initSecContext(SpNegoContext.java:882)
    28. sun.security.jgss.spnego.SpNegoContext.initSecContext(SpNegoContext.java:317)
    29. sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:248)
    30. sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
    31. sun.net.www.protocol.http.spnego.NegotiatorImpl.init(NegotiatorImpl.java:107)
    32. sun.net.www.protocol.http.spnego.NegotiatorImpl.<init>(NegotiatorImpl.java:116)
    33. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    34. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    35. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    36. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    37. sun.net.www.protocol.http.Negotiator.getNegotiator(Negotiator.java:64)
    38. sun.net.www.protocol.http.NegotiateAuthentication.isSupportedImpl(NegotiateAuthentication.java:130)
    39. sun.net.www.protocol.http.NegotiateAuthentication.isSupported(NegotiateAuthentication.java:102)
    40. sun.net.www.protocol.http.AuthenticationHeader.parse(AuthenticationHeader.java:180)
    41. sun.net.www.protocol.http.AuthenticationHeader.<init>(AuthenticationHeader.java:126)
    42. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1670)
    43. sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90)
    44. sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1435)
    45. sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1433)
    46. java.security.AccessController.doPrivileged(Native Method)
    47. java.security.AccessController.doPrivileged(AccessController.java:713)
    48. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1432)
    48 frames
  3. Unknown
    Bug_KerberosHttpAccess$3.run
    1. Bug_KerberosHttpAccess.connectToOozie(Bug_KerberosHttpAccess.java:78)
    2. Bug_KerberosHttpAccess.access$000(Bug_KerberosHttpAccess.java:68)
    3. Bug_KerberosHttpAccess$3.run(Bug_KerberosHttpAccess.java:164)
    3 frames
  4. Java RT
    Subject.doAs
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAs(Subject.java:422)
    2 frames
  5. Unknown
    Bug_KerberosHttpAccess.main
    1. Bug_KerberosHttpAccess.main(Bug_KerberosHttpAccess.java:173)
    1 frame