I am trying to connect to an Xmpp chat on a local OpenFire server. I have Pidgin and I can check if OpenFire is working. My camel route looks something like this:
from("{{chat.timer}}")
.setBody(constant("I will win!"))
.to("xmpp://superman@localhost:5222/password=secret&room=room1@conference.localhost")
However, I get errors in my ServiceMix log:
13:33:20,772 | ERROR | data.flow.start] | DefaultErrorHandler | 90 - org.apache.camel.camel-core - 2.8.3 | Failed delivery for exchangeId....
.
.
.
Caused by: java.lang.NoSuchMethodError: org.jivesoftware.smackx.muc.MultiUserChat.getServiceNames(Lorg/jivesoftware/smack/XMPPConnection;)Ljava/util/Collection;
at org.apache.camel.component.xmpp.XmppEndpoint.resolveRoom(XmppEndpoint.java:197)
And a few more "NoSuchMethodErrors" that I think are true.
I have smack 3.2.0.1 installed in ServiceMix, I don’t understand why these errors appear. I can send XMPp messages to users via Camel, this is the first time you use chat. Any help would be greatly appreciated.
source
share