This is not easy for me and I would need too much free time, which I don't have currently.

But, recently I got a bigger stacktrace:


ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): 32: <tr><th><%= t(:'simulation.no_company') %></th><td class="company" data-id="0"> 33: <%= render :partial => "participants_without_company", :locals => { :simulation => @simulation } %>
    34: </td></tr>
    35: <% @simulation.companies.each do |company| %>
36: <tr><th><%= link_to company.name, :controller => 'companies', :action => 'fill_decision', 37: :id => company %></th><td class="company" data-id="<%= company.id %>"> 38: <%= render :partial => "company_partners", :locals => {:company => company} %>
  org/jruby/RubyString.java:2430:in `concat'
activesupport (3.0.7) lib/active_support/core_ext/string/output_safety.rb:80:in `concat'
  actionpack (3.0.7) lib/action_view/template/handlers/erb.rb:14:in `<<'
app/views/simulations/show.html.erb:35:in `_app_views_simulations_show_html_erb__1359300270_6660_0' activerecord (3.0.7) lib/active_record/associations/association_collection.rb:431:in `method_missing' activerecord (3.0.7) lib/active_record/associations/association_proxy.rb:220:in `method_missing'
  org/jruby/RubyArray.java:1602:in `each'
  org/jruby/RubyBasicObject.java:1667:in `__send__'
  org/jruby/RubyKernel.java:2073:in `send'
activerecord (3.0.7) lib/active_record/associations/association_proxy.rb:220:in `method_missing' activerecord (3.0.7) lib/active_record/associations/association_collection.rb:431:in `method_missing' app/views/simulations/show.html.erb:34:in `_app_views_simulations_show_html_erb__1359300270_6660_0'
  org/jruby/RubyBasicObject.java:1673:in `__send__'
  org/jruby/RubyKernel.java:2077:in `send'
  actionpack (3.0.7) lib/action_view/template.rb:135:in `render'
activesupport (3.0.7) lib/active_support/notifications.rb:54:in `instrument'
  actionpack (3.0.7) lib/action_view/template.rb:127:in `render'
actionpack (3.0.7) lib/action_view/render/rendering.rb:59:in `_render_template' activesupport (3.0.7) lib/active_support/notifications.rb:52:in `instrument' activesupport (3.0.7) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (3.0.7) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (3.0.7) lib/active_support/notifications.rb:52:in `instrument' actionpack (3.0.7) lib/action_view/render/rendering.rb:56:in `_render_template'
  actionpack (3.0.7) lib/action_view/render/rendering.rb:26:in `render'
actionpack (3.0.7) lib/abstract_controller/rendering.rb:115:in `_render_template' actionpack (3.0.7) lib/abstract_controller/rendering.rb:109:in `render_to_body' actionpack (3.0.7) lib/action_controller/metal/renderers.rb:47:in `render_to_body' actionpack (3.0.7) lib/action_controller/metal/compatibility.rb:55:in `render_to_body' actionpack (3.0.7) lib/abstract_controller/rendering.rb:102:in `render_to_string'
  actionpack (3.0.7) lib/abstract_controller/rendering.rb:93:in `render'
actionpack (3.0.7) lib/action_controller/metal/rendering.rb:17:in `render' actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:40:in `render'
  activesupport (3.0.7) lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/rodrigo/.rvm/rubies/jruby-1.6.1/lib/ruby/1.9/benchmark.rb:309:in `realtime'
  activesupport (3.0.7) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' activerecord (3.0.7) lib/active_record/railties/controller_runtime.rb:15:in `cleanup_view_runtime' actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:39:in `render' actionpack (3.0.7) lib/action_controller/metal/implicit_render.rb:14:in `default_render' actionpack (3.0.7) lib/action_controller/metal/implicit_render.rb:9:in `send_action' actionpack (3.0.7) lib/abstract_controller/base.rb:150:in `process_action' actionpack (3.0.7) lib/action_controller/metal/rendering.rb:11:in `process_action' actionpack (3.0.7) lib/abstract_controller/callbacks.rb:18:in `process_action' activesupport (3.0.7) lib/active_support/callbacks.rb:459:in `_run__184451297__process_action__453433196__callbacks'
  org/jruby/RubyBasicObject.java:1667:in `__send__'
  org/jruby/RubyKernel.java:2073:in `send'
activesupport (3.0.7) lib/active_support/callbacks.rb:425:in `_run_process_action_callbacks'
  org/jruby/RubyBasicObject.java:1673:in `__send__'
  org/jruby/RubyKernel.java:2077:in `send'
activesupport (3.0.7) lib/active_support/callbacks.rb:94:in `run_callbacks' actionpack (3.0.7) lib/abstract_controller/callbacks.rb:17:in `process_action' actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:30:in `process_action' activesupport (3.0.7) lib/active_support/notifications.rb:52:in `instrument' activesupport (3.0.7) lib/active_support/notifications/instrumenter.rb:21:in `instrument' activesupport (3.0.7) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (3.0.7) lib/active_support/notifications.rb:52:in `instrument' actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:29:in `process_action' actionpack (3.0.7) lib/action_controller/metal/rescue.rb:17:in `process_action'
  actionpack (3.0.7) lib/abstract_controller/base.rb:119:in `process'
  actionpack (3.0.7) lib/abstract_controller/rendering.rb:41:in `process'
  actionpack (3.0.7) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.7) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  actionpack (3.0.7) lib/action_controller/metal.rb:178:in `action'
  org/jruby/RubyProc.java:256:in `call'
actionpack (3.0.7) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
  actionpack (3.0.7) lib/action_dispatch/routing/route_set.rb:27:in `call'
  rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `call'
  rack-mount (0.6.14) lib/rack/mount/code_generation.rb:111:in `recognize'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:94:in `optimized_each'
  rack-mount (0.6.14) lib/rack/mount/code_generation.rb:110:in `recognize'
  rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call'
  actionpack (3.0.7) lib/action_dispatch/routing/route_set.rb:493:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  actionpack (3.0.7) lib/action_dispatch/middleware/head.rb:14:in `call'
  rack (1.2.2) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.0.7) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call' actionpack (3.0.7) lib/action_dispatch/middleware/cookies.rb:302:in `call'
  activerecord (3.0.7) lib/active_record/query_cache.rb:32:in `call'
activerecord (3.0.7) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
  activerecord (3.0.7) lib/active_record/query_cache.rb:12:in `cache'
  activerecord (3.0.7) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.7) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call' actionpack (3.0.7) lib/action_dispatch/middleware/callbacks.rb:46:in `call' activesupport (3.0.7) lib/active_support/callbacks.rb:431:in `_run_call_callbacks' actionpack (3.0.7) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
  rack (1.2.2) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/remote_ip.rb:48:in `call' actionpack (3.0.7) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
  railties (3.0.7) lib/rails/rack/logger.rb:13:in `call'
  rack (1.2.2) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.7) lib/active_support/cache/strategy/local_cache.rb:90:in `call'
  rack (1.2.2) lib/rack/lock.rb:11:in `call'
  rack (1.2.2) lib/rack/lock.rb:11:in `call'
  actionpack (3.0.7) lib/action_dispatch/middleware/static.rb:30:in `call'
  railties (3.0.7) lib/rails/application.rb:168:in `call'
  org/jruby/RubyBasicObject.java:1673:in `__send__'
  org/jruby/RubyKernel.java:2077:in `send'
  railties (3.0.7) lib/rails/application.rb:77:in `method_missing'
  railties (3.0.7) lib/rails/rack/log_tailer.rb:14:in `call'
  rack (1.2.2) lib/rack/content_length.rb:13:in `call'
  rack (1.2.2) lib/rack/handler/webrick.rb:52:in `service'
/home/rodrigo/.rvm/rubies/jruby-1.6.1/lib/ruby/1.9/webrick/httpserver.rb:111:in `service' /home/rodrigo/.rvm/rubies/jruby-1.6.1/lib/ruby/1.9/webrick/httpserver.rb:70:in `run' /home/rodrigo/.rvm/rubies/jruby-1.6.1/lib/ruby/1.9/webrick/server.rb:183:in `start_thread'


Does it help a bit?


Em 27-04-2011 12:35, Thomas E Enebo escreveu:
If you can minimize a smallish 1.9 Rails application (or smaller than
a Rails app), then I would be willing to figure it out.  If I had to
hazard a guess I would say it is our regexp cache getting confused (we
do not cache the same regexp with different encodings as separate
entries).  It is not supposed to get confused, but encoding support
has been difficult :)

-Tom

On Tue, Apr 26, 2011 at 12:46 PM, Rodrigo Rosenfeld Rosas
<[email protected]>  wrote:
I'm getting this error randomly while navigating in my views in a Rails
application, after a while, I'll get this message about any line number and
any view. Totally random.

I never use special characters on my views, since I use I18n on them.

My application only runs in Ruby 1.9, so I can't tell it if it would happen
in 1.8 mode... I'm using JRuby 1.6.1 with JRUBY_OPTS=--1.9.

O navigate for a few seconds in any view without problems. After the problem
happens once, it happens in all views all the time.

Any idea, what could this be?

Best regards,

Rodrigo.






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

   http://xircles.codehaus.org/manage_email


Reply via email to