Eelco,

Thanks for your tip.

Bas

----- Original Message ----- From: "Eelco Hillenius" <[email protected]>
To: <[email protected]>
Sent: Thursday, August 27, 2009 10:09 AM
Subject: Re: How to detect model "leakage" into session


One 'hack' of a way to check whether you have stuff in your session
that shouldn't be, is to make sure that the objects you don't want
sticking around are not serializable, and you'll see stacktraces soon
enough. If that's an options, it's a useful hack...

Eelco

On Wed, Aug 26, 2009 at 12:29 PM, Bas Gooren<[email protected]> wrote:
Hi all,

My problem is as follows: I use LoadableDetachableModels throughout my application, and have made sure I never use a model without it being attached to a component to prevent models which never get their detach() method called. Nonetheless, after hitting two fairly simple pages which list some database data in my application, I get a 100kb session which is filled with literal strings from model objects.

I've fired up my (Eclipse) debugger and have stepped through all models on one of the pages after setting a breakpoint on the pages onDetach() method. I see all LoadableDetachableModels are detached, so I have no idea what's causing this.

What would be a good strategy for finding the source of this problem?

Bas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to