ttilley/fssm — Issue #38: Fssm breaks with jruby
Author: dhavaldeshpande
Created: 2012-01-30 18:00:32+00:00
State: open

I am getting the error here while running jruby with fssm. But I do not see any error when I run it with plain ruby
Jruby version - 1.6.5
fssm version - 0.2.8.1

NoMethodError: undefined method `ftype' for nil:NilClass
ftype at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/tree.rb:170
call at org/jruby/RubyProc.java:258
each at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/tree.rb:39
each at org/jruby/RubyHash.java:1175
each at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/tree.rb:35
inject at org/jruby/RubyEnumerable.java:830
ftype at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/tree.rb:169
files at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/tree.rb:153
cache_entries at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/state/directory.rb:64
recache at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/state/directory.rb:47
refresh at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/state/directory.rb:13
add_handler at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/backends/polling.rb:9
path at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm/monitor.rb:9
monitor at /home/ubuntu/.rvm/gems/jruby-1.6.5/gems/fssm-0.2.8.1/lib/fssm.rb:68
monitor at client.rb:18
(root) at client.rb:121

Any thoughts on this?