Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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
-
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.
-
- jruby_trace.txt
- 07/Mar/12 6:23 AM
- 23 kB
- André Rodrigues Pereira
-
Hide
- teste.zip
- 07/Mar/12 7:19 AM
- 122 kB
- André Rodrigues Pereira
-
- teste/.DS_Store 6 kB
- __MACOSX/teste/._.DS_Store 0.1 kB
- teste/.gitignore 0.0 kB
- teste/app/.../application_controller.rb 0.1 kB
- teste/app/.../contacts_controller.rb 2 kB
- teste/app/.../lists_controller.rb 2 kB
- teste/app/helpers/application_helper.rb 0.0 kB
- teste/app/helpers/contacts_helper.rb 0.0 kB
- teste/app/helpers/lists_helper.rb 0.0 kB
- teste/app/models/contact.rb 0.1 kB
- teste/app/models/list.rb 0.2 kB
- teste/app/views/contacts/_form.html.erb 0.6 kB
- teste/app/views/contacts/edit.html.erb 0.1 kB
- teste/app/views/contacts/index.html.erb 0.5 kB
- teste/app/views/contacts/new.html.erb 0.1 kB
- teste/app/views/contacts/show.html.erb 0.2 kB
- teste/app/.../layouts/application.html.erb 0.2 kB
- teste/app/views/lists/_form.html.erb 0.5 kB
- teste/app/views/lists/edit.html.erb 0.1 kB
- teste/app/views/lists/index.html.erb 0.4 kB
- teste/app/views/lists/new.html.erb 0.1 kB
- teste/app/views/lists/show.html.erb 0.2 kB
- teste/config/.DS_Store 6 kB
- __MACOSX/teste/config/._.DS_Store 0.1 kB
- teste/config/application.rb 2 kB
- teste/config/boot.rb 0.2 kB
- teste/config/database.yml 0.4 kB
- teste/config/environment.rb 0.1 kB
- teste/config/environments/development.rb 1.0 kB
- teste/config/environments/production.rb 2 kB
Activity
Well, in the project that I have attached now, running rake test:functionals here, the problem is happening...
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?
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...
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)
Please provide steps to reproduce this phenomenon. The stack trace doesn't seem to contain any pertinent information.