Smack- Facing problem in receiving messages from another client

Hi,

I am very new to Openfire Server and Smack API.

I am trying to chat with another client through a console based java application. The msgs are not displayed in the receiver’s console.
I can see the packets are received in the (receiver’s) debugger window, but processMessage() of MessageListener is not getting invoked, on receiving the msg from another client.

However, the processMessage() is getting invoked, on chatting with same userID as both sender and receiver (as just an echo program).

Please provide me some insight on this problem.

Thanks,
Mari