Jabber connection fails (NS_ERROR_XPC_JS_THREW_JS_OBJECT)

Bug #229697 reported by pse
2
Affects Status Importance Assigned to Milestone
SamePlace
Confirmed
Undecided
Unassigned

Bug Description

I tried to use Sameplace from inside Thunderbird. But trying to connect to a jabber service fails with the exceptions listed below.

System information:

 SamePlace: 0.9.2.2008040512
 xmpp4moz: 0.6.2.2008042012
 OS: Linux
 Application: Thunderbird 2.0.0.14 (2008050517)

Latest relevant errors from console:

 [JavaScript Error: "[Exception... "'Error: Unhandled case.' when calling method: [nsIXMPPCacheService::receive]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://xmpp4moz/content/service/client_service.js :: anonymous :: line 172" data: no]" {file: "chrome://xmpp4moz/content/service/client_service.js" line: 172}]
 [JavaScript Error: "[Exception... "'Error: Unhandled case.' when calling method: [nsIXMPPCacheService::receive]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://xmpp4moz/content/service/client_service.js :: anonymous :: line 172" data: no]" {file: "chrome://xmpp4moz/content/service/client_service.js" line: 172}]
 [JavaScript Error: "[Exception... "'Error: Unhandled case.' when calling method: [nsIXMPPCacheService::receive]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://xmpp4moz/content/service/client_service.js :: anonymous :: line 172" data: no]" {file: "chrome://xmpp4moz/content/service/client_session.js" line: 104}]

Revision history for this message
Massimiliano Mirra (bard-hyperstruct) wrote :

Following up from chatroom conversation, where you mentioned the server is swissjabber.eu, the issue is probably that it does not send the <bind> feature we are relying on during the authentication procedure:

DATA <<< <stream:features xmlns:stream="http://etherx.jabber.org/streams"><register xmlns="http://jabber.org/features/iq-register"/><auth xmlns="http://jabber.org/features/iq-auth"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/></stream:features>

For comparison, this is what sameplace.cc sends:

DATA <<< <stream:features xmlns:stream="http://etherx.jabber.org/streams"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>

I'll check if I can support that without too much messing in the code...

Changed in sameplace:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.