Hi all,
I’‘m working with smack 2.1 and 2.2, I’'m developing a java client to connect to my jabber server ‘‘sun1.org’’.
My server is running on port 5222.[/b]
I’‘ve tried with PLAIN and SSL connections. But I’'m not able to logged in.
From Exodus I’'m able to logged into my server sun1.org - PLAIN connection only
I’'m providing the trace here,
With PLAIN connection:[/b]
code:[/b]
XMPPConnection connection = new XMPPConnection(“sun1.org”, 5222);
connection.login(userName, password, “MyClient”);
I got below exception
org.xmlpull.v1.XmlPullParserException: start tag not allowed in epilog but got i (position: END_TAG seen …</stream:features><i… @1:187) /b
Debugger Trace:[/b]
Sent[/b]
Received[/b]
With SSL connection:[/b]
code:[/b]
XMPPConnection connection = new SSLXMPPConnection(“sun1.org”, 5222);
connection.login(userName, password, “MyClient”);
I got below exception
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?[/b]
Debugger Trace:[/b]
Sent[/b] <stream:stream to=“sun1.org” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams”>
Received[/b] - I didnt get any response from server.
I’'ve tried with Thread.sleep(1000); before Login also, but no use.
Is there any thing wrong with my code or smack api?
Any help would be appreciated greatly.
Thanks & regards,
Rajesh Manem