java - Getting this error while trying to connect facebook chat using smack -


When using smile trying to add Facebook chat to get this error. Used jars Smack 3.3.1.jar, smackx 3.3.1.jar

  exception in thread "main" java.lang.AbstractMethodError: org.jivesoftware.smackx.ServiceDiscoveryManager $ 1.connectionCreated ( on Lorg / on org.jivesoftware.smack.XMPPConnection on org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration (XMPPConnection.java:604) V org.jivesoftware.smack.XMPPConnection.initConnection (XMPPConnection.java:652)); jivesoftware / Smack / connection .connect com.FacebookChatSample.main (XMPPConnection.java:1022) (FacebookChatSample.java:30)    

I had the same problem I have your price package have not been put in your pom.xml

I've used the following Meven dependency: < Pre> & lt; Dependency & gt; & Lt; Group & gt; Jivesoftware & lt; / Group & gt; & Lt; ArtifactId & gt; Shaker & lt; / ArtifactId> & Lt; Version & gt; 3.1.0 & lt; / Edition & gt; & Lt; / Dependencies & gt;

When I try to connect to your server, I found the error when I replaced it with:

  & lt; Dependency & gt; & Lt; Group & gt; org.igniterealtime.smack & lt; / Group & gt; & Lt; ArtifactId & gt; smackx & lt; / ArtifactId> & Lt; Version & gt; 3.2.1 & lt; / Edition & gt; & Lt; / Dependencies & gt;   

It worked

Note: circle of dependence was another entry from begging and should be left like this: < / p>

  & lt; Dependency & gt; & Lt; Group & gt; org.igniterealtime.smack & lt; / Group & gt; & Lt; ArtifactId & gt; Shaker & lt; / ArtifactId> & Lt; Version & gt; 3.2.1 & lt; / Edition & gt; & Lt; / Dependencies & gt;   

Note 2: () There I did not use anything from explixitly smackx, it is used in XMPPConnection.initConnection where it informs all ConnectionCreationListener listeners Tries to do that a connection has just been established.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -