Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
|
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 November 25th, 2012, 05:09 AM
Authorized User
 
Join Date: Nov 2012
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Urgent help needed to fix error code='404' in MUC

Hi,

I am getting 404 error while doing group chat. Below is the log

<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'>
cmVhbG09IndlYjA2LnByb3ZpZGVudC5ubCIsbm9uY2U9IjIybz JoTWFITnMzM25jSUE4ZDUrSUl2MG56b0JDMXJOdHNzRGlkbE0i LHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bW Q1LXNlc3M=
</challenge>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
dXNlcm5hbWU9ImthdXN0dWJoNDIwIixyZWFsbT0id2ViMDYucH JvdmlkZW50Lm5sIixub25jZT0iMjJvMmhNYUhOczMzbmNJQThk NStJSXYwbnpvQkMxck50c3NEaWRsTSIsY25vbmNlPSIxNTRkM2 ZiMTIwMzU5ZjE1Y2NlZmRjMTg3ZmIzZjEzNyIsbmM9IjAwMDAw MDAxIixxb3A9ImF1dGgiLGRpZ2VzdC11cmk9InhtcHAvd2ViMD YucHJvdmlkZW50Lm5sIixyZXNwb25zZT0iNzBjYWZjYzA0YmZk MmNhMGJiZWQwM2E5ODY4MWNjODMiLGNoYXJzZXQ9InV0Zi04Ig ==
</response>
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
cnNwYXV0aD1jZDk2MDU3YWUwNjNmZGJjNzBhN2Q1Mjg3NjY0Nj diYQ==
</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'/>
</iq>
<iq xmlns='jabber:client'
type='result'
id='_bind_auth_2'
to='web06.provident.nl/556f83de'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>
[email protected]/556f83de
</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='[email protected]/556f83de'/>
<presence xmlns='jabber:client'>
<priority>
-1
</priority>
</presence>
<presence to='datingsite/kaustubh420'
xmlns='jabber:client'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
<presence xmlns='jabber:client'
from='[email protected]/5e37b830'
to='[email protected]/556f83de'>
<priority>
-1
</priority>
</presence>
<presence xmlns='jabber:client'
to='[email protected]/556f83de'
from='datingsite/kaustubh420'
type='error'>
<error code='404'
type='cancel'>
<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</presence>

<message to='datingsite'
type='groupchat'
xmlns='jabber:client'>
<body>
dfdf
</body>
</message>
<message xmlns='jabber:client'
to='[email protected]/556f83de'
from='datingsite'
type='error'>
<error code='404'
type='cancel'>
<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</message>


Thanks
 
Old November 25th, 2012, 05:32 AM
Authorized User
 
Join Date: Nov 2012
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I changes the room name as [email protected]er and got the below error

<presence xmlns='jabber:client'
to='[email protected]/627c870b'
from='[email protected]/kaustubh420'
type='error'>
<x xmlns='http://jabber.org/protocol/muc'/>
<error code='401'
type='auth'>
<not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</presence>
<presence xmlns='jabber:client'
type='unavailable'
from='[email protected]/556f83de'
to='[email protected]/627c870b'/>
<message to='[email protected]'
type='groupchat'
xmlns='jabber:client'>
<body>
dfgfdg
</body>
</message>
<message xmlns='jabber:client'
to='[email protected]/627c870b'
type='error'
from='[email protected]'>
<body>
dfgfdg
</body>
<error code='406'
type='modify'>
<not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</message>
 
Old November 26th, 2012, 12:39 AM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

It says you are not authorized. Apparently you are not allowed to create rooms, or if that rooms exists, you are not allowed to join it.
 
Old November 26th, 2012, 02:22 AM
Authorized User
 
Join Date: Nov 2012
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I logged in as a admin and created rooms and services as it is mentioned and do as we set permissions. Please suggest if there is any thing extra to do.

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
404 Error's Code on Tomcat/Eclipse unodellacombriccola Apache Tomcat 1 March 5th, 2009 03:24 AM
v urgent..Error: not all code paths return a value prv299 .NET Web Services 1 May 20th, 2008 06:17 AM
Need Code fix HemaRaj Javascript 5 January 31st, 2008 04:41 PM
urgent help needed sugandh .NET Web Services 0 January 10th, 2004 12:44 PM
URGENT Help needed scott Access 12 November 16th, 2003 03:13 PM





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