Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-1362

Websocket plugin fails when trying to use connection configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.6
    • Component/s: Plugins
    • Labels:
      None

      Description

      The websockets plugin fails under certain conditions, throwing a NullPointerException like the one below:

      2017.06.01 19:52:19 org.jivesoftware.openfire.websocket.XmppWebSocket - Failed to process XMPP stanza
      java.lang.NullPointerException
      at org.jivesoftware.openfire.net.SASLAuthentication.getSASLMechanismsElement(SASLAuthentication.java:204)
      at org.jivesoftware.openfire.net.SASLAuthentication.getSASLMechanisms(SASLAuthentication.java:182)
      at org.jivesoftware.openfire.websocket.XmppWebSocket.configureStream(XmppWebSocket.java:300)
      at org.jivesoftware.openfire.websocket.XmppWebSocket.initiateSession(XmppWebSocket.java:279)
      at org.jivesoftware.openfire.websocket.XmppWebSocket.onTextMethod(XmppWebSocket.java:113)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)20:52
      

      This relates to changes introduced in OF-946.

        Attachments

          Activity

            People

            Assignee:
            guus Guus der Kinderen
            Reporter:
            guus Guus der Kinderen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: