Does this happen if you run your app using jruby and mongrel? Not running it in Tomcat?
> jruby -S mongrel Then you can at least know if it is rails, or if it is your setup with Tomcat. Joe On Fri, Feb 26, 2010 at 5:52 PM, jgrewal <[email protected]> wrote: > > I upgraded to jruby 1.4 but still get the same error. > > > > jgrewal wrote: > > > > Hi Hirotsugu Asari, > > > > Thansk for looking into the problem. > > > > I was trying to be a bit conservative with the upgrade by going from > jruby > > 1.1.4 to 1.1.6 instead of 1.4 as I was worried about backward > > compatibility of jruby. > > > > Also yum install jruby.x86_64 without specifying a version installed > > 1.1.6, so I had assumed that was the most stable build. > > > > Would you recommend upgrading to jruby 1.4? > > > > Regards, > > Jas > > > > > > > > Hirotsugu Asari wrote: > >> > >> Hi, Jas, > >> > >> Is there a reason that you're using JRuby 1.1.6? I don't think anyone > >> remembers how JRuby behaved back then. ;-) > >> > >> On Feb 26, 2010, at 1:58 PM, jgrewal wrote: > >> > >>> > >>> Hi, > >>> > >>> I am using Jruby on Rails with Tomcat and Hibernate in a project. I > >>> recently > >>> upgraded the server. After upgrade, I am using: > >>> Jruby 1.1.6 > >>> Rails (gem) 2.3.5 > >>> Tomcat 6 > >>> > >>> Everything works ok, but I randomly get the error below. It seems that > >>> rails > >>> is somehow passing some arguments to controller method. I have seen > the > >>> error randomly, where it would go away when the page is refreshed, also > >>> consistently where after it occured once, it keeps happening. Also note > >>> that > >>> I can't reproduce this behaviour in development environment where I am > >>> using > >>> mongrel instead of tomcat. > >>> > >>> Are there any good debugging tools to walk through the rails and jruby > >>> code? > >>> > >>> > >>> ======================================= > >>> ArgumentError in Client/authController#login > >>> > >>> wrong number of arguments (1 for 0) > >>> > >>> RAILS_ROOT: /var/lib/tomcat6/webapps/myproject/WEB-INF > >>> Application Trace | Framework Trace | Full Trace > >>> > >>> > file:/var/lib/tomcat6/webapps/myproject/WEB-INF/lib/jruby-stdlib-1.4.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:50:in > >>> `method_missing' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:291:in > >>> `qualified_const_defined?' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:288:in > >>> `each' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:288:in > >>> `inject' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:288:in > >>> `qualified_const_defined?' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:415:in > >>> `load_missing_constant' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:96:in > >>> `const_missing' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in > >>> `constantize' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in > >>> `each' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in > >>> `constantize' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb:162:in > >>> `constantize' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:443:in > >>> `recognize' > >>> > /usr/share/tomcat6/webapps/myproject/WEB-INF/gems/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:436:in > >>> `call' > >>> > >>> ======================================= > >>> > >>> Any help will be appreciated. > >>> > >>> Regards, > >>> Jas > >>> > >>> -- > >>> View this message in context: > >>> > http://old.nabble.com/rails-2.3.5---Error---wrong-number-of-arguments-%281-for-0%29-tp27722743p27722743.html > >>> Sent from the JRuby - Dev mailing list archive at Nabble.com. > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe from this list, please visit: > >>> > >>> http://xircles.codehaus.org/manage_email > >>> > >>> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list, please visit: > >> > >> http://xircles.codehaus.org/manage_email > >> > >> > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/rails-2.3.5---Error---wrong-number-of-arguments-%281-for-0%29-tp27722743p27724742.html > Sent from the JRuby - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
