java.lang.IllegalArgumentException: Must have a local (user) JID set. Either you didn't configure one or you where not connected at least once

Stack Overflow | Anil | 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

    Smack "Must have a local (user) JID set" error

    Stack Overflow | 7 months ago | Anil
    java.lang.IllegalArgumentException: Must have a local (user) JID set. Either you didn't configure one or you where not connected at least once

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Must have a local (user) JID set. Either you didn't configure one or you where not connected at least once

      at org.jivesoftware.smack.filter.IQReplyFilter.<init>()
    2. Smack
      AbstractXMPPConnection.createPacketCollectorAndSend
      1. org.jivesoftware.smack.filter.IQReplyFilter.<init>(IQReplyFilter.java:94)
      2. org.jivesoftware.smack.AbstractXMPPConnection.createPacketCollectorAndSend(AbstractXMPPConnection.java:690)
      2 frames
    3. org.jivesoftware.smackx
      LastActivityManager.getLastActivity
      1. org.jivesoftware.smackx.iqlast.LastActivityManager.getLastActivity(LastActivityManager.java:239)
      1 frame
    4. com.studyboard.utils
      ChatUtil.getLastActivity
      1. com.studyboard.utils.ChatUtil.getLastActivity(ChatUtil.java:674)
      1 frame
    5. com.studyboard
      ChatMessageActivity.onCreate
      1. com.studyboard.ChatMessageActivity.initChat(ChatMessageActivity.java:339)
      2. com.studyboard.ChatMessageActivity.onCreate(ChatMessageActivity.java:220)
      2 frames
    6. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6005)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2446)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2555)
      5. android.app.ActivityThread.access$800(ActivityThread.java:176)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437)
      7. android.os.Handler.dispatchMessage(Handler.java:111)
      8. android.os.Looper.loop(Looper.java:194)
      9. android.app.ActivityThread.main(ActivityThread.java:5576)
      9 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)
      2 frames