java.lang.IllegalArgumentException: Empty nameStrings not allowed

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

    Can not open ssh session using JSch with JDK 8

    Stack Overflow | 10 months ago | Radu Dumbrăveanu
    java.lang.IllegalArgumentException: Empty nameStrings not allowed

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Empty nameStrings not allowed

      at sun.security.krb5.PrincipalName.validateNameStrings()
    2. Java RT
      GSSContextImpl.initSecContext
      1. sun.security.krb5.PrincipalName.validateNameStrings(PrincipalName.java:167)
      2. sun.security.krb5.PrincipalName.<init>(PrincipalName.java:277)
      3. sun.security.krb5.PrincipalName.parse(PrincipalName.java:315)
      4. sun.security.krb5.internal.KRBError.init(KRBError.java:355)
      5. sun.security.krb5.internal.KRBError.<init>(KRBError.java:186)
      6. sun.security.krb5.KrbTgsRep.<init>(KrbTgsRep.java:58)
      7. sun.security.krb5.KrbTgsReq.getReply(KrbTgsReq.java:259)
      8. sun.security.krb5.KrbTgsReq.sendAndGetCreds(KrbTgsReq.java:270)
      9. sun.security.krb5.internal.CredentialsUtil.serviceCreds(CredentialsUtil.java:302)
      10. sun.security.krb5.internal.CredentialsUtil.acquireServiceCreds(CredentialsUtil.java:120)
      11. sun.security.krb5.Credentials.acquireServiceCreds(Credentials.java:458)
      12. sun.security.jgss.krb5.Krb5Context.initSecContext(Krb5Context.java:693)
      13. sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:248)
      14. sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
      14 frames
    3. JSch
      Session.connect
      1. com.jcraft.jsch.jgss.GSSContextKrb5.init(GSSContextKrb5.java:129)
      2. com.jcraft.jsch.UserAuthGSSAPIWithMIC.start(UserAuthGSSAPIWithMIC.java:135)
      3. com.jcraft.jsch.Session.connect(Session.java:463)
      4. com.jcraft.jsch.Session.connect(Session.java:183)
      4 frames
    4. jsch
      Main.main
      1. jsch.Main.main(Main.java:15)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    6. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame