Dário Abdulrehman
2012-02-17 17:49:55 UTC
I get the following error while trying to use this library.
I have the following versions installed on a Debian system:
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
xmpp4r (0.5)
What can be the cause?
Thanks.
D, [2012-02-17T17:28:45.700143 #29412] DEBUG -- : Debugging mode enabled.
W, [2012-02-17T17:28:45.700294 #29412] WARN -- : Warnings mode enabled.
D, [2012-02-17T17:28:45.700439 #29412] DEBUG -- : CONNECTING:
talk.google.com:443
D, [2012-02-17T17:28:45.849928 #29412] DEBUG -- : SENDING:
<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' to='gmail.com' xml:lang='en' version='1.0' >
W, [2012-02-17T17:28:45.910922 #29412] WARN -- : EXCEPTION:
NoMethodError
undefined method `[]' for nil:NilClass
/usr/lib/ruby/1.8/rexml/source.rb:149:in `initialize'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `new'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:110:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `new'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in
`parse'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:75:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in
`initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:119:in
`start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:87:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:77:in
`connect'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in `connect'
./gtalk.rb:19
W, [2012-02-17T17:28:45.911089 #29412] WARN -- : Exception caught in
Parser thread! (NoMethodError)
/usr/lib/ruby/1.8/rexml/source.rb:149:in `initialize'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `new'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:110:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `new'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in
`parse'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:75:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in
`initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:119:in
`start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:87:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:77:in
`connect'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in `connect'
./gtalk.rb:19
I have the following versions installed on a Debian system:
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
xmpp4r (0.5)
What can be the cause?
Thanks.
D, [2012-02-17T17:28:45.700143 #29412] DEBUG -- : Debugging mode enabled.
W, [2012-02-17T17:28:45.700294 #29412] WARN -- : Warnings mode enabled.
D, [2012-02-17T17:28:45.700439 #29412] DEBUG -- : CONNECTING:
talk.google.com:443
D, [2012-02-17T17:28:45.849928 #29412] DEBUG -- : SENDING:
<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' to='gmail.com' xml:lang='en' version='1.0' >
W, [2012-02-17T17:28:45.910922 #29412] WARN -- : EXCEPTION:
NoMethodError
undefined method `[]' for nil:NilClass
/usr/lib/ruby/1.8/rexml/source.rb:149:in `initialize'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `new'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:110:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `new'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in
`parse'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:75:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in
`initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:119:in
`start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:87:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:77:in
`connect'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in `connect'
./gtalk.rb:19
W, [2012-02-17T17:28:45.911089 #29412] WARN -- : Exception caught in
Parser thread! (NoMethodError)
/usr/lib/ruby/1.8/rexml/source.rb:149:in `initialize'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `new'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:110:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `new'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:39:in
`parse'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:75:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in
`initialize'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `new'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:72:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:119:in
`start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:87:in `start'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:77:in
`connect'
/var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in `connect'
./gtalk.rb:19