hi, just a note,
this issue might also have to do something with the memory leak i reported last week. the copy is stored using ThreadLocal, but never released, where additional copies are also stored in ThreadLocal (kind of like a black hole). Roger Janssen -----Original Message----- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: dinsdag 25 november 2003 0:57 To: OJB Users List Subject: Re: MetadataManager.copyOfGlobalRepository() and transient fields in repository objects Hi Andy, Andy Malakov wrote: > Hello All, > > It looks like a bug: > > Class o.a.ojb.broker.metadata.MetadataManager.copyOfGlobalRepository() uses SerializationUtils.clone() to return a copy of OJB > repository. At the same time some objects in repository graph have transient fields which become un-initialized (null) after the > clone. > > For example, o.a.ojb.broker.metadata.fieldaccess.AnonymousPersistentField has fkCache map that will become null in clone, and will > cause NullPointerException when get()/set() will be executed. > > Method copyOfGlobalRepository() is required for per-thread handling of metadata. > you are right, it's a bug. Put this on my todo list. regards, Armin > Thank you, > Andy > > > --------------------------------------------------------------------- > 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] ************************************************************************* The information contained in this communication is confidential and is intended solely for the use of the individual or entity to whom it is addressed.You should not copy, disclose or distribute this communication without the authority of iBanx bv. iBanx bv is neither liable for the proper and complete transmission of the information has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
