powered by Jive Software

Problem receiving messages

Hi,

I just wanted to implement a bot which repeats everything he gets. Starting the connection and sending messages works fine but I have a problem with reveiving messages. This is my messageListener:

public void processMessage(Chat chat, Message message) {
chat.sendMessage(message.getBody());
}

When I send a message to my bot nothing happens. I run the debugger and I receive the messages so I don’t understand why processMessage isn’t executed.

Thanks for your help

Edit: Perhaps this message from the debugger helps a bit:

Test<nos:x value=“disabled” xmlns:nos=“google:nosave”/><arc:record otr=“false” xmlns:arc=“http://jabber.org/protocol/archive”/>