Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Page:  1  2  next
Avatar
ghostknight #1
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Subject: OnBind never fires
I'm using Matrix Mobile and the problem is, that OnBind event never fires. Dumping traffic, I see, that bind stanzas exchange completed sucessfully, but the event wasn't fired. What am I doing wrong?

Here is xml exchange log:
http://pastebin.com/kHJsBP4Q

Many thanks in advance!
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please post your source codes as well.

  • Are you subscribed to all Error handlers?
  • Are you executing any code which updates your UI without invoking it in the OnBind handler?

Your Xml log looks fine. MatriX should raise the OnBind event when the result comes in and proceed with sending the session request.

Alex
Avatar
Alex #3
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in your pastebin log the closing tag of the iq is missing. But I guess this was an copy and paste mistake, otherwise Matrix would not fire the OnReceiveXml handler. The to attribute is wrong, you can file this as well as a bug to your server vendor. But this should not be problem for MatriX, the to gets ignored there when checking the result.

  1. <iq type="result" id="MX_1" to="mobile-central/b4519be8" xmlns="jabber:client">
  2.  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
  3.     <jid>maxoptra110-driver03-emergency@mobile-central/MatriX-Mobile</jid>
  4.  </bind>
  5. </iq>
Avatar
ghostknight #4
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Alex,

Yes, missing closing tag is copy-paste issue while copying to pastebin.
Here is my source code http://pastebin.com/PaQZzxmg. Everything interesting is in Open method. The other are just empty handlers to set breakpoints to.
No error handler was triggered, but the OnBind handler wasn't triggered too.  :(
And what is wrong with "to" attribute in last stanza?
Avatar
Alex #5
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by ghostknight:
No error handler was triggered, but the OnBind handler wasn't triggered too.  :(
Please remove all code in your OnBind handler and try again.
I have just tried the MiniClient on a Windows Mobile 6 device and it works fine for me. Also the OnBind event fires fine here.

Quote by ghostknight:
And what is wrong with "to" attribute in last stanza?
it shouldn't be there at all. And when there is one it should be correct. In your case its present and totally wrong ;-)
see: http://xmpp.org/rfcs/rfc6120.html#examples-c2s-bind
Avatar
ghostknight #6
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Quote by Alex:
Please remove all code in your OnBind handler and try again.
I have just tried the MiniClient on a Windows Mobile 6 device and it works fine for me. Also the OnBind event fires fine here.


I've done it, but it didn't help. Is there a possibility, that it is caused by OS version? I'm using Windows CE 6.0
Avatar
Alex #7
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by ghostknight:
Is there a possibility, that it is caused by OS version? I'm using Windows CE 6.0

I don't think so. This event is not different than the other events. So I see no reason why it does not fire.
We have some customers which also use Windows CE 6.0. There were no problems reported yet.
We have seen problems before when not the latest Service Packs of the .NET Framework 3.51 were installed on the devices.

Please download the latest CF release 1.5.4.1 and try it again. And please attach Xml logs again.
Please try also with AutoRoster and AutoPresence enabled, to see if this makes a difference.
You don't need to send the presence on your own, you can subscribe to the OnBeforeSendPresence handler and attach there you custom data before MatriX sends out the Presence packet.
Avatar
ghostknight #8
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Quote by Alex:
I don't think so. This event is not different than the other events. So I see no reason why it does not fire.
We have some customers which also use Windows CE 6.0. There were no problems reported yet.
We have seen problems before when not the latest Service Packs of the .NET Framework 3.51 were installed on the devices.

Please download the latest CF release 1.5.4.1 and try it again. And please attach Xml logs again.
Please try also with AutoRoster and AutoPresence enabled, to see if this makes a difference.
You don't need to send the presence on your own, you can subscribe to the OnBeforeSendPresence handler and attach there you custom data before MatriX sends out the Presence packet.

I've downloaded 1.5.4.1 and set AutoRoster and AutoPresence to true - this doesn't help.
My .NET CF version is 3.5.7283.0. Same as here http://www.microsoft.com/en-us/download/confirmation…?id=65 . Windows update doesn't offer any updates.
Here are xml logs. http://pastebin.com/ZV6cu2yX
Avatar
Alex #9
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  • Can you try another server? A public one jabber.org for example?
  • Can you create a test account for us on your server?
  • Can you try to debug your code on another Emulator? e.g. Windows Mobile 6 pro instead of CE?

sorry, I have no more ideas then. We have no CE 6.0 device here, and AFAIK there are no CE 6 emulator images available form Microsoft.
Avatar
ghostknight #10
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Alex,
I've tried another instance of our server, and a public server jabber.ru. Both cases with the same result. Seems to be WinCE/device problem.
I'm discussing opportunity to create a test account for you.
Unfortunately on my machine Windows Mobile emulators fails to see network adapters (thus I can't connect them to network). I have an old winmobile 6.0 device at home - I'll try this evening.

And you're right - there is no CE emulator at all, because CE is a modular platform and each vendor builds it's own "copy" of CE for specific device.

I'll come back with results of testing on WinMobile in a few hours.

What do you think - is it worth to try agsXMPP?
Avatar
Alex #11
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #9
Quote by Alex:
sorry, I have no more ideas then. We have no CE 6.0 device here, and AFAIK there are no CE 6 emulator images available form Microsoft.
I have not tried the latest agsXMPP codes on the CF in ages. So I don't know if the SVN trunk compiles for CF or not.
If it does then the advantage is that you have the complete sources and can debug it.
Avatar
ghostknight #12
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
I've tried Matrix on WinMobile 6.1 - same issue, OnBind never fires with public Jabber server... Looks very strange. :(
Probably I should try agsXMPP...
Avatar
ghostknight #13
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
agsXMPP using latest binaries (not sourcecode) works ok - OnBinded event fired. So, this is not pure device problem. It is probably Matrix problem...
This post was edited on 2013-10-07, 15:37 by ghostknight.
Avatar
Alex #14
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
agsXMPP uses the old CF 2.0. So I still think its a problem with the CF installation, because we had this before.
Can you make a Screenshot from the Control Panel => Software so that I can see your installed CF version (2.0 and 3.5)?
Avatar
ghostknight #15
Member since Oct 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Alex,

Here it is: http://gyazo.com/7ebce7e926f81185aca43b3c2f0ae3b1

My .NET CF version is 3.5.7283.0 as mentioned above.
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:
Page:  1  2  next