please help to get over this problem:

while executing :- CrawlStatus.update(:id => "delete row", :end =>
Time.now)

 error:
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method
`new' for Rational:Class
        at data_objects.Reader.next!(data_objects/Reader.java:130)
        at DataMapper::Adapters::MysqlAdapter.read(/home/sdf/.rvm/gems/
jruby-1.6.0/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:153)
        at DataMapper::Adapters::DataObjectsAdapter.with_connection(/
home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-do-adapter-1.1.0/lib/dm-do-
adapter/adapter.rb:276
)
        at DataMapper::Adapters::DataObjectsAdapter.read(/home/
sdf/.rvm/gems/jruby-1.6.0/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/
adapter.rb:141)
        at DataMapper::Repository.read(/home/sdf/.rvm/gems/jruby-1.6.0/
gems/dm-core-1.1.0/lib/dm-core/repository.rb:162)
        at DataMapper::Collection.lazy_load(/home/sdf/.rvm/gems/
jruby-1.6.0/gems/dm-core-1.1.0/lib/dm-core/collection.rb:1117)
        at LazyArray.each(/home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-
core-1.1.0/lib/dm-core/support/lazy_array.rb:409)
        at DataMapper::Collection.each(/home/sdf/.rvm/gems/jruby-1.6.0/
gems/dm-core-1.1.0/lib/dm-core/collection.rb:504)
        at org.jruby.RubyEnumerable.all?(org/jruby/RubyEnumerable.java:
1264)
        at DataMapper::Collection.update(/home/sdf/.rvm/gems/
jruby-1.6.0/gems/dm-core-1.1.0/lib/dm-core/collection.rb:824)
        at DataMapper::Model.update(/home/sdf/.rvm/gems/jruby-1.6.0/
gems/dm-core-1.1.0/lib/dm-core/model.rb:478)
        at
extraction_and_dedup_automation.find_files_to_extract(extraction_and_dedup_automation.rb:
29)
        at extraction_and_dedup_automation.(root)
(extraction_and_dedup_automation.rb:38)
DataObjects::SQLError: (NoMethodError) undefined method `new' for
Rational:Class (code: , sql state: , query: , uri: )
                  next! at data_objects/Reader.java:147
                   read at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-do-
adapter-1.1.0/lib/dm-do-adapter/adapter.rb:153
        with_connection at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-do-
adapter-1.1.0/lib/dm-do-adapter/adapter.rb:276
                   read at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-do-
adapter-1.1.0/lib/dm-do-adapter/adapter.rb:141
                   read at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-
core-1.1.0/lib/dm-core/repository.rb:162
              lazy_load at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-
core-1.1.0/lib/dm-core/collection.rb:1117
                   each at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-
core-1.1.0/lib/dm-core/support/lazy_array.rb:409
                   each at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-
core-1.1.0/lib/dm-core/collection.rb:504
                   all? at org/jruby/RubyEnumerable.java:1264
                 update at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-
core-1.1.0/lib/dm-core/collection.rb:824
                 update at /home/sdf/.rvm/gems/jruby-1.6.0/gems/dm-
core-1.1.0/lib/dm-core/model.rb:478

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to