[xmppclient] Binding v5.1.3-5.2.0 not working

Hi!

Version 5.1.3 is completely broken due to dependency issues.

openhab.log (4.2 KB)

Version 5.2.0 is completely/partially broken. It can’t start (99% in a Waiting status), and it can’t send messages (publishGroupXMPP) or images (publishXMPPImageByHTTP). I checked the code of 5.0.2-M2.

322 │ Active  │  80 │ 1.1.0                 │ jxmpp-core
323 │ Active  │  80 │ 1.1.0                 │ jxmpp-jid
324 │ Active  │  80 │ 1.1.0                 │ jxmpp-util-cache
325 │ Active  │  80 │ 1.1.1                 │ minidns-core
326 │ Active  │  80 │ 1.1.4.c               │ Apache ServiceMix :: Bundles :: xpp3
327 │ Active  │  80 │ 0.2                   │ hsluv
328 │ Active  │  80 │ 4.5.0.rc1             │ smack-core
329 │ Waiting │  80 │ 5.2.0.M2              │ openHAB Add-ons :: Bundles :: XMPPClient Binding
330 │ Active  │  80 │ 4.5.0.rc1             │ smack-experimental
331 │ Active  │  80 │ 4.5.0.rc1             │ smack-extensions
332 │ Active  │  80 │ 4.5.0.rc1             │ smack-im
333 │ Active  │  80 │ 4.5.0.rc1             │ smack-java11
334 │ Active  │  80 │ 4.5.0.rc1             │ smack-resolver-javax
335 │ Active  │  80 │ 4.5.0.rc1             │ smack-sasl-javax
336 │ Active  │  80 │ 4.5.0.rc1             │ smack-streammanagement
337 │ Active  │  80 │ 4.5.0.rc1             │ smack-tcp
338 │ Active  │  80 │ 4.5.0.rc1             │ smack-xmlparser

openhab.log (52.2 KB)

Version from Issue tracker
Сan’t send messages (publishGroupXMPP) or images (publishXMPPImageByHTTP) but it loads and activates normally in 5.1.3, 5.2.0

286 │ Active │  80 │ 1.1.0                 │ jxmpp-core
287 │ Active │  80 │ 1.1.0                 │ jxmpp-jid
288 │ Active │  80 │ 4.5.0.rc1             │ smack-tcp
289 │ Active │  80 │ 4.5.0.rc1             │ smack-xmlparser
290 │ Active │  80 │ 1.1.1                 │ minidns-core
291 │ Active │  80 │ 4.5.0.rc1             │ smack-streammanagement
292 │ Active │  80 │ 4.5.0.rc1             │ smack-extensions
293 │ Active │  80 │ 4.5.0.rc1             │ smack-resolver-javax
294 │ Active │  80 │ 4.5.0.rc1             │ smack-experimental
295 │ Active │  80 │ 1.1.4.c               │ Apache ServiceMix :: Bundles :: xpp3
296 │ Active │  80 │ 0.2                   │ hsluv
297 │ Active │  80 │ 4.5.0.rc1             │ smack-im
298 │ Active │  80 │ 1.1.0                 │ jxmpp-util-cache
299 │ Active │  80 │ 4.5.0.rc1             │ smack-sasl-javax
300 │ Active │  80 │ 4.5.0.rc1             │ smack-core
301 │ Active │  80 │ 4.5.0.rc1             │ smack-java11
302 │ Active │  80 │ 4.5.0.rc1             │ smack-xmlparser-xpp3
303 │ Active │  80 │ 5.2.0.202602162126    │ openHAB Add-ons :: Bundles :: XMPPClient Binding

openhab.log (49.8 KB)

publishGroupXMPP can be easy fixed .

XMPPClientHandlerFactory.java

    @Activate
    protected void activate(ComponentContext componentContext) {
        super.activate(componentContext);
        Roster.setRosterLoadedAtLoginDefault(false);

        DNSUtil.setDNSResolver(JavaxResolver.getInstance());
        SmackConfiguration.setDefaultHostnameVerifier(new XmppHostnameVerifier());
        Base64.setEncoder(Java7Base64Encoder.getInstance());
        Base64UrlSafeEncoder.setEncoder(Java7Base64UrlSafeEncoder.getInstance());

        ProviderManager.addIQProvider("query", "http://jabber.org/protocol/disco#info", new DiscoverInfoProvider());
        ProviderManager.addIQProvider("query", "http://jabber.org/protocol/disco#items", new DiscoverItemsProvider());
        ProviderManager.addExtensionProvider("x", "jabber:x:data", new DataFormProvider());

        // Init MUC
        ProviderManager.addExtensionProvider("x", "http://jabber.org/protocol/muc#user",
                new org.jivesoftware.smackx.muc.provider.MUCUserProvider());
        ProviderManager.addIQProvider("query", "http://jabber.org/protocol/muc#admin",
                new org.jivesoftware.smackx.muc.provider.MUCAdminProvider());
        ProviderManager.addIQProvider("query", "http://jabber.org/protocol/muc#owner",
                new org.jivesoftware.smackx.muc.provider.MUCOwnerProvider());
    }

publishXMPPImageByHTTP - I couldn’t fix it, I don’t have enough knowledge

I’m currently using version 5.0.3 build on Smak 4.3.3, as 4.5.0-rc1 has some issues with osgi (as it seemed to me).

My build work with 5.0.3,5.1.3,5.2.0 just fine

278 │ Active │  80 │ 4.3.3                 │ smack-extensions
279 │ Active │  80 │ 0.6.3                 │ jxmpp-jid
280 │ Active │  80 │ 4.3.3                 │ smack-im
281 │ Active │  80 │ 4.3.3                 │ smack-java7
282 │ Active │  80 │ 0.6.3                 │ jxmpp-core
283 │ Active │  80 │ 4.3.3                 │ smack-sasl-javax
284 │ Active │  80 │ 4.3.3                 │ smack-core
285 │ Active │  80 │ 0.6.3                 │ jxmpp-util-cache
286 │ Active │  80 │ 5.0.4.202604040510    │ openHAB Add-ons :: Bundles :: XMPPClient Binding
287 │ Active │  80 │ 1.1.4.c               │ Apache ServiceMix :: Bundles :: xpp3
288 │ Active │  80 │ 4.3.3                 │ smack-tcp
289 │ Active │  80 │ 4.3.3                 │ smack-experimental
290 │ Active │  80 │ 0.3.3                 │ minidns-core
291 │ Active │  80 │ 4.3.3                 │ smack-resolver-javax

My own rebuild if 5.2.0-M2 with fixed MUC error + MUC join/read support. I want to send a pull request when everything is fixed in the base version.

268 │ Active │  80 │ 1.1.0                 │ jxmpp-core
269 │ Active │  80 │ 1.1.0                 │ jxmpp-jid
270 │ Active │  80 │ 4.5.0.rc1             │ smack-tcp
271 │ Active │  80 │ 4.5.0.rc1             │ smack-xmlparser
272 │ Active │  80 │ 1.1.1                 │ minidns-core
273 │ Active │  80 │ 4.5.0.rc1             │ smack-streammanagement
274 │ Active │  80 │ 4.5.0.rc1             │ smack-extensions
275 │ Active │  80 │ 4.5.0.rc1             │ smack-resolver-javax
276 │ Active │  80 │ 4.5.0.rc1             │ smack-experimental
277 │ Active │  80 │ 1.1.4.c               │ Apache ServiceMix :: Bundles :: xpp3
278 │ Active │  80 │ 0.2                   │ hsluv
279 │ Active │  80 │ 4.5.0.rc1             │ smack-im
280 │ Active │  80 │ 1.1.0                 │ jxmpp-util-cache
281 │ Active │  80 │ 4.5.0.rc1             │ smack-sasl-javax
282 │ Active │  80 │ 4.5.0.rc1             │ smack-core
283 │ Active │  80 │ 4.5.0.rc1             │ smack-java11
284 │ Active │  80 │ 4.5.0.rc1             │ smack-xmlparser-xpp3
285 │ Active │  80 │ 5.2.0.202604040549    │ openHAB Add-ons :: Bundles :: XMPPClient Binding

openhab.log (7.8 KB)

Is it possible to downgrade to 4.3.3 or try 4.4.8? I can help with testing.

The strange thing is we need to active every detail where previously this was done automatically.