Em 26-04-2011 14:54, Anthony Juckel escreveu:

Things happening apparently at random strikes me as a probable concurrency issue. Are you running rails multi-threaded? If so, does running it single-threaded prevent the issue? Finally, do you have a full stack trace available?



"config.threadsafe!" is not explicited anywhere. It just happens as a comment in config/environment/production.rb...

Here are some different stack traces with different contexts.

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): 98: <div><%= f.text_area :reasoning, :size => '70x20', :style => 'width: 100%' %></div>
    99: </fieldset>
    100: <div style="text-align: center">
101: <%= submit_tag t(:'company.send_decision'), :disabled => @disable_edit || [email protected]_maker?(@company) %></div>
    102: <% end %>
    103: </div>
app/views/simulation/1/fill_decision.html.erb:101:in `_app_views_simulation___fill_decision_html_erb__1288731082_7620_0' app/views/simulation/1/fill_decision.html.erb:39:in `_app_views_simulation___fill_decision_html_erb__1288731082_7620_0'
  app/controllers/companies_controller.rb:81:in `fill_decision'

Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (6.0ms) Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (15.0ms) Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (59.0ms)



ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
    85: <table class="border">
86: <% [:hr_production_intention, :hr_input_kits_to_buy, :hr_equipments_to_buy, :hr_trainees].each do |attr| %>
    87: <tr><th><%= f.label attr,
88: t(:"activerecord.attributes.simulation_model1.decision.#{attr}") %></th>
    89: <td><%= t :'decisions.qty' %></td>
    90: <td class="right_field"><%= f.text_field attr %></td>
    91: </tr>
app/views/simulation/1/fill_decision.html.erb:88:in `_app_views_simulation___fill_decision_html_erb__1288731082_7712_0' app/views/simulation/1/fill_decision.html.erb:86:in `_app_views_simulation___fill_decision_html_erb__1288731082_7712_0' app/views/simulation/1/fill_decision.html.erb:39:in `_app_views_simulation___fill_decision_html_erb__1288731082_7712_0'
  app/controllers/companies_controller.rb:81:in `fill_decision'

Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (4.0ms) Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (7.0ms) Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (20.0ms)





In another view, that worked before the error raised the first time:


ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
    7:
8: <strong><%= t('simulation.current_period') %></strong>: <%= @simulation.t_period(@simulation.current_period) %>
    9:
10: <div><%= link_to t(:'simulation.results'), :action => 'results', :id => @simulation.id if @simulation.current_period > 1 %> - 11: <%= link_to t('simulation.simulate'), :action => 'simulate', :id => @simulation.id %>
    12: </div>
    13:
app/views/simulations/show.html.erb:10:in `_app_views_simulations_show_html_erb__748526413_8008_0'

Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (4.0ms) Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.0ms) Rendered /home/rodrigo/.rvm/gems/jruby-1.6.1@rails/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (27.0ms)


I don't think it helps at all, but... :)

Regards,

Rodrigo.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to