The issue is that we don't properly marshal out the class if it's a simple extension of one of our core classes. We just marshall out that it's a Hash, rather than the actual type, and so it comes back in. I'll try to dig up the patch I sent before.
On 6/16/06, Thomas E Enebo <[EMAIL PROTECTED]> wrote:
It appears that when we marshal the session it writes a FlashHash
as a Hash, then on reread of session file it now thinks it is a Hash.
A marshalling error? Perish the thought :)
-Tom
On Fri, 16 Jun 2006, Thomas E Enebo defenestrated me:
> It looks like somewhere @session['flash'] is getting set to a
> regular hash. That is causing the error. FlashHash when explcitly set
> then works...
>
> -Tom
>
> On Fri, 16 Jun 2006, Ola Bini defenestrated me:
> > Wow, goodie!
> >
> > I checked that flash implementation, and it's really strange. I trried to
> > extract it (just taking out FlashHash and FlashNow) and using it from irb
> > in regular C Ruby,
> > and both keep and sweep result in infinite recursion. I can't really
> > understand how it works in Rails..
> >
> > /O
> >
> > At 15:08 2006-06-16, you wrote:
> > > HEH...Well that didn't take long. StringIO.sync= was expecting
> > >the wrong type. Now the cool part. Cookbook is running using jdbc
> > >and webrick! Well that is if I comment out flash.sweep in flash.rb
> > >in actionpack. I will look at that next.
> > >
> > >-Tom
> > >
> > >On Fri, 16 Jun 2006, Thomas E Enebo defenestrated me:
> > >
> > >> I added your two patches to the tree where I already have Ola's fixes.
> > >> I gave this a run against webrick running rails and we now get an
> > >> java exception versus a deadlock, so things look better. I am home sick
> > >> today so I will investigate. I will be applying Ola's patches today
> > >> and I can apply the two you sent if you want.
> > >>
> > >> Here is the stack trace from webrick+rails on a simple request:
> > >> Exception in thread "Ruby Thread19552406" java.lang.AssertionError:
> > >java.lang.IllegalArgumentException: argument type mismatch
> > >>
--
+ http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+
| Thomas E Enebo, Protagonist | "Luck favors the prepared |
| | mind." -Louis Pasteur |
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel
--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com
_______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel