java.lang.NullPointerException: Attempt to get length of null array

Stack Overflow | Rahul Matte | 7 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

    How to reconnect to the openfire server after disconnecting?

    Stack Overflow | 7 months ago | Rahul Matte
    java.lang.NullPointerException: Attempt to get length of null array

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to get length of null array

      at org.jivesoftware.smack.util.stringencoder.Base64.encode()
    2. org.jivesoftware.smack
      SCRAMSHA1Mechanism.evaluateChallenge
      1. org.jivesoftware.smack.util.stringencoder.Base64.encode(Base64.java:61)
      2. org.jivesoftware.smack.util.stringencoder.Base64.encodeToString(Base64.java:43)
      3. org.jivesoftware.smack.sasl.core.SCRAMSHA1Mechanism.evaluateChallenge(SCRAMSHA1Mechanism.java:201)
      3 frames
    3. Smack
      SASLAuthentication.authenticated
      1. org.jivesoftware.smack.sasl.SASLMechanism.challengeReceived(SASLMechanism.java:224)
      2. org.jivesoftware.smack.SASLAuthentication.challengeReceived(SASLAuthentication.java:328)
      3. org.jivesoftware.smack.SASLAuthentication.authenticated(SASLAuthentication.java:347)
      3 frames
    4. org.jivesoftware.smack
      XMPPTCPConnection$PacketReader$1.run
      1. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1069)
      2. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPConnection.java:931)
      3. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:951)
      3 frames