powered by Jive Software

NotAPubSubNodeException OMEMO inittialization issue

Smack version 4.2.2
Omemo version 4.2.1-beta

When I initialize OmemoManager,I’m getting following exception, please support me I’m stuck here.

omemoManager = OmemoManager.getInstanceFor(connection);
omemoManager.addOmemoMessageListener(this);
omemoManager.initialize();

Unresolved exception class when finding catch block: org.jivesoftware.smackx.pubsub.PubSubAssertionError$DiscoInfoNodeAssertionError
12-07 16:12:46.870 5622-5722/com.versionchat.versionchat W/System.err: org.jivesoftware.smackx.pubsub.PubSubException$NotAPubSubNodeException
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at org.jivesoftware.smackx.pubsub.PubSubManager.getNode(PubSubManager.java:254)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at org.jivesoftware.smackx.pubsub.PubSubManager.getLeafNode(PubSubManager.java:331)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at org.jivesoftware.smackx.omemo.OmemoService.fetchDeviceListNode(OmemoService.java:435)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at org.jivesoftware.smackx.omemo.OmemoService.fetchDeviceList(OmemoService.java:452)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at org.jivesoftware.smackx.omemo.OmemoService.refreshOwnDeviceList(OmemoService.java:468)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at org.jivesoftware.smackx.omemo.OmemoService.initialize(OmemoService.java:225)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at org.jivesoftware.smackx.omemo.OmemoManager.initialize(OmemoManager.java:189)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at com.versionchat.versionchat.xmpp.omemo.OmemoMessenger.(OmemoMessenger.java:86)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at com.versionchat.versionchat.xmpp.omemo.OmemoMessenger.sendMessage(OmemoMessenger.java:59)
12-07 16:12:46.871 5622-5722/com.versionchat.versionchat W/System.err: at com.versionchat.versionchat.xmpp.XMPPConnectionManager$19.run(XMPPConnectionManager.java:1768)

I think you cannot use different smack versions together. If you want to use smack-omemo, stick to smack version 4.2.1-beta.

Thank you for your support, I already found and fixed it :wink:

1 Like

Can you mark my reply as solution if it solved your issue?