Wrox Programmer Forums
|
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2011, 02:56 PM
Registered User
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default [OpenFire] Client provided invalid session ?

Hi everyone,
I posted this in the OpenFire community, too.

The problem is the following: after less more than a minute of connection, I get disconnected by the server. I am using Openfire 3.7.0 Beta and the latest Strophe.

In the OpenFire warnings, I see after disconnection:
Code:
2011.03.01 22:53:43 Deliverable unavailable for 3631268666 
2011.03.01 22:53:44 Client provided invalid session: ea84fe08. [10.211.55.2]
And the output in, for instance, Peek is the following:
Code:
<stream:features>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>
DIGEST-MD5
</mechanism>
<mechanism>
PLAIN
</mechanism>
<mechanism>
ANONYMOUS
</mechanism>
<mechanism>
CRAM-MD5
</mechanism>
</mechanisms>
<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>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
      mechanism='DIGEST-MD5'/>
<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
cmVhbG09InBvbmdlbGxzLmxvY2FsIixub25jZT0iQU9vOUJrc2RBVmQ0ZTNSbGZBcG5TRnptcldjM0xHaFI5MW05allGViIscW9wPSJhdXRoIixjaGFyc2V0PXV0Zi04LGFsZ29yaXRobT1tZDUtc2Vzcw==
</challenge>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
dXNlcm5hbWU9InRlc3QiLHJlYWxtPSJwb25nZWxscy5sb2NhbCIsbm9uY2U9IkFPbzlCa3NkQVZkNGUzUmxmQXBuU0Z6bXJXYzNMR2hSOTFtOWpZRlYiLGNub25jZT0iZDQxZDhjZDk4ZjAwYjIwNGU5ODAwOTk4ZWNmODQyN2UiLG5jPSIwMDAwMDAwMSIscW9wPSJhdXRoIixkaWdlc3QtdXJpPSJ4bXBwL3BvbmdlbGxzLmxvY2FsIixyZXNwb25zZT0iYjMwYThhZGI2ODE1NTM4YjRmMTA2NGRiNjZmMWQ4YjciLGNoYXJzZXQ9InV0Zi04Ig==
</response>
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
cnNwYXV0aD01NDVhZDc0YWEyZTNlNTUzMDA0ZTNiZDdmNGMwYzUyNQ==
</success>
<stream:features>
<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>
<iq type='set'
    id='_bind_auth_2'
    xmlns='jabber:client'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>
console
</resource>
</bind>
</iq>
<iq xmlns='jabber:client'
    type='result'
    id='_bind_auth_2'
    to='pongells.local/ea84fe08'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>
test@pongells.local/console
</jid>
</bind>
</iq>
<iq type='set'
    id='_session_auth_2'
    xmlns='jabber:client'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
<iq xmlns='jabber:client'
    type='result'
    id='_session_auth_2'
    to='test@pongells.local/console'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
<presence xmlns='jabber:client'>
<priority>
10
</priority>
</presence>
<presence xmlns='jabber:client'>
<priority>
10
</priority>
</presence>
<presence xmlns='jabber:client'
          type='unavailable'/>
After this I am disconnected.

Does anyone have any insight on this? Thanks.
 
Old April 18th, 2011, 07:41 PM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

It's hard to guess why openfire disconnected you without more debugging info. If you can post the debug logs (override the Strophe.log function with your own handler), I may be able to figure out what's going wrong.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello example connected user is always offline in openfire babyfool BOOK: Professional XMPP Programming with JavaScript and jQuery 3 August 21st, 2014 09:56 AM
BOSH, Strophe, and Openfire iowadeifan BOOK: Professional XMPP Programming with JavaScript and jQuery 11 March 31st, 2014 03:08 PM
Chapter: 1 (You provided invalid data) kmyousafzai BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 14 May 31st, 2011 12:13 PM
Removing a stateful session bean from client code noman77 J2EE 0 February 24th, 2005 01:55 AM
How do I get my current client Session id ? badgolfer ASP.NET 1.0 and 1.1 Basics 1 October 25th, 2004 08:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.