(I was requested to move this topic here, originally posted it on the networking thread)
Hello,
I am trying to build an application, where I would like to connect to a specific account of MSN/windows live messenger and send chat messages to other msn/hotmail/live IDs.
ConnectionConfiguration msnconn = new ConnectionConfiguration("messenger.hotmail.com", 1863);
XMPPConnection connection = new XMPPConnection(msnconn);
connection.connect();
/*connection.login("myusername@hotmail.com", "mypassword");
Presence presence = new Presence(Presence.Type.available);
connection.sendPacket(presence);
Message msg = new Message("user_to_whom_message_would_be_sent@hotmail.com", Message.Type.chat);
msg.setBody("message to be sent");
connection.sendPacket(msg);
The point is it works properly as I tried with googletalk but with msn no luck.
Getting error
java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:368)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
//==============================================================
I also tried the jml http://sourceforge.net/apps/trac/java-jml But the basic messenger itself is not working for me.
Thanks in advance for any help with this.
Regards.