powered by Jive Software

Openfire connection error

android

#1

Hello, everyone. I have a problem with Openfire connection. I searched for a long time and couldn’t find the reason. Can you help me? The error message is as follows:

08-07 17:51:43.192 10925-10925/com.travelsky.mrt.demo.openfiredemo E/ProviderFileLoader: Could not find provider class
java.lang.ClassNotFoundException: Didn’t find class “org.jivesoftware.smackx.chatstates.packet.ChatStateExtension$Provider” on path: DexPathList[[zip file “/data/app/com.travelsky.mrt.demo.openfiredemo-2.apk”],nativeLibraryDirectories=[/data/app-lib/com.travelsky.mrt.demo.openfiredemo-2, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at org.jivesoftware.smack.provider.ProviderFileLoader.(ProviderFileLoader.java:77)
at org.jivesoftware.smack.initializer.UrlInitializer.initialize(UrlInitializer.java:53)
at org.jivesoftware.smack.SmackInitialization.loadSmackClass(SmackInitialization.java:232)
at org.jivesoftware.smack.SmackInitialization.parseClassesToLoad(SmackInitialization.java:193)
at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitialization.java:163)
at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitialization.java:148)
at org.jivesoftware.smack.SmackInitialization.(SmackInitialization.java:116)
at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:96)
at org.jivesoftware.smack.ConnectionConfiguration.(ConnectionConfiguration.java:38)
at com.travelsky.mrt.demo.openfiredemo.helper.SmarkClient.initialiseConnection(SmarkClient.java:107)


#2

This is not a connection error; your sample code, com.travelsky.mrt.demo.openfiredemo, appears to rely on a class org.jivesoftware.smackx.chatstates.packet.ChatStateExtension$Provider that is not in your classpath.

YOu probably just need to ensure that Smack Extensions is in your classpath (https://mvnrepository.com/artifact/org.igniterealtime.smack/smack-extensions)

Greg