I've got a REST webservice I've built with JRuby 1.7 p2, Sinatra and Mizuno.
[2012-08-19 21:13:50] ERROR RuntimeError: can't add a new key into hash during iteration
org/jruby/RubyHash.java:905:in `[]='
/opt/jruby/active/lib/ruby/1.9/webrick/utils.rb:205:in `register'
/opt/jruby/active/lib/ruby/1.9/webrick/utils.rb:161:in `register'
org/jruby/ext/thread/Mutex.java:149:in `synchronize'
/opt/jruby/active/lib/ruby/1.9/webrick/utils.rb:160:in `register'
/opt/jruby/active/lib/ruby/1.9/webrick/utils.rb:232:in `timeout'
/opt/jruby/active/lib/ruby/1.9/webrick/httprequest.rb:398:in `_read_data'
/opt/jruby/active/lib/ruby/1.9/webrick/httprequest.rb:409:in `read_line'
/opt/jruby/active/lib/ruby/1.9/webrick/httprequest.rb:314:in `read_header'
/opt/jruby/active/lib/ruby/1.9/webrick/httprequest.rb:92:in `parse'
/opt/jruby/active/lib/ruby/1.9/webrick/httpserver.rb:81:in `run'
/opt/jruby/active/lib/ruby/1.9/webrick/server.rb:191:in `start_thread'
NoMethodError: undefined method `<' for nil:NilClass
initialize at /opt/jruby/active/lib/ruby/1.9/webrick/utils.rb:181
each at org/jruby/RubyArray.java:1612
initialize at /opt/jruby/active/lib/ruby/1.9/webrick/utils.rb:179
each at org/jruby/RubyHash.java:1192
initialize at /opt/jruby/active/lib/ruby/1.9/webrick/utils.rb:178
It seems to be coming from inside of webrick, so I'm at a loss as to what I could be doing that would be causing this?
The upstart command for Mizuno is the following:
exec su -c 'cd /home/foo/current; ./bin/mizuno >> output.log 2>&1' -l deploy
Any help would be appreciated in working out what is causing the error.
Thanks!
Mark
--
E:
mark....@gmail.comT:
http://www.twitter.com/neuroticW:
www.compoundtheory.com
2 Devs from Down Under Podcast