[Opensource] class loader won't reload DBObject's stored in session

Michael Rimov rimovm at centercomp.com
Wed Jan 29 16:21:55 PST 2003


At 04:31 PM 1/28/2003 -0600, you wrote:

>I'm having a curious problem which I'm guessing is a Tomcat issue, but I 
>figured I post it here just in case.
>
>I am using ActionForms with a session scope and am storing DBObjects in 
>the ActionForm. Everything seems to be working well, except when I make 
>certain changes to the code. At that point, when I do a 
>SecuredDBObject.getFieldListArray().iterator() to get the field names of 
>the DBObject, it returns null and the DBObject can't be used from the 
>session. Not even restarting the server will solve this, but if I kill -9, 
>then it'll reset the problem (I assume because then it'll lose the 
>persistent sessions).

Right because a clean shutdown saves all current sessions.  If you turn off 
persistent sessions while debugging (recommended) you'll be better off.  I 
think what's happening are weird Classloader issues, probably dealing with 
the static member variables.

I'm really working on an architecture (sure been saying this long enough!) 
that will help with the static variables and classloading, because I'd like 
to see Expresso reloading capable.


                                                         -Mike






More information about the Opensource mailing list