Hello,
I am new to jabber/IM … so this might be some silly mistake that I am doing … Please help me.
I am trying to connect to Oracle RTC and send message to another user. I used the simple code given in SMACK (2.1.1) document:
XMPPConnection connection = new SSLXMPPConnection(“myserver.com”,5223,“MyIM”);
connection.login(“username1”, “pwd”);
connection.createChat(“username2”).sendMessage(“Test”);
connection.close();
(using SSL as RTC server is SSL enabled)
I get the following error message :
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:320)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)
No response from the server.:
at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:58)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:430)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:389)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:370)
And Debug screen gives this:
Sent:
Received:
<stream:stream from=’‘MyIM’’ xmlns=’‘jabber:client’’ id=’‘1132FCB49809A’’ xmlns:stream=’‘http://etherx.jabber.org/streams’’>
stream:errorConnection is closing</stream:error></stream:stream>
I tried using XMPPConnection instead of SSLXMPPConnection and got the following error message:
Connection failed. No response from server.:
at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:166)
at org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:874)
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:293)
at org.jivesoftware.smack.XMPPConnection.
Nothing in Received.
So how do I fix this ?
Thanks in advance …
UnIM