Hi, When I try to access /event/ [1] I get the follow message wrong number of arguments (3 for 0) and the full framework trace: /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connection_adapters/oci_adapter.rb:211:in `initialize'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connection_adapters/oci_adapter.rb:211:in `new'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connection_adapters/oci_adapter.rb:211:in `oci_connection'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connection_adapters/abstract_adapter.rb:136:in `send'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connection_adapters/abstract_adapter.rb:136:in `connection='' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connection_adapters/abstract_adapter.rb:100:in `retrieve_connection'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:235:in `connection'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:452:in `count_by_sql'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:445:in `count'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/pagination.rb:154:in `count_collection_for_pagination'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/pagination.rb:171:in `paginator_and_collection_for'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/pagination.rb:111:in `paginate'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/scaffolding.rb:101:in `list'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/scaffolding.rb:94:in `index'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb:708:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb:708:in `perform_action_without_filters'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/filters.rb:294:in `perform_action_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmarking.rb:34:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmarking.rb:34:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmarking.rb:34:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/rescue.rb:79:in `perform_action'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb:330:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb:330:in `process'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb:273:in `process'' /usr/lib/ruby/gems/1.8/gems/rails-0.12.0/lib/dispatcher.rb:32:in `dispatch'' /web/rails/public/dispatch.cgi:10 I have checked and OCI is installed and works correctly. My database.yml is setup correctly. Any idea what I''m doing wrong? [1] I created using ./script/generate controller event ./script/generate model event and editing app/controllers/event_controller.rb. I appreciate your help. Thanks, -- ==================================================| Steven Knight skk-Y5xk1i+vvAw3uPMLIKxrzw@public.gmane.org | | UNH Research Computing Center 603-862-3042 | ===================================================
Do you have the ruby-oci8 library installed? This is a dependency of the AR oci adapter: project page: http://www.jiubao.org/ruby-oci8/ download: http://rubyforge.org/frs/?group_id=256 On Tuesday 19 April 2005 12:42 pm, Steven Knight wrote:> Hi, > > When I try to access /event/ [1] I get the follow message > > wrong number of arguments (3 for 0) > > and the full framework trace: > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/oci_adapter.rb:211:in `initialize'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/oci_adapter.rb:211:in `new'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/oci_adapter.rb:211:in `oci_connection'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/abstract_adapter.rb:136:in `send'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/abstract_adapter.rb:136:in `connection='' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/abstract_adapter.rb:100:in `retrieve_connection'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:2 >35:in `connection'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:4 >52:in `count_by_sql'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:4 >45:in `count'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati >on.rb:154:in `count_collection_for_pagination'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati >on.rb:171:in `paginator_and_collection_for'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati >on.rb:111:in `paginate'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/scaffold >ing.rb:101:in `list'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/scaffold >ing.rb:94:in `index'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >708:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >708:in `perform_action_without_filters'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/filters. >rb:294:in `perform_action_without_benchmark'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar >king.rb:34:in `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar >king.rb:34:in `measure'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar >king.rb:34:in `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/rescue.r >b:79:in `perform_action'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >330:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >330:in `process'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >273:in `process'' > /usr/lib/ruby/gems/1.8/gems/rails-0.12.0/lib/dispatcher.rb:32:in `dispatch'' > /web/rails/public/dispatch.cgi:10 > > I have checked and OCI is installed and works correctly. My database.yml > is setup correctly. > > Any idea what I''m doing wrong? > > [1] I created using > ./script/generate controller event > ./script/generate model event > > and editing app/controllers/event_controller.rb. > > > I appreciate your help. > > Thanks,-- Micah Alles micah-T1YOP9nF7vWQ0r5V5wSIsA@public.gmane.org 616-776-6020 Software Journeyman Atomic Object LLC _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Tue, 2005-04-19 at 14:45 -0400, Micah Alles wrote:> Do you have the ruby-oci8 library installed? This is a dependency of the AR > oci adapter: > > project page: > http://www.jiubao.org/ruby-oci8/ > > download: > http://rubyforge.org/frs/?group_id=256Yes, I do. For example: $ ruby -r oci8 -e ''OCI8.new( USERNAME, PASSWORD, DATEBASE, ).exec("select sysdate from dual") do |r| puts r.join(","); end'' 2005/04/19 15:18:47 Anything I''m forgetting to do? Thanks,> > On Tuesday 19 April 2005 12:42 pm, Steven Knight wrote: > > Hi, > > > > When I try to access /event/ [1] I get the follow message > > > > wrong number of arguments (3 for 0) > > > > and the full framework trace: > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio > >n_adapters/oci_adapter.rb:211:in `initialize'' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio > >n_adapters/oci_adapter.rb:211:in `new'' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio > >n_adapters/oci_adapter.rb:211:in `oci_connection'' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio > >n_adapters/abstract_adapter.rb:136:in `send'' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio > >n_adapters/abstract_adapter.rb:136:in `connection='' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio > >n_adapters/abstract_adapter.rb:100:in `retrieve_connection'' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:2 > >35:in `connection'' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:4 > >52:in `count_by_sql'' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:4 > >45:in `count'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati > >on.rb:154:in `count_collection_for_pagination'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati > >on.rb:171:in `paginator_and_collection_for'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati > >on.rb:111:in `paginate'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/scaffold > >ing.rb:101:in `list'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/scaffold > >ing.rb:94:in `index'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: > >708:in `send'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: > >708:in `perform_action_without_filters'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/filters. > >rb:294:in `perform_action_without_benchmark'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar > >king.rb:34:in `perform_action_without_rescue'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar > >king.rb:34:in `measure'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar > >king.rb:34:in `perform_action_without_rescue'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/rescue.r > >b:79:in `perform_action'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: > >330:in `send'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: > >330:in `process'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: > >273:in `process'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.12.0/lib/dispatcher.rb:32:in `dispatch'' > > /web/rails/public/dispatch.cgi:10 > > > > I have checked and OCI is installed and works correctly. My database.yml > > is setup correctly. > > > > Any idea what I''m doing wrong? > > > > [1] I created using > > ./script/generate controller event > > ./script/generate model event > > > > and editing app/controllers/event_controller.rb. > > > > > > I appreciate your help. > > > > Thanks, >-- ==================================================| Steven Knight skk-Y5xk1i+vvAw3uPMLIKxrzw@public.gmane.org | | UNH Research Computing Center 603-862-3042 | ===================================================
This problem seems to be in the oci8 driver which the adapter uses. I get the same error when trying to connect to a 10g server now which I just installed under linux. It doesn''t look like my current configuration has been tested much with the oci8 driver (only versions of oracle 8 and 9 are listed as tested on the driver homepage). I would try to contact the oci8 library maintainer, KUBO Takehiro <kubo-MPg98oU6eI0dnm+yROfE0A@public.gmane.org>, and see if he has any insight given your configuration. I''m not sure who contributed the majority of the oci_adapter, but it looks like it was developed on windows against Oracle 8i. What is your current configuration? Server OS, Client OS, Oracle version... On Wednesday 20 April 2005 09:30 am, Steven Knight wrote:> On Tue, 2005-04-19 at 16:11 -0400, Micah Alles wrote: > > Do you have the oracle client library, libclntsh.so (I believe), in your > > library path? > > By putting libclntsh.so into /lib/, this resolved that error I was > getting. > > I''m now getting > > ERROR > > in > > app/controllers/events_controller.rb:8:in `list'' > app/controllers/events_controller.rb:3:in `index'' > > trace > /usr/lib/ruby/site_ruby/1.8/oci8.rb:131:in `create'' > /usr/lib/ruby/site_ruby/1.8/oci8.rb:131:in `initialize'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/oci_adapter.rb:211:in `new'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/oci_adapter.rb:211:in `oci_connection'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/abstract_adapter.rb:136:in `send'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/abstract_adapter.rb:136:in `connection='' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/connectio >n_adapters/abstract_adapter.rb:100:in `retrieve_connection'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:2 >35:in `connection'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:4 >52:in `count_by_sql'' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.10.0/lib/active_record/base.rb:4 >45:in `count'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati >on.rb:154:in `count_collection_for_pagination'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati >on.rb:171:in `paginator_and_collection_for'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/paginati >on.rb:111:in `paginate'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >708:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >708:in `perform_action_without_filters'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/filters. >rb:294:in `perform_action_without_benchmark'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar >king.rb:34:in `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar >king.rb:34:in `measure'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/benchmar >king.rb:34:in `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/rescue.r >b:79:in `perform_action'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >330:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >330:in `process'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.0/lib/action_controller/base.rb: >273:in `process'' > /usr/lib/ruby/gems/1.8/gems/rails-0.12.0/lib/dispatcher.rb:32:in `dispatch'' > /web/rails/public/dispatch.cgi:10 > > you can see for yourself > > at http://ror.sr.unh.edu/events/ > > Again, you have been a huge help. > > Any idea what is causing this error? > > Thanks,-- Micah Alles micah-T1YOP9nF7vWQ0r5V5wSIsA@public.gmane.org 616-776-6020 Software Journeyman Atomic Object LLC _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails