When I use the same code on a much restricted set of objects, the error does not occur. The proxy situation is that all Class descriptors have no proxy. The Collections have proxy="true" and the references have proxy="false" auto-retrieve on "true" for all relations. There are no declared Interfaces. It is entirely possible that the object retrieved could come back to itself through a series of relations

Accessor >---<Department n:m through a intermediate object (with meaningful attributes) called DepAccess
Accessor>---Role m:1 An accessor has 1 Role


Each of these things has a number of other relationships which do not participate in this request (directly) but all Collections are autoretrieve and proxy true, while all references are autoretrieve with proxy false. If I remove all collections and references except those in the particular code from the repository.xml , the code works. If I leave all 100 tables in the repository.xml, it fails.

Help.



Here is the error:

java.lang.ArrayIndexOutOfBoundsException: 1
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getFKQuery1toN(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getFKQuery(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.retrieveCollection(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.retrieveCollections(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getDBObject(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getObjectByIdentity(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getReferencedObject(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.retrieveReference(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.retrieveReferences(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getDBObject(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getObjectByIdentity(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getReferencedObject(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.retrieveReference(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.retrieveReferences(Unknown Source)
at org.apache.ojb.broker.accesslayer.RsIterator.getObjectFromResultSet(Unknown Source)
at org.apache.ojb.broker.accesslayer.RsIterator.next(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(Unknown Source)
at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(Unknown Source)
at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(Unknown Source)
at org.apache.ojb.broker.accesslayer.CollectionProxy.loadData(Unknown Source)
at org.apache.ojb.broker.accesslayer.ListProxy.loadData(Unknown Source)
at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(Unknown Source)
at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(Unknown Source)
at com.rdlogic.test.TestDepAccessRole.testDepAccessRole(TestDepAccessRole.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
[org.apache.ojb.broker.accesslayer.RsIterator] ERROR: 1







--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to