Thanks Armin,
Richter
Armin Waibel wrote:
Hi Edson,
that's really strange. I add a new test case two weeks ago called M2NTest. This test handle a m:n relation between Movie (2 PK) and Actor (1 PK) this test pass.
I will try to locally increase the number of PK in each object, now Movie has 3 PK and Actor has 2 PK. All tests pass without problems.
I will check in the modified test soon.
Take care of the order of PK fields in your class-descriptors and in the indirection table. Maybe this cause your problems.
regards, Armin
Edson Carlos Ericksson Richter wrote:
Sorry by reposting, but I'm in real trouble here... If I make a M:N without indirection works fine (in real, it's a 1:N:1).
There is any other info (I already sent the collection-descriptors some time ago) I can send to help debug this?
TIA,
Edson Richter
[EMAIL PROTECTED] wrote:
Hi! I'm using latest CVS Head (of about 5 hours ago) and a multi-key M:N with indirection
table, and still getting the AIOOBE.
In M side I have 3 fields in PK, and in N side I have 2 fields in PK. The stacktrace for the
error is:
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$Join.appendJoinEqualities(SqlQueryStatement.java:2000)
at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendJoin(SqlQueryStatement.java:1446)
at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendTableWithJoins(SqlQueryStatement.java:1429)
at
org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.getStatement(SqlSelectStatement.java:243)
at
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.getPreparedSelectStatement(SqlGeneratorDefaultImpl.java:151)
at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImpl.java:275)
at org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObject.java:74)
at org.apache.ojb.broker.accesslayer.RsIterator.<init>(RsIterator.java:183)
at
org.apache.ojb.broker.core.RsIteratorFactoryImpl.createRsIterator(RsIteratorFactoryImpl.java:58)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(PersistenceBrokerImpl.java:1810)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getIteratorFromQuery(PersistenceBrokerImpl.java:1321)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getObjectByQuery(PersistenceBrokerImpl.java:1432)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByQuery(DelegatingPersistenceBroker.java:300)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByQuery(DelegatingPersistenceBroker.java:300)
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]
