For the benefit of archive readers like myself: That was a misleading exception - the real problem was OJB not being able to reflect the "id" property. The default "PersistentFieldClass" property setting in OJB.properties for version 0.9.4 was "PersistentFieldDefaultImpl", but now it appears to be "PersistentFieldPropertyImpl". I replaced my OJB.properties with a new version from the examples, as the old one had redundant/invalid values for the new version.
Once I started stepping through the source I noticed a whole lot of bean introspection where I was expecting to see class reflection - changing the property back to the default impl of course fixed it. G > -----Original Message----- > From: Gareth Cronin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 9 October 2002 9:45 a.m. > To: 'OJB Users List' > Subject: 0.9.4-0.9.7 upgrade woes - autoincrement failure > > > I've been searching through mentions of this earlier in the > list.. but I > haven't found a solution yet. My code that works fine under > 0.9.4 is failing > under 0.9.7 with the following exception: > > java.lang.RuntimeException: OJB ERROR: Dont know how to > autoincrement field > class com.kiwiplan.jtss.Place.id > at > org.apache.ojb.broker.metadata.ClassDescriptor.getAutoIncremen > tValue(Unknown > Source) > at > org.apache.ojb.broker.metadata.ClassDescriptor.getKeyValues(Un > known Source) > at org.apache.ojb.broker.Identity.<init>(Unknown Source) > at > org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unk > nown Source) > at > org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unk > nown Source) > > I'm using the default hi/lo sequence manager mapped to an > INTEGER column, > I've updated the OJB.properties file and the > repository_internal.xml to the > new version. > > What have I missed? > > Thanks > > Gareth. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
