Hi, I have "include DRbUndumped" in one of my model classes. Whenever my app accesses the session I get the following: can''t dump /usr/lib/ruby/1.8/drb/drb.rb:395:in `_dump'' /usr/lib/ruby/1.8/pstore.rb:349:in `dump'' /usr/lib/ruby/1.8/pstore.rb:327:in `transaction'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' /usr/lib/ruby/1.8/cgi/session.rb:330:in `close'' <snip rest of stack trace> Any thoughts on what is happening here? jh -- James Hughes Web application developer Vancouver, BC "Developing a coherent political analysis is in many respects contingent upon an ability to connect one context to another, a process not dissimilar to playing the kid''s game of dot-to-dot." - Ward Churchill, from ''"A Government of Laws"?''
Ezra Zygmuntowicz
2006-Jul-25 23:59 UTC
[Backgroundrb-devel] can''t dump: session wierdness
On Jul 25, 2006, at 4:49 PM, James Hughes wrote:> Hi, > > I have "include DRbUndumped" in one of my model classes. Whenever my > app accesses the session I get the following: > > can''t dump > /usr/lib/ruby/1.8/drb/drb.rb:395:in `_dump'' > /usr/lib/ruby/1.8/pstore.rb:349:in `dump'' > /usr/lib/ruby/1.8/pstore.rb:327:in `transaction'' > /usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' > /usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close'' > /usr/lib/ruby/1.8/cgi/session.rb:330:in `close'' > <snip rest of stack trace> > > Any thoughts on what is happening here? > > jh > > -- > James Hughes > Web application developer > Vancouver, BCHey James- What are you trying to store in the session? Are you storing the entire model object or just the id? I''ve seen that error when you try to store something in the session that can''t be marshaled. -Ezra