Not logged in. · Lost password · Register
Forum: MatriX RSS
Cannot tell if I am connected or not and no contacts are displayed, so no chat is possible.
Avatar
jmaines2 #1
Member since Feb 2010 · 13 posts
Group memberships: Members
Show profile · Link to this post
Subject: Cannot get Matirx MiniClientWM example to work
First, I have not changed any of the sample code. I am running Visual Studio 2008 and Windows Mobile 6.5. The code is deployed to a Windows Mobile Virtual device. I have also tried deploying the code to an LG Expo with the same results.

When running the application, I am entering the following information:
            Jabber ID = "myusername@gmail.com" //I replaced my actual user name for this post
            Password = "mypassword" //I replaced my actual password for this post
                        Hostname: "talk.google.com" //according to the screen directions
No contacts are displayed to chat with although I have another account open on a PC window.

I am getting the following output from the XML-Debug tab:

SEND: <stream:stream xmlns:stream="http://etherex.jabber.org/streams" xmlns="jabber:client" to="gmail.com" version="1.0">
RECV:<stream:stream xmlns:stream="http://etherex.jabber.org/streams" from="gmail.com" id="3E11501BDF000FAA" version="1.0" xmlns="jabber:client"...

Any ideas why this appears to not be working?
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please try the latest binary from here:
http://www.ag-software.net/downloads.html

Have you tried another XMPP account than a GTalk account?
Can you please post the complete logs?

Alex
Avatar
jmaines2 #3
Member since Feb 2010 · 13 posts
Group memberships: Members
Show profile · Link to this post
I was using the most current binary to run the sample. I'm going to try to use another account today. I'm having a Jabber server setup right now. I'll send the logs if this doesn't work. Is there some reason that this doesn't work with GTalk though?
Avatar
jmaines2 #4
Member since Feb 2010 · 13 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Here is the full XML output from the steps that I have taken:

SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="gmail.com" version="1.0" >
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="gmail.com" id="F0C4A465D163410D" version="1.0" xmlns="jabber:client" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
    <required />
  </starttls>
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>X-GOOGLE-TOKEN</mechanism>
  </mechanisms>
</stream:features>
SEND: <presence xmlns="jabber:client">
  <status></status>
  <priority>0</priority>
</presence>
SEND: <presence xmlns="jabber:client">
  <show>chat</show>
  <status></status>
  <priority>0</priority>
</presence>
SEND: <iq id="MX_1" type="set" xmlns="jabber:client">
  <query xmlns="jabber:iq:roster">
    <item jid="pulsecub@gmail.com" name="Peter" />
  </query>
</iq>
SEND: <presence type="subscribe" to="pulsecub@gmail.com" xmlns="jabber:client" />
Avatar
Alex #5
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this cannot be the full trace, there are missing packets.
Avatar
jmaines2 #6
Member since Feb 2010 · 13 posts
Group memberships: Members
Show profile · Link to this post
This is the output from the XML-Debug tab. Is there somewhere else I should be getting this log information?
Avatar
Alex #7
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
no, but there is no SASL-Auth, TLS negotiation and roster request at all. And you are sending packets directly after the stream features. This looks to me like there is a problem in your code.

Alex
Avatar
jmaines2 #8
Member since Feb 2010 · 13 posts
Group memberships: Members
Show profile · Link to this post
As I said above, I am using the exact code from the MiniClientWM example. Are there changes that I should make to the sample to get it to work properly then?
Avatar
Alex #9
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
no, the code should work without any changes. Make sure that StartTls is true for Gtalk, and keep in mind that the TLS support is still experimental.

Alex
Avatar
jmaines2 #10
Member since Feb 2010 · 13 posts
Group memberships: Members
Show profile · Link to this post
It is ABSOLUTELY something with GTalk from this side. I setup a Jabber account and I can send, receive, and add contacts (including to/from GTalk contacts) using the sample code (Maybe this needs a disclaimer for now). Here is the log information (not trying to use GTalk) that you were probably expecting to see:

SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="jabber.iitsp.com" version="1.0" >
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="jabber.iitsp.com" id="d40f42fa" xml:lang="en" 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:xml:ns:xmpp-sasl">
    <mechanism>DIGEST-MD5</mechanism>
    <mechanism>PLAIN</mechanism>
    <mechanism>CRAM-MD5</mechanism>
  </mechanisms>
  <compression xmlns="http://jabber.org/features/compress">
    <method>zlib</method>
  </compression>
  <auth xmlns="http://jabber.org/features/iq-auth" />
</stream:features>
SEND: <auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09ImphYmJlci5paXRzcC5jb20iLG5vbmNlPSJHZFVjc0YwV29GWmdwTG1zRzZhUFR3ZFRPN2FDN3g5eGw4LzZBdmpPIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9ImptYWluZXMyIixyZWFsbT0iamFiYmVyLmlpdHNwLmNvbSIsbm9uY2U9IkdkVWNzRjBXb0ZaZ3BMbXNHNmFQVHdkVE83YUM3eDl4bDgvNkF2ak8iLGNub25jZT0iMjk3Y2RmMGIzZTQxNDcxMjEzNDJmOTBhOWEyMjU1NzczODAzYjAxNDFkMDY2NTg1OTYwMWI4YjY2MGNkODcwYiIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9qYWJiZXIuaWl0c3AuY29tIixjaGFyc2V0PXV0Zi04LHJlc3BvbnNlPWVjOWEyODBkOWI0ZjkxNjFlNjBiZWQzNDgwNWVjNTM4</response>
RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD00NTg3NjAzZDFlM2JkNTk2YjE2MzcwMzFkMWQyNTIwZA==</success>
SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="jabber.iitsp.com" version="1.0" >
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="jabber.iitsp.com" id="d40f42fa" lang="en" version="1.0" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <compression xmlns="http://jabber.org/features/compress">
    <method>zlib</method>
  </compression>
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</stream:features>
SEND: <iq id="MX_1" type="set" xmlns="jabber:client">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <resource>MatriX Mobile</resource>
  </bind>
</iq>
RECV: <iq type="result" id="MX_1" to="jabber.iitsp.com/d40f42fa" xmlns="jabber:client">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <jid>jmaines2@jabber.iitsp.com/MatriX Mobile</jid>
  </bind>
</iq>
SEND: <iq id="MX_2" type="set" xmlns="jabber:client">
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>
RECV: <iq type="result" id="MX_2" to="jmaines2@jabber.iitsp.com/MatriX Mobile" xmlns="jabber:client">
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>
SEND: <iq id="MX_3" type="get" xmlns="jabber:client">
  <query xmlns="jabber:iq:roster" />
</iq>
RECV: <iq type="result" id="MX_3" to="jmaines2@jabber.iitsp.com/MatriX Mobile" xmlns="jabber:client">
  <query xmlns="jabber:iq:roster">
    <item jid="melissa9603@gmail.com" name="Melissa" subscription="both" />
  </query>
</iq>
SEND: <presence xmlns="jabber:client">
  <status></status>
  <priority>0</priority>
</presence>
RECV: <presence from="melissa9603@gmail.com/Talk.v1040ED463B0" to="jmaines2@jabber.iitsp.com/MatriX Mobile" xmlns="jabber:client">
  <priority>24</priority>
  <c xmlns="http://jabber.org/protocol/caps" node="http://www.google.com/xmpp/client/caps" ver="1.0.0.104" ext="share-v1 sidebar voice-v1" />
  <x xmlns="jabber:x:delay" stamp="20100224T18:09:08" />
  <status />
  <x xmlns="vcard-temp:x:update">
    <photo />
  </x>
</presence>
SEND: <message type="chat" to="melissa9603@gmail.com" xmlns="jabber:client">
  <body>Hello</body>
</message>
RECV: <message to="jmaines2@jabber.iitsp.com/MatriX Mobile" type="chat" id="49" from="melissa9603@gmail.com/Talk.v1040ED463B0" xmlns="jabber:client">
  <body>Hi</body>
  <active xmlns="http://jabber.org/protocol/chatstates" />
  <x value="disabled" xmlns="google:nosave" />
  <record otr="false" xmlns="http://jabber.org/protocol/archive" />
</message>

Thanks for all of your help.

Also, the company I work for is considering purchasing a Matrix license; but they are curious about the turnaround time for support questions. For my purposes right now, the forum has been sufficiently fast. Is there another way to contact with an expected turnaround time?
Avatar
Alex #11
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by jmaines2:
It is ABSOLUTELY something with GTalk from this side. I setup a Jabber account and I can send, receive, and add contacts (including to/from GTalk contacts) using the sample code (Maybe this needs a disclaimer for now). Here is the log information (not trying to use GTalk) that you were probably expecting to see:
GTalk requires a secure connection for the authentication. According to your log you still have TLS disabled (xmppClient.StartTls) which means you can't authenticate against GTalk.
Because the CF still has no SslStream and MatriX is using WinCe Apis to setup a secure connection the TLS support is still experimental and makes problems under some circumstances.

Quote by jmaines2:
Also, the company I work for is considering purchasing a Matrix license; but they are curious about the turnaround time for support questions. For my purposes right now, the forum has been sufficiently fast. Is there another way to contact with an expected turnaround time?
Each license includes professional email support. But we also try to answer all questions here in the forums as fast as possible.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS