a3rd / molniya

Automatically exported from code.google.com/p/molniya
GNU General Public License v2.0
0 stars 0 forks source link

'status' command crashes molniya #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. send 'status' or 'somehost/someservice' to the molniya XMPP contact

What is the expected output? What do you see instead?
expected: a message that says something about the status, e.g. incoming ICBM

actual output on the command line:
W, [2010-08-08T19:37:55.011034 #18667]  WARN -- : Reconnecting after exception 
in close:
W, [2010-08-08T19:37:55.014241 #18667]  WARN -- : Reconnecting after exception 
in start: Server Disconnected!
/usr/lib/ruby/1.8/xmpp4r/streamparser.rb:68:in `parse'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:186:in `call'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:186:in `handle'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:186:in `each'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:186:in `handle'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:95:in `parse'
/usr/lib/ruby/1.8/xmpp4r/streamparser.rb:79:in `parse'
/usr/lib/ruby/1.8/xmpp4r/stream.rb:75:in `start'
/usr/lib/ruby/1.8/xmpp4r/stream.rb:72:in `initialize'
/usr/lib/ruby/1.8/xmpp4r/stream.rb:72:in `new'
/usr/lib/ruby/1.8/xmpp4r/stream.rb:72:in `start'
/usr/lib/ruby/1.8/xmpp4r/connection.rb:119:in `start'
/usr/lib/ruby/1.8/xmpp4r/client.rb:87:in `start'
/usr/lib/ruby/1.8/xmpp4r/client.rb:175:in `auth_sasl'
/usr/lib/ruby/1.8/xmpp4r/client.rb:110:in `auth'
./molniya.rb:200:in `connect'
./molniya.rb:193:in `initial_connect'
/usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
./molniya.rb:192:in `initial_connect'
./molniya.rb:172:in `initialize'
./molniya.rb:526:in `new'
./molniya.rb:526:in `initialize'
./molniya.rb:765:in `new'
./molniya.rb:765:in `launch'
-e:1
/usr/lib/ruby/1.8/xmpp4r/errors.rb:43:in `to_s': undefined method `error' for 
nil:NilClass (NoMethodError)
        from /usr/lib/ruby/1.8/xmpp4r/connection.rb:111:in `accept_features'
        from /usr/lib/ruby/1.8/xmpp4r/connection.rb:79:in `connect'
        from /usr/lib/ruby/1.8/xmpp4r/client.rb:70:in `connect'
        from ./molniya.rb:198:in `connect'
        from ./molniya.rb:205:in `reconnect'
        from ./molniya.rb:182:in `initialize'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:150:in `call'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:150:in `parser_end'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:147:in `initialize'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:147:in `new'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:147:in `parser_end'
        from /usr/lib/ruby/1.8/xmpp4r/streamparser.rb:60:in `parse'
        from /usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:142:in `call'
        from /usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:142:in `parse'
        from /usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:142:in `each'
        from /usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:142:in `parse'
        from /usr/lib/ruby/1.8/xmpp4r/streamparser.rb:79:in `parse'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:75:in `start'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:72:in `initialize'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:72:in `new'
        from /usr/lib/ruby/1.8/xmpp4r/stream.rb:72:in `start'
        from /usr/lib/ruby/1.8/xmpp4r/connection.rb:119:in `start'
        from /usr/lib/ruby/1.8/xmpp4r/client.rb:87:in `start'
        from /usr/lib/ruby/1.8/xmpp4r/client.rb:175:in `auth_sasl'
        from /usr/lib/ruby/1.8/xmpp4r/client.rb:110:in `auth'
        from ./molniya.rb:200:in `connect'
        from ./molniya.rb:193:in `initial_connect'
        from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
        from ./molniya.rb:192:in `initial_connect'
        from ./molniya.rb:172:in `initialize'
        from ./molniya.rb:526:in `new'
        from ./molniya.rb:526:in `initialize'
        from ./molniya.rb:765:in `new'
        from ./molniya.rb:765:in `launch'
        from -e:1

What version of the product are you using? On what operating system?
0.3

Please provide any additional information below.
'help' works, so does '$hostname', bogus input is also properly answered to

Original issue reported on code.google.com by dm8...@gmail.com on 8 Aug 2010 at 7:51

GoogleCodeExporter commented 9 years ago
'status' works actually if there is nothing to report. If there is but one 
warning, it dies.

Original comment by dm8...@gmail.com on 9 Aug 2010 at 5:25

GoogleCodeExporter commented 9 years ago
Hello,

The stack traces you pasted are from a reconnection attempt; I'm guessing the 
error in handling the 'status' command made it lose its connection somehow and 
attempt to reconnect. Can you please try the current code in the trunk, run it 
in debug mode with -d, and attach the complete log output?

Thanks!

Original comment by cswhee...@gmail.com on 7 Oct 2010 at 9:06

GoogleCodeExporter commented 9 years ago

Original comment by cswhee...@gmail.com on 7 Oct 2010 at 9:06

GoogleCodeExporter commented 9 years ago
This is trunk code (thanks for fixing the other issues!).
To me it looks like it gets disconnected while trying to send the response and 
then is unable to recover?
See attached log.

Original comment by dm8...@gmail.com on 10 Oct 2010 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
yeah, usr/lib/ruby/1.8/ 
try 1.9. 

Original comment by LDFHSDHS...@gmail.com on 12 Jan 2011 at 12:09