Subject: Error Connecting to lightwitch.org
Hello and thank you.
I'm using your ConsoleClient sample program and changed to:
XmppClientConnection xmppCon = new XmppClientConnection("lightwitch.org");
Google talk works fine. And I can log into lightwitch.org from an Android client (Xabber). Here is the xml stream. I must be missing something:
Enter you Jid (user@server.com):
XXXXXXXX@lightwitch.org
Enter password for 'XXXXXXXX@lightwitch.org':
YYYYYYYY
I'm using your ConsoleClient sample program and changed to:
XmppClientConnection xmppCon = new XmppClientConnection("lightwitch.org");
Google talk works fine. And I can log into lightwitch.org from an Android client (Xabber). Here is the xml stream. I must be missing something:
Enter you Jid (user@server.com):
XXXXXXXX@lightwitch.org
Enter password for 'XXXXXXXX@lightwitch.org':
YYYYYYYY
- Send: <stream:stream to='lightwitch.org' xmlns='jabber:client' xmlns:stream='htt
- p://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
- Recv: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="e
- n" id="f250656a-e188-4c71-a338-494dddf0c1a5" from="lightwitch.org" version="1.0"
- >
- Recv: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls
- xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><mechanisms xmlns="urn:ietf:params:xm
- l:ns:xmpp-sasl"><mechanism>SCRAM-SHA-1</mechanism></mechanisms></stream:features
- >
- Send: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
- Recv: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
- Send: <stream:stream to='lightwitch.org' xmlns='jabber:client' xmlns:stream='htt
- p://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
- Recv: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="e
- n" id="0c91bbe8-3c79-41d8-9662-0c1cda1b7d99" from="lightwitch.org" version="1.0"
- >
- Recv: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><mechanis
- ms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-1</mechanism><m
- echanism>PLAIN</mechanism></mechanisms></stream:features>
- Send: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">XXX</auth>
- Recv: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
- Send: <stream:stream to='lightwitch.org' xmlns='jabber:client' xmlns:stream='htt
- p://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
- Recv: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="e
- n" id="357c3b1c-8322-4955-9f0f-9843ee16b17f" from="lightwitch.org" version="1.0"
- >
- Recv: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><ver xmln
- s="urn:xmpp:features:rosterver" /><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"
- ><required /></bind><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><option
- al /></session><c xmlns="http://jabber.org/protocol/caps" node="http://lightwitc
- h.org/metronome" ver="P9PJszr3/Ggzh4twC5j/sbMCktM=" hash="sha-1" /></stream:feat
- ures>
- Send: <iq id="agsXMPP_1" type="set" to="lightwitch.org"><bind xmlns="urn:ietf:pa
- rams:xml:ns:xmpp-bind"><resource>agsXMPP</resource></bind></iq>
- Recv: <iq xmlns="jabber:client" id="agsXMPP_1" type="error" from="lightwitch.org
- "><error type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-s
- tanzas" /></error></iq>

Edit reason: fixed code formatting, please format you code properly in upcoming posts.