Search code examples
javaopenfiresmack

Is smack 4.2.0 Beta2 compatible with openfire 3.8.1?


I am using Smack 4.2.0 Beta2 with an old version of Openfire 3.8.1. I am unable to create a chatroom.

Are these compatible?

Thanks, Ali


Solution

  • OpenFire 4.2 respond to chat room create with following code

    status code="110" 
    status code="100' 
    status code="201"
    

    OpenFire 3.8.1 respond only with

    status code="201"
    

    Smack 4.2.0.beta2 expecting status code 110, so Smack 4.2.beta2 can't create chatroom with OpenFire 3.8.1, I found were the issue is

    Class: MultiUserChat
    
    Method: private Presence enter(MucEnterConfiguration conf)
    

    Line:

    StanzaFilter responseFilter = new AndFilter(...), MUCUserStatusCodeFilter.STATUS_110_PRESENCE_TO_SELF);