Random "Detected invalid array contents due to unsynchronized modifications
with concurrent users" with Rails 3.0
-----------------------------------------------------------------------------------------------------------------
Key: JRUBY-5434
URL: http://jira.codehaus.org/browse/JRUBY-5434
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6RC1
Environment: JRuby 1.6.1, Rails 3.0.3, Mac OS X 10.6.6, Java(TM) SE
Runtime Environment (build 1.6.0_22-b04-307-10M3261) - Java HotSpot(TM) 64-Bit
Server VM (build 17.1-b03-307, mixed mode)
Reporter: Jean-Dominique Morani
Priority: Critical
Fix For: JRuby 1.6
I'm receiving frequently a lot of these errors with JRuby 1.6 RC1 and Rails
3.0.3 (I'm getting the problem both in development and production mode).
ConcurrencyError in Cases#new
Showing _fields.html.haml where line #3 raised:
Detected invalid array contents due to unsynchronized modifications with
concurrent users
Extracted source (around line #3):
1: %h3.section Applicant
2: = f.input :suffix
3: = f.input :first_name
4: = f.input :middle_name
5: = f.input :last_name
6: = f.input :ssn
Trace of template inclusion: hidden/views/cases/_applicants_infos.html.haml,
app/views/cases/new.html.haml
Rails.root: /hidden
Application Trace | Framework Trace | Full Trace
org/jruby/RubyArray.java:1671:in `each'
i18n (0.5.0) lib/i18n/backend/base.rb:97:in `default'
i18n (0.5.0) lib/i18n/backend/base.rb:33:in `translate'
i18n (0.5.0) lib/i18n/backend/fallbacks.rb:45:in `translate'
org/jruby/RubyArray.java:1671:in `each'
i18n (0.5.0) lib/i18n/backend/fallbacks.rb:43:in `translate'
i18n (0.5.0) lib/i18n.rb:155:in `translate'
simple_form (1.3.0) lib/simple_form/inputs/base.rb:141:in `translate'
simple_form (1.3.0) lib/simple_form/components/placeholders.rb:18:in
`placeholder_text'
simple_form (1.3.0) lib/simple_form/components/placeholders.rb:14:in
`placeholder_present?'
simple_form (1.3.0) lib/simple_form/inputs/string_input.rb:23:in
`has_placeholder?'
simple_form (1.3.0) lib/simple_form/components/placeholders.rb:5:in
`placeholder'
org/jruby/RubyObject.java:1334:in `send'
simple_form (1.3.0) lib/simple_form/inputs/base.rb:52:in `render'
org/jruby/RubyArray.java:1671:in `each'
simple_form (1.3.0) lib/simple_form/inputs/base.rb:50:in `render'
simple_form (1.3.0) lib/simple_form/form_builder.rb:89:in `input'
config/systems/financial/views/cases/_consumer_fields.html.haml:3:in
`_config_systems_financial_views_cases__consumer_fields_html_haml___272243043_2568_25598'
org/jruby/RubyObject.java:1340:in `send'
actionpack (3.0.3) lib/action_view/template.rb:135:in `render'
activesupport (3.0.3) lib/active_support/notifications.rb:54:in `instrument'
actionpack (3.0.3) lib/action_view/template.rb:127:in `render'
actionpack (3.0.3) lib/action_view/render/partials.rb:333:in `render_partial'
actionpack (3.0.3) lib/action_view/render/partials.rb:262:in `render'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:21:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:20:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.3) lib/action_view/render/partials.rb:260:in `render'
actionpack (3.0.3) lib/action_view/render/partials.rb:378:in `_render_partial'
actionpack (3.0.3) lib/action_view/render/rendering.rb:22:in `render'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
haml (3.0.25) lib/haml/helpers.rb:90:in `non_haml'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
/hidden/ruby_gems_repo/bundler/gems/nested_form-10a77c978c1c/lib/nested_form/builder.rb:32:in
`block_is_haml?'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:172:in
`with_output_buffer'
haml (3.0.25) lib/haml/helpers/xss_mods.rb:109:in
`with_output_buffer_with_haml_xss'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:40:in `capture'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:92:in `capture_with_haml'
actionpack (3.0.3) lib/action_view/helpers/form_helper.rb:544:in `fields_for'
actionpack (3.0.3) lib/action_view/helpers/form_helper.rb:1289:in
`fields_for_nested_model'
/hidden/ruby_gems_repo/bundler/gems/nested_form-10a77c978c1c/lib/nested_form/builder.rb:37:in
`fields_for_nested_model'
actionpack (3.0.3) lib/action_view/helpers/form_helper.rb:1272:in
`fields_for_with_nested_attributes'
activerecord (3.0.3)
lib/active_record/associations/association_collection.rb:430:in `method_missing'
activerecord (3.0.3) lib/active_record/associations/association_proxy.rb:216:in
`method_missing'
org/jruby/RubyArray.java:1671:in `each'
org/jruby/RubyObject.java:1361:in `send'
activerecord (3.0.3) lib/active_record/associations/association_proxy.rb:216:in
`method_missing'
activerecord (3.0.3)
lib/active_record/associations/association_collection.rb:430:in `method_missing'
actionpack (3.0.3) lib/action_view/helpers/form_helper.rb:1271:in
`fields_for_with_nested_attributes'
/hidden/ruby_gems_repo/bundler/gems/nested_form-10a77c978c1c/lib/nested_form/builder.rb:24:in
`fields_for_with_nested_attributes'
actionpack (3.0.3) lib/action_view/helpers/form_helper.rb:1158:in `fields_for'
simple_form (1.3.0) lib/simple_form/action_view_extensions/builder.rb:99:in
`simple_fields_for'
config/systems/financial/views/cases/_applicants_infos.html.haml:3:in
`block_is_haml?'
org/jruby/RubyProc.java:276:in `call'
org/jruby/RubyProc.java:236:in `call'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:167:in `block_is_haml?'
haml (3.0.25) lib/haml/helpers.rb:253:in `with_tabs'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:167:in `block_is_haml?'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:172:in
`with_output_buffer'
haml (3.0.25) lib/haml/helpers/xss_mods.rb:109:in
`with_output_buffer_with_haml_xss'
actionpack (3.0.3) lib/action_view/helpers/capture_helper.rb:40:in `capture'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:92:in `capture_with_haml'
actionpack (3.0.3) lib/action_view/helpers/form_helper.rb:544:in `fields_for'
actionpack (3.0.3) lib/action_view/helpers/form_helper.rb:320:in `form_for'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:169:in `form_for_with_haml'
haml (3.0.25) lib/haml/helpers/xss_mods.rb:132:in `form_for_with_haml_xss'
simple_form (1.3.0) lib/simple_form/action_view_extensions/form_helper.rb:62:in
`simple_form_for'
simple_form (1.3.0) lib/simple_form/action_view_extensions/form_helper.rb:28:in
`with_custom_field_error_proc'
simple_form (1.3.0) lib/simple_form/action_view_extensions/form_helper.rb:61:in
`simple_form_for'
/hidden/ruby_gems_repo/bundler/gems/nested_form-10a77c978c1c/lib/nested_form/view_helper.rb:5:in
`nested_form_for'
config/systems/financial/views/cases/_applicants_infos.html.haml:1:in
`_config_systems_financial_views_cases__applicants_infos_html_haml___2131164631_2566_7845'
org/jruby/RubyObject.java:1340:in `send'
actionpack (3.0.3) lib/action_view/template.rb:135:in `render'
activesupport (3.0.3) lib/active_support/notifications.rb:54:in `instrument'
actionpack (3.0.3) lib/action_view/template.rb:127:in `render'
actionpack (3.0.3) lib/action_view/render/partials.rb:333:in `render_partial'
actionpack (3.0.3) lib/action_view/render/partials.rb:262:in `render'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:21:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:20:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.3) lib/action_view/render/partials.rb:260:in `render'
actionpack (3.0.3) lib/action_view/render/partials.rb:378:in `_render_partial'
actionpack (3.0.3) lib/action_view/render/rendering.rb:31:in `render'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
haml (3.0.25) lib/haml/helpers.rb:90:in `non_haml'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
app/views/cases/new.html.haml:5:in
`_app_views_cases_new_html_haml___1087773240_2336_0'
org/jruby/RubyObject.java:1340:in `send'
actionpack (3.0.3) lib/action_view/template.rb:135:in `render'
activesupport (3.0.3) lib/active_support/notifications.rb:54:in `instrument'
actionpack (3.0.3) lib/action_view/template.rb:127:in `render'
actionpack (3.0.3) lib/action_view/render/rendering.rb:59:in `_render_template'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:21:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:20:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.3) lib/action_view/render/rendering.rb:56:in `_render_template'
actionpack (3.0.3) lib/action_view/render/rendering.rb:26:in `render'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:13:in `render_with_haml'
actionpack (3.0.3) lib/abstract_controller/rendering.rb:114:in
`_render_template'
actionpack (3.0.3) lib/abstract_controller/rendering.rb:108:in `render_to_body'
actionpack (3.0.3) lib/action_controller/metal/renderers.rb:47:in
`render_to_body'
actionpack (3.0.3) lib/action_controller/metal/compatibility.rb:55:in
`render_to_body'
actionpack (3.0.3) lib/abstract_controller/rendering.rb:101:in
`render_to_string'
actionpack (3.0.3) lib/abstract_controller/rendering.rb:92:in `render'
actionpack (3.0.3) lib/action_controller/metal/rendering.rb:17:in `render'
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:40:in `render'
activesupport (3.0.3) lib/active_support/core_ext/benchmark.rb:5:in `ms'
/opt/jruby-1.6.0/lib/ruby/1.8/benchmark.rb:308:in `realtime'
activesupport (3.0.3) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:78:in
`cleanup_view_runtime'
activerecord (3.0.3) lib/active_record/railties/controller_runtime.rb:15:in
`cleanup_view_runtime'
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:39:in `render'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:10:in
`default_render'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:5:in
`send_action'
actionpack (3.0.3) lib/abstract_controller/base.rb:151:in `process_action'
actionpack (3.0.3) lib/action_controller/metal/rendering.rb:11:in
`process_action'
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.0.3) lib/active_support/callbacks.rb:459:in
`_run__499944821__process_action__943997142__callbacks'
activesupport (3.0.3) lib/active_support/callbacks.rb:230:in
`_conditional_callback_around_156'
activesupport (3.0.3) lib/active_support/callbacks.rb:330:in `around'
org/jruby/RubyObject.java:1340:in `send'
activesupport (3.0.3) lib/active_support/callbacks.rb:318:in
`_callback_around_77'
activesupport (3.0.3) lib/active_support/callbacks.rb:229:in
`_conditional_callback_around_156'
activesupport (3.0.3) lib/active_support/callbacks.rb:438:in
`_run__499944821__process_action__943997142__callbacks'
org/jruby/RubyObject.java:1334:in `send'
activesupport (3.0.3) lib/active_support/callbacks.rb:424:in
`_run_process_action_callbacks'
org/jruby/RubyObject.java:1361:in `send'
activesupport (3.0.3) lib/active_support/callbacks.rb:93:in `run_callbacks'
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:30:in
`process_action'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:21:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications/instrumenter.rb:20:in
`instrument'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:29:in
`process_action'
Request
Parameters:
{"type"=>"consumer"}
Show session dump
Show env dump
Response
Headers:
None
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email