Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.6, JRuby 1.6.7
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: Interpreter
    • Labels:
    • Environment:
      Mac OSX Snow Leopard 10.6.8
      jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) Client VM 1.6.0_29) [darwin-i386-java]
    • Number of attachments :
      2

      Description

      I could see a trace error, when running my tests and figuring out I was calling a fixture load method from a inexistent fixture file. Instead of I receive a method_missing error, I just have a full Java trace log. Tested on JRuby 1.6.4 and there was displaying the method_missing error.

      The trace is attached in this Issue.

        Activity

        Hide
        Hiro Asari added a comment -

        Please provide steps to reproduce this phenomenon. The stack trace doesn't seem to contain any pertinent information.

        Show
        Hiro Asari added a comment - Please provide steps to reproduce this phenomenon. The stack trace doesn't seem to contain any pertinent information.
        Hide
        André Rodrigues Pereira added a comment - - edited

        Well, in the project that I have attached now, running rake test:functionals here, the problem is happening...

        Show
        André Rodrigues Pereira added a comment - - edited Well, in the project that I have attached now, running rake test:functionals here, the problem is happening...
        Hide
        Charles Oliver Nutter added a comment -

        Just confirming...you see this in JRuby 1.6.6, and 1.6.4 shows the method_missing error you expect, right? So something regressed between 1.6.4 and 1.6.6?

        Show
        Charles Oliver Nutter added a comment - Just confirming...you see this in JRuby 1.6.6, and 1.6.4 shows the method_missing error you expect, right? So something regressed between 1.6.4 and 1.6.6?
        Hide
        André Rodrigues Pereira added a comment -

        Actually I don't know, Since I'm using jruby 1.6.6 for a time already, and just now I came across this issue.

        So, after some tries, I just back to 1.6.4, in rvm, to test and the messages appears right...

        Show
        André Rodrigues Pereira added a comment - Actually I don't know, Since I'm using jruby 1.6.6 for a time already, and just now I came across this issue. So, after some tries, I just back to 1.6.4, in rvm, to test and the messages appears right...
        Hide
        Charles Oliver Nutter added a comment -

        This appears to work ok on master. If it's still broken in 1.6.7, it is probably at least fixed for 1.7.

        system ~/projects/jruby/tmp/teste $ rake test:functionals
        Loaded Suite test,test/functional,test/performance,test/unit,test/unit/helpers
        
        Started at 2012-05-18 11:37:02 -0500 w/ seed 15686.
        
        ContactsControllerTest
                     ERROR test_should_create_contact (0:00:00.477)
                  undefined method `bazinga' for #<ContactsControllerTest:0x46d3d145>
                @ org/jruby/RubyBasicObject.java:1775:in `method_missing'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
                  test/functional/contacts_controller_test.rb:5:in `_callback_before_55'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyBasicObject.java:1786:in `__send__'
                  org/jruby/RubyKernel.java:1990:in `send'
                  org/jruby/RubyArray.java:1611:in `each'
        
                     ERROR test_should_destroy_contact (0:00:00.533)
                  undefined method `bazinga' for #<ContactsControllerTest:0x4541139c>
                @ org/jruby/RubyBasicObject.java:1775:in `method_missing'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
                  test/functional/contacts_controller_test.rb:5:in `_callback_before_55'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyBasicObject.java:1786:in `__send__'
                  org/jruby/RubyKernel.java:1990:in `send'
                  org/jruby/RubyArray.java:1611:in `each'
        
                     ERROR test_should_get_edit (0:00:00.596)
                  undefined method `bazinga' for #<ContactsControllerTest:0x8d59f1>
                @ org/jruby/RubyBasicObject.java:1775:in `method_missing'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
                  test/functional/contacts_controller_test.rb:5:in `_callback_before_55'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyBasicObject.java:1786:in `__send__'
                  org/jruby/RubyKernel.java:1990:in `send'
                  org/jruby/RubyArray.java:1611:in `each'
        
                     ERROR test_should_get_index (0:00:00.640)
                  undefined method `bazinga' for #<ContactsControllerTest:0x21b10e9e>
                @ org/jruby/RubyBasicObject.java:1775:in `method_missing'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
                  test/functional/contacts_controller_test.rb:5:in `_callback_before_55'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyBasicObject.java:1786:in `__send__'
                  org/jruby/RubyKernel.java:1990:in `send'
                  org/jruby/RubyArray.java:1611:in `each'
        
                     ERROR test_should_get_new (0:00:00.680)
                  undefined method `bazinga' for #<ContactsControllerTest:0x2fa21acf>
                @ org/jruby/RubyBasicObject.java:1775:in `method_missing'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
                  test/functional/contacts_controller_test.rb:5:in `_callback_before_55'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyBasicObject.java:1786:in `__send__'
                  org/jruby/RubyKernel.java:1990:in `send'
                  org/jruby/RubyArray.java:1611:in `each'
        
                     ERROR test_should_show_contact (0:00:00.713)
                  undefined method `bazinga' for #<ContactsControllerTest:0x63198ed3>
                @ org/jruby/RubyBasicObject.java:1775:in `method_missing'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
                  test/functional/contacts_controller_test.rb:5:in `_callback_before_55'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyBasicObject.java:1786:in `__send__'
                  org/jruby/RubyKernel.java:1990:in `send'
                  org/jruby/RubyArray.java:1611:in `each'
        
                     ERROR test_should_update_contact (0:00:00.748)
                  undefined method `bazinga' for #<ContactsControllerTest:0x24d7e934>
                @ org/jruby/RubyBasicObject.java:1775:in `method_missing'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
                  test/functional/contacts_controller_test.rb:5:in `_callback_before_55'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks'
                  /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyArray.java:2350:in `map'
                  org/jruby/RubyBasicObject.java:1786:in `__send__'
                  org/jruby/RubyKernel.java:1990:in `send'
                  org/jruby/RubyArray.java:1611:in `each'
        
        
        ListsControllerTest
                      PASS test_should_create_list (0:00:01.266)
                      PASS test_should_destroy_list (0:00:01.355)
                      PASS test_should_get_edit (0:00:01.677)
                      PASS test_should_get_index (0:00:01.776)
                      PASS test_should_get_new (0:00:01.879)
                      PASS test_should_show_list (0:00:01.989)
                      PASS test_should_update_list (0:00:02.076)
        
        Finished in 2.078000 seconds.
        
        14 tests, 7 passed, 0 failures, 7 errors, 0 skips, 10 assertions
        
        rake aborted!
        Command failed with status (7): [/Users/headius/projects/jruby/bin/jruby -I...]
        
        Tasks: TOP => test:functionals
        (See full trace by running task with --trace)
        
        Show
        Charles Oliver Nutter added a comment - This appears to work ok on master. If it's still broken in 1.6.7, it is probably at least fixed for 1.7. system ~/projects/jruby/tmp/teste $ rake test:functionals Loaded Suite test,test/functional,test/performance,test/unit,test/unit/helpers Started at 2012-05-18 11:37:02 -0500 w/ seed 15686. ContactsControllerTest ERROR test_should_create_contact (0:00:00.477) undefined method `bazinga' for #<ContactsControllerTest:0x46d3d145> @ org/jruby/RubyBasicObject.java:1775:in `method_missing' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' test/functional/contacts_controller_test.rb:5:in `_callback_before_55' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyBasicObject.java:1786:in `__send__' org/jruby/RubyKernel.java:1990:in `send' org/jruby/RubyArray.java:1611:in `each' ERROR test_should_destroy_contact (0:00:00.533) undefined method `bazinga' for #<ContactsControllerTest:0x4541139c> @ org/jruby/RubyBasicObject.java:1775:in `method_missing' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' test/functional/contacts_controller_test.rb:5:in `_callback_before_55' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyBasicObject.java:1786:in `__send__' org/jruby/RubyKernel.java:1990:in `send' org/jruby/RubyArray.java:1611:in `each' ERROR test_should_get_edit (0:00:00.596) undefined method `bazinga' for #<ContactsControllerTest:0x8d59f1> @ org/jruby/RubyBasicObject.java:1775:in `method_missing' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' test/functional/contacts_controller_test.rb:5:in `_callback_before_55' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyBasicObject.java:1786:in `__send__' org/jruby/RubyKernel.java:1990:in `send' org/jruby/RubyArray.java:1611:in `each' ERROR test_should_get_index (0:00:00.640) undefined method `bazinga' for #<ContactsControllerTest:0x21b10e9e> @ org/jruby/RubyBasicObject.java:1775:in `method_missing' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' test/functional/contacts_controller_test.rb:5:in `_callback_before_55' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyBasicObject.java:1786:in `__send__' org/jruby/RubyKernel.java:1990:in `send' org/jruby/RubyArray.java:1611:in `each' ERROR test_should_get_new (0:00:00.680) undefined method `bazinga' for #<ContactsControllerTest:0x2fa21acf> @ org/jruby/RubyBasicObject.java:1775:in `method_missing' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' test/functional/contacts_controller_test.rb:5:in `_callback_before_55' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyBasicObject.java:1786:in `__send__' org/jruby/RubyKernel.java:1990:in `send' org/jruby/RubyArray.java:1611:in `each' ERROR test_should_show_contact (0:00:00.713) undefined method `bazinga' for #<ContactsControllerTest:0x63198ed3> @ org/jruby/RubyBasicObject.java:1775:in `method_missing' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' test/functional/contacts_controller_test.rb:5:in `_callback_before_55' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyBasicObject.java:1786:in `__send__' org/jruby/RubyKernel.java:1990:in `send' org/jruby/RubyArray.java:1611:in `each' ERROR test_should_update_contact (0:00:00.748) undefined method `bazinga' for #<ContactsControllerTest:0x24d7e934> @ org/jruby/RubyBasicObject.java:1775:in `method_missing' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/actionpack-3.0.10/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing' test/functional/contacts_controller_test.rb:5:in `_callback_before_55' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:450:in `_run_setup_callbacks' /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/activesupport-3.0.10/lib/active_support/testing/setup_and_teardown.rb:34:in `run' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyArray.java:2350:in `map' org/jruby/RubyBasicObject.java:1786:in `__send__' org/jruby/RubyKernel.java:1990:in `send' org/jruby/RubyArray.java:1611:in `each' ListsControllerTest PASS test_should_create_list (0:00:01.266) PASS test_should_destroy_list (0:00:01.355) PASS test_should_get_edit (0:00:01.677) PASS test_should_get_index (0:00:01.776) PASS test_should_get_new (0:00:01.879) PASS test_should_show_list (0:00:01.989) PASS test_should_update_list (0:00:02.076) Finished in 2.078000 seconds. 14 tests, 7 passed, 0 failures, 7 errors, 0 skips, 10 assertions rake aborted! Command failed with status (7): [/Users/headius/projects/jruby/bin/jruby -I...] Tasks: TOP => test:functionals (See full trace by running task with --trace)

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            André Rodrigues Pereira
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: