jruby / jruby-rack

Rack for JRuby and Java appservers
MIT License
397 stars 137 forks source link

cache error: can't dump hash with default proc #132

Closed kares closed 11 years ago

kares commented 11 years ago

Most likely caused by our Rack::Handler::Servlet's custom env Hash. Originally reported at trinidad/trinidad#98 by @twiz718 :

My setup:

trinidad (1.4.4) trinidad_init_services (1.2.2) trinidad_jars (1.1.1)

java version "1.7.0_09" OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~11.10.1) OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on OpenJDK 64-Bit Server VM 1.7.0_09-b30 [linux-amd64]

This error happens for every asset.

2012-11-26 17:01:28 -0600 INFO: Served asset /jquery.ui.theme.css - 304 Not Modified (28ms)
2012-11-26 17:01:28 -0600 INFO: cache error: can't dump hash with default proc
org/jruby/RubyMarshal.java:101:in `dump'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/actionpack-3.1.6/lib/action_dispatch/http/rack_cache.rb:25:in `write'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/metastore.rb:83:in `store'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:267:in `store'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:232:in `validate'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:181:in `lookup'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/railties-3.1.6/lib/rails/engine.rb:456:in `call'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/railties-3.1.6/lib/rails/application.rb:143:in `call'
file:/home/capistrano/.rvm/gems/jruby-1.7.0@workhub/gems/jruby-rack-1.1.10/lib/jruby-rack-1.1.10.jar!/rack/handler/servlet.rb:22:in `call'
2012-11-26 17:01:28 -0600 INFO: cache: [GET /assets/jquery.ui.theme.css] stale, valid
2012-11-26 17:01:28 -0600 INFO: cache error: can't dump hash with default proc
org/jruby/RubyMarshal.java:101:in `dump'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/actionpack-3.1.6/lib/action_dispatch/http/rack_cache.rb:25:in `write'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/metastore.rb:83:in `store'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:267:in `store'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:232:in `validate'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:181:in `lookup'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/railties-3.1.6/lib/rails/engine.rb:456:in `call'
/srv/www/workhub/shared/bundle/jruby/1.9/gems/railties-3.1.6/lib/rails/application.rb:143:in `call'
file:/home/capistrano/.rvm/gems/jruby-1.7.0@workhub/gems/jruby-rack-1.1.10/lib/jruby-rack-1.1.10.jar!/rack/handler/servlet.rb:22:in `call'
twiz718 commented 11 years ago

confirmed