On 12/27/05, Vamsi Atluri <[EMAIL PROTECTED]> wrote: > I am currently using ojb 1.0.1. I have a table with several references. > The first time when I insert to this table everything inserts correctly. > The next time, when I need to update this row, I retrieve the reference > from DB, update the values and call broker.store() again. That's when I > get the following error: > > java.lang.ArrayIndexOutOfBoundsException: 1 > at > org.apache.ojb.broker.core.PersistenceBrokerImpl.setFKField(PersistenceBrokerImpl.java:1045)
This normally happens when the number of columns in a foreign key (reference/collection) is not the same as the targeted primary key. It would help if you post your respitory definition and the code that exhibits the exception. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
