Error connecting to Oracle RTC with smack-2.2.1


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(“”,5223,“MyIM”);

connection.login(“username1”, “pwd”);



(using SSL as RTC server is SSL enabled)

I get the following error message :

at org.jivesoftware.smack.PacketReader.parsePackets(

at org.jivesoftware.smack.PacketReader.access$000(

at org.jivesoftware.smack.PacketReader$

No response from the server.:

at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:58)

at org.jivesoftware.smack.XMPPConnection.login(

at org.jivesoftware.smack.XMPPConnection.login(

at org.jivesoftware.smack.XMPPConnection.login(

And Debug screen gives this:



<stream:stream from=’‘MyIM’’ xmlns=’‘jabber:client’’ id=’‘1132FCB49809A’’ xmlns:stream=’‘’’>

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(

at org.jivesoftware.smack.XMPPConnection.init(

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 …