Uploaded image for project: 'Smack'
  1. Smack
  2. SMACK-232

Better handling of Roster error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: Core
    • Labels:
      None

      Description

      If there is an error in the server side by adding a new contact, Smack raises an exception that makes Spark goes down.

      java.lang.NullPointerException: Name is null
      at java.lang.Enum.valueOf(Unknown Source)
      at org.jivesoftware.smack.packet.RosterPacket$ItemType.valueOf(RosterPacket.java:268)
      at org.jivesoftware.smack.PacketReader.parseRoster(PacketReader.java:697)
      at org.jivesoftware.smack.PacketReader.parseIQ(PacketReader.java:582)
      at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:275)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

      These are the stanzas that cause the error:
      Openfire RCV: <iq id="3Rqm2-48" type="set" from="95c7a9c5@server1/95c7a9c5"><query xmlns="jabber:iq:roster"><item jid="tsung1@server2"
      name="tsung1"><group>Friends</group></item></query></iq>
      Openfire SENT: <iq type="error" id="3Rqm2-48" to="95c7a9c5@server1/95c7a9c5"><query xmlns="jabber:iq:roster"><item jid="tsung1@server2"
      name="tsung1"><group>Friends</group></item></query><error code="500" type="wait"><internal-server-error xmlns="urn:ietf
      :params:xml:ns:xmpp-stanzas"/></error></iq>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matt Matt Tucker
              Reporter:
              francisco Francisco Vives
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: