I'm using Rails 2.2.2 and I started getting session errors when I upgraded to JRuby 1.1.5. Message and call stack is below. I added some debugging code to pstore.rb just to test my sanity (which is on shaky grounds to begin with):
begin content = Marshal::dump(table) Marshal::load(content) File.open( "/tmp/good.txt", 'w' ) { |io| io.write(content) } rescue Exception => e File.open( "/tmp/bad.txt", 'w' ) { |io| io.write(content) } puts "error message = " + e.message end With 1.1.5 (and 6RC1) I catch an exception at the same point every time. It looks like Marshall::dump is creating a stream that Marshal::load can't read. If I switch to 1.1.4 it does not happen. I can recreate the bug so if you want more info I can probably get it. Thanks, DG Top few lines in the call stack: /!\ FAILSAFE /!\ Fri Dec 12 16:17:58 -0500 2008 Status: 500 Internal Server Error dump format error() /usr/local/lib/jruby/lib/ruby/1.8/pstore.rb:354:in `load' /usr/local/lib/jruby/lib/ruby/1.8/pstore.rb:354:in `load' /usr/local/lib/jruby/lib/ruby/1.8/pstore.rb:310:in `transaction' /home/dchristensen/.gem/jruby/1.8/gems/actionpack-2.2.2/lib/action_controller/cgi_ext/session.rb:47:in `initialize' /usr/local/lib/jruby/lib/ruby/1.8/cgi/session.rb:273:in `initialize' --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email