java.lang.NullPointerException

Stack Overflow | Steve | 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.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at org.jivesoftware.smack.util.stringencoder.Base64.encode()
  2. org.jivesoftware.smack
    Base64.encodeToString
    1. org.jivesoftware.smack.util.stringencoder.Base64.encode(Base64.java:64)
    2. org.jivesoftware.smack.util.stringencoder.Base64.encode(Base64.java:60)
    3. org.jivesoftware.smack.util.stringencoder.Base64.encodeToString(Base64.java:42)
    3 frames
  3. Smack
    SASLAuthentication.authenticate
    1. org.jivesoftware.smack.sasl.SASLMechanism.authenticate(SASLMechanism.java:199)
    2. org.jivesoftware.smack.sasl.SASLMechanism.authenticate(SASLMechanism.java:169)
    3. org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:236)
    3 frames
  4. org.jivesoftware.smack
    XMPPTCPConnection.loginNonAnonymously
    1. org.jivesoftware.smack.tcp.XMPPTCPConnection.loginNonAnonymously(XMPPTCPConnection.java:365)
    1 frame
  5. Smack
    AbstractXMPPConnection.login
    1. org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java:452)
    2. org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java:427)
    2 frames
  6. com.lets.dothis
    XMPP$XMPPConnectionListener.connected
    1. com.lets.dothis.myapplication.XMPP.login(XMPP.java:180)
    2. com.lets.dothis.myapplication.XMPP$XMPPConnectionListener.connected(XMPP.java:206)
    2 frames
  7. Smack
    AbstractXMPPConnection.callConnectionConnectedListener
    1. org.jivesoftware.smack.AbstractXMPPConnection.callConnectionConnectedListener(AbstractXMPPConnection.java:1152)
    1 frame
  8. org.jivesoftware.smack
    XMPPTCPConnection.connectInternal
    1. org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:841)
    1 frame
  9. Smack
    AbstractXMPPConnection.connect
    1. org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:360)
    1 frame
  10. com.lets.dothis
    XMPP$1.run
    1. com.lets.dothis.myapplication.XMPP$1.run(XMPP.java:150)
    1 frame
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:856)
    1 frame