Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
  #2 (permalink)  
Old April 18th, 2011, 07:41 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.