Andy Malakov wrote:
Hello All,you are right, it's a bug. Put this on my todo list.
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.
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]
