[Backgroundrb-devel] ncluding backgroundrb issue

Gabi Ciudoiu ciudica at gmail.com
Wed Feb 7 04:33:24 EST 2007


I have the next including files structure :

    - controller fileaA.rb including line (#8): require "fileB"...
    - /lib/fileB.rb with main header: load 'backgroundrb/worker.rb'
                                                 load 'backgroundrb/
worker_rails.rb'
                                                  class FileB <
BackgrounDRb::Worker::RailsBase

........................................................................
                             and on line #72:  FileB .register
when I restart my lighttpd web server , at the first loading of the
controller it rise the next error:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?

RAILS_ROOT: ......
Application Trace | Framework Trace | Full Trace

#{RAILS_ROOT}*/vendor/plugins/backgroundrb/server/lib/backgroundrb/*
middleman.rb:158:in `register_worker_class'
#{RAILS_ROOT}*/vendor/plugins/backgroundrb/server/lib/backgroundrb/*
worker.rb:17:in `register'
#{RAILS_ROOT}/lib/fileB.rb:72
#{RAILS_ROOT}/app/controllers/fileA.rb:8

After reloading the page, this error did not rise again , I need help
with any idea concerning this behavior of backgroundrb plugin (what is
wrong in my including code or what could generate this error?)

Thank's
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070207/0fd9588b/attachment.html 


More information about the Backgroundrb-devel mailing list