I'm new at strophe & punjab (and xmpp for that matter). I'm trying to
connect to myn...@jabber.org...
My stack:
Strophe latest (in local javascript - file://...)
FF 3.5
Punjab latest (on localhost)
Python 2.6 + twisted
Windows XP
My code:
obj.conn = new Strophe.Connection('
http://localhost:5280/xmpp-
httpbind');
obj.conn.connect(iName, iPass, this.onConn);
Strophe gives a Status.CONNECTING event, and nothing else. After a
long while, I see a FF exception:
Error: uncaught exception: [Exception... "Component returned failure
code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]"
nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS
frame :: file:///C:/.../strophe.js :: anonymous :: line 2074" data:
no]
Attached is a segment of the punjab log.
Thanks for any assistance,
Liam
2009-09-27 01:43:02-0700 [HTTPChannel,0,127.0.0.1] HTTPB POST :
2009-09-27 01:43:02-0700 [HTTPChannel,0,127.0.0.1] <body
rid='
2284892250' xmlns=
http://jabber.org/protocol/httpbind'
to='
jabber.org' xml:lang='en' wait='60' hold='1' window='5'
content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0'
xmlns:xmpp='urn:xmpp:xbosh'/>
2009-09-27 01:43:02-0700 [HTTPChannel,0,127.0.0.1] Session Created :
fb40aac07d4351c9b1337abc7489d9e8 1254040982.92
2009-09-27 01:43:02-0700 [HTTPChannel,0,127.0.0.1]
================================== 1254040982.94 connect
==================================
2009-09-27 01:43:02-0700 [HTTPChannel,0,127.0.0.1] Starting factory
<punjab.session.Session object at 0x012D9650>
2009-09-27 01:43:03-0700 [-] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 2306
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2307
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2308
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2309
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2310
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2311
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2312
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'tisted.names.dns.DNSDatagramProtocol'> starting on 12024
2009-09-27 01:43:03-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Starting protocol <twisted.names.dns.DNSDatagramProtocol object at
0x0132BAD0>
2009-09-27 01:43:03-0700 [-] (Port 12024 Closed)
2009-09-27 01:43:03-0700 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x0132BAD0>
2009-09-27 01:43:04-0700 [Uninitialized] SID:
fb40aac07d4351c9b1337abc7489d9e8 => SEND: <stream:stream
xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:client'
to='
jabber.org' version='1.0'>
2009-09-27 01:43:04-0700 [XmlStream,client] SID:
fb40aac07d4351c9b1337abc7489d9e8 => RECV: <?xml version='1.0'?
><stream:stream xmlns='jabber:client' xmlns:stream='http://
etherx.jabber.orgstreams' id='1724237233' from='
jabber.org'
version='1.0' xml:lang='en'>
2009-09-27 01:43:04-0700 [XmlStream,client] SID:
fb40aac07d4351c9b1337abc7489d9e8 => RECV: <stream:features><starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='http://
jabber.org/features/compress'><method>zlib</method></
compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></
mechanisms><register xmlns='
http://jabber.org/features/iq-register'/></
stream:features>
2009-09-27 01:43:32-0700 [-] ==================================
fb40aac07d4351c9b1337abc7489d9e8 1254041012.73 startup timeout
=================================
2009-09-27 01:43:32-0700 [-]
RETURN HTTPB 1254041012.73:
2009-09-27 01:43:32-0700 [-] <body xmlns='
http://jabber.org/protocol/
httpbind' inactivity='60' secure='true' authid='1724237233'
content='text/xml; charset=utf-8' window='5' polling='15'
sid='fb40aac07d4351c9b1337abc7489d9e8' requests='2' wait='60'/>
2009-09-27 01:43:32-0700 [-] 127.0.0.1 - - [27/Sep/2009:08:43:31
+0000] "POST /xmpp-httpbind HTTP/1.1" 200 221 "-" "Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/
3.5.3"
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1] HEADERS
1254041012.75:
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1] {'origin': 'null',
'content-length': '219', 'accept-language': 'en-us,en;q=0.5', 'accept-
encoding': 'gzip,deflate', 'keep-alive': '300', 'accept': 'text/
html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'user-
agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3', 'accept-charset': 'ISO-8859-1
,utf-8;q=0.7,*;q=0.7', 'connection': 'keep-alive', 'pragma': 'no-
cache', 'cache-control': 'no-cache', 'host': 'localhost:5280',
'content-type': 'text/plain; charset=UTF-8'}
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1] HTTPB POST :
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1] <body
rid='
2284892250' xmlns='
http://jabber.org/protocol/httpbind'
to='
jabber.org' xml:lang='en' wait='60' hold='1' window='5'
content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0'
xmlns:xmpp='urn:xmpp:xbosh'/>
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1] Session Created :
3484038c9ab36d5d6f4936eb8b1ae3f7 1254041012.77
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1]
================================== 1254041012.77 connect
==================================
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1] Starting factory
<punjab.session.Session object at 0x0133C450>
2009-09-27 01:43:32-0700 [HTTPChannel,0,127.0.0.1] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 2315
2009-09-27 01:43:32-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2316
2009-09-27 01:43:33-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2317
2009-09-27 01:43:33-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2318
2009-09-27 01:43:33-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2319
2009-09-27 01:43:33-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2320
2009-09-27 01:43:33-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 2321
2009-09-27 01:43:33-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<class 'twisted.names.dns.DNSDatagramProtocol'> starting on 38263
2009-09-27 01:43:33-0700 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Startingprotocol <twisted.names.dns.DNSDatagramProtocol object at
0x0132BF50>
2009-09-27 01:43:33-0700 [-] (Port 38263 Closed)
2009-09-27 01:43:33-0700 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x0132BF50>
2009-09-27 01:43:33-0700 [Uninitialized] SID:
3484038c9ab36d5d6f4936eb8b1ae3f7 => SEND: <stream:stream
xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:client'
to='
jabber.org' version='1.0'>
2009-09-27 01:43:33-0700 [XmlStream,client] SID:
3484038c9ab36d5d6f4936eb8b1ae3f7 => RECV: <?xml version='1.0'?
><stream:stream xmlns='jabber:client' xmlns:stream='http://
etherx.jabber.org/streams' id='
2839805153' from='
jabber.org'
version='1.0' xml:lang='en'>
2009-09-27 01:43:33-0700 [XmlStream,client] SID:
3484038c9ab36d5d6f4936eb8b1ae3f7 => RECV: <stream:features><starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='http://
jabber.org/features/compress'><method>zlib</method></
compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></
mechanisms><register xmlns='
http://jabber.org/features/iq-register'/></
stream:features>
2009-09-27 01:44:02-0700 [-] ==================================
3484038c9ab36d5d6f4936eb8b1ae3f7 1254041042.73 startup timeout
==================================
2009-09-27 01:44:02-0700 [-]
RETURN HTTPB 1254041042.73:
2009-09-27 01:44:02-0700 [-] <body xmlns='
http://jabber.org/protocol/
httpbind' inactivity='60' secure='true' authid='
2839805153'
content='text/xml; charset=utf-8' window='5' polling='15'
sid='3484038c9ab36d5d6f4936eb8b1ae3f7' requests='2' wait='60'/>
2009-09-27 01:44:02-0700 [-] 127.0.0.1 - - [27/Sep/2009:08:44:01
+0000] "POST /xmpp-httpbind HTTP/1.1" 200 221 "-" "Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/
3.5.3"
2009-09-27 01:44:03-0700 [-] SID: fb40aac07d4351c9b1337abc7489d9e8 =>
SEND:
2009-09-27 01:44:03-0700 [-] SESSION -> Terminate
2009-09-27 01:44:03-0700 [-] expire (fb40aac07d4351c9b1337abc7489d9e8)
2009-09-27 01:44:03-0700 [-] 1
2009-09-27 01:44:03-0700 [-] SID: fb40aac07d4351c9b1337abc7489d9e8 =>
SEND: </stream:stream>
2009-09-27 01:44:03-0700 [XmlStream,client] connect ERROR
2009-09-27 01:44:03-0700 [XmlStream,client]
<twisted.words.protocols.jabber.xmlstream.XmlStream instance at
0x012D8670>
2009-09-27 01:44:03-0700 [XmlStream,client] Stopping factory
<punjab.session.Session object at 0x012D9650>