[Catalyst] error using session and authn plug-ins under apache

leonard.a.jaffe at jpmchase.com leonard.a.jaffe at jpmchase.com
Fri Jul 28 20:39:35 CEST 2006


> It was around 1414 EST when Yuval replied to Len:
> > On Fri, Jul 28, 2006 at 11:42:40 -0400, leonard.a.jaffe at jpmchase.com 
wrote:
> > When I use session and authentication together under apache, I get 
this 
> > error
> > [error] Caught exception in engine "Can't store CODE items at 
> > ..\..\lib\Storable.pm 
> > (autosplit into ..\..\lib\auto\Storble\_freeze.al) line 290, at 
> > D:/Perl/site/lib/Object/Signature.pm line 19"

 
> It sounds like the authentication plugin is somehow storing a code
> reference in the session (are you overriding the for_session method
> in your user class? That's supposed to export a simplified data
I am not overriding for_session. At least not intentionally. 

I've overridden Credential::login() so that I can pluck the user's name 
out of the ether. But 
I've done no tinkering with User.  Do you think I should?


> structure that can be safely serialized and used to refetch the user
> from the store efficiently - it sounds like it's giving back a code
> ref).
Hmm. I'll look around in my site/lib directories and see if I can spot 
anything. Maybe 
something needs upgraded and just doesn't know it.


> Object::Signature is used to make sure that the session is only
> written to the database if it changed, in order to save unnecessary
> IO and to eliminate possible race conditions.
That's a good thing in my book.

> > I do not get this error using the myapp_server.pl server.
> That's very odd...
Nicely understated.

> Please post code/configuration if you can.
Which bits would be most helpful?

Len.


-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060728/b3098513/attachment.htm 


More information about the Catalyst mailing list