search for: drbunknown

Displaying 9 results from an estimated 9 matches for "drbunknown".

2006 Aug 03
3
undefined method `'' for #<DRb::DRbUnknown:0x2501bd4>
I tried installing BackgrounDRb today. Followed the readme, made a little worker for myself and executed it within the code. But I keep getting this error. I must''ve gone over the README a zillion times. Any idea what it is? undefined method `[]'' for #<DRb::DRbUnknown:0x2501bd4>
2006 Jul 19
1
A couple of problems
...initialize(result) @result = result end end def do_work() end def results MyResult.new(100) end end -- my_controller.rb -- def results results = MiddleMan.get_worker(session[:job_key]).results p results.result #=> undefined method `result'' for #<DRb::DRbUnknown:0x26d15a4> end I got around this by defining the class within the results method and returning like that. Really just wondering if this is by design or a bug? 2. When trying to pass a constant (class name in this instance) in the args hash I receive the following error. #=> undefined meth...
2007 Nov 11
5
undefined method `add''
We''ve been running into problems with ferret indexing lately. The problem is intermittent and some times it persists. Just got this after wiping the index and redeploying: NoMethodError (undefined method `add'' for Solution:Class): (druby://10.1.65.87:9009) /data/releases/20071111152414/vendor/rails/activerecord/lib/active_record/base.rb:1238:in `method_missing''
2006 Nov 20
2
Passing object into results - "can''t convert DRb::DRbUnknown into Hash - (TypeError)"
Hi, I''m using backgroundrb to get RSS feeds and pass them back to the controller. I''m using the Ruby RSS library to parse the feed, which returns an RSS object. After that I pass the object into the results hash, but that''s when this error occurs. Basically, this is what I have: rss = RSS::Parser.parse(response.body) results[:feed] = rss # error! 20061120-15:46:19
2007 Apr 05
4
backgrounddrb problem..
i''m having some problems getting a simple example going with backgrounDRB. after i set my worker to work i try to get back the result like this: w = MiddleMan.worker(key) w.items comes back as DRb::DRbUnknown (i have items as attr_reader in my worker and access it inside there with @items). the result is actually activerecord results in an array. when i change it so my worker puts results.inspect into @items it comes back like it should, but when its bringing back activerecord results it seems to think...
2006 Jul 19
1
Testing worker classes
...That''s the philosophical half of my question. In fact, until someone tells me why I shouldn''t, I am trying to call new_worker from a test method in the test class generated by the worker generator. I''m getting NoMethodError: undefined method `[]'' for #<DRb::DRbUnknown:0xb72c7128> I note in another thread that this is due to DRbundumped not being included in the class that is causing the error. I took this to mean that I need "include DRbundumped" in my test class, but that didn''t work. I''m not sure where else I should include it....
2006 Jul 07
4
Problems with ActiveRecord in workers
Hi *, are there some special settings except of "load_rails: true" to make ActiveRecord models accessible within my workers? I''ve just installed the latest version of this great plugin, but I keep getting undefined method [] for #<DRb::DRbUnknown:0x12345> (line 105 in backgroundrb.rb) when one of the arguments for the worker is an ActiveRecord object. I assume that the MiddleMan somehow doesn''t see my models. I have already tried to put model :blabla, :foo, :bar in application.rb, but this didn''t help. Any ideas?...
2006 Jul 05
5
''m having trouble with BackgrounDrb
...@progress=0 @pupil=Pupil.find(3) sleep rand*10 @progress=100 end when I try to access this via @pupil=MiddleMan.get_worker(session[:job_key]).pupil once progress hits 100% [I can access progress fine, BTW] and use this in a view, I get an error referring to @pupil as #<DRb::DRbUnknown:0xb78228a0> rather than an instance of Pupil. Am I expecting too much of Drb? I really thought that it would be able to give me back ActiveRecord objects. Any help most appreciated :) Robert Jones -- Posted via http://www.ruby-forum.com/.
2006 Nov 20
4
Production RAILS_ENV / DB Selection
...o a staging server... For some reason (surely of my own doing), my RailsBase workers are insisting on using trying to access my development DB instead of my "production" DB. When I try to load a model object from within a worker, I get the following: 20061120-21:54:28 (26296) #<DRb::DRbUnknown:0x40691130> 20061120-21:54:28 (26296) /var/www/gorchie/releases/20061120100506/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:387:in `real_connect'' /var/www/gorchie/releases/20061120100506/config/../vendor/rails/activerecord/lib/active_record/...