Thomas Dudziak <tomdzk <at> gmail.com> writes: > > In what kind of environment do you run this code ? The IllegalAccess > error usually occurs if you use the direct-access field-access > implementation in a security environment like a j2ee server. > > Tom >
Tom I dont think the environemtn is a concern. After debugging what is going on OJB is trying to use the DefaultFieldConversionImpl on the wrong type when setting the field in question. The field in the correct object type is of (my) type DebtRank for which I have a field conversion specified. BUT, as OJB is materilasing the wrong object it does not get the right field converter and hence the direct field access (as you surmised) is trying to do a set on the field with a string value when it should be a DebtRank value. I think the problem is to do with relationship prefetching and Identity creation in 1.0.1. I noticed in CVS that the various prefetchers all use the new identity factory methods (PersistenceBroker.serviceIdentity().buildIdentity ()). Is there a place I can get the latest CVS version of OJB from (I read on the mails lists about v1.0.2 BTW)? I do not have CVS access unfortunately (behind a corp firewall). Thanks Mark Rowell --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
