db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janet Song" <...@silicomp.com.sg>
Subject ArrayIndexOutOfBoundsException when using composite primary keys
Date Fri, 28 Mar 2003 11:58:16 GMT
Hi,

When i map compound or composite primary keys, i get an
ArrayOutOfBoundsException. Single primary key is fine. Appreciate it if
someone could shed some light on this problem. Thanks!


[org.apache.ojb.broker.accesslayer.JdbcAccessImpl] ERROR:
PersistenceBrokerException during the execution of materializeObject: Could
not generate primary key values for given Identity
com.fedex.data.CorePieceCounterImpl{188119}, exception was
java.lang.ArrayIndexOutOfBoundsException: 1: 1
Could not generate primary key values for given Identity
com.fedex.data.CorePieceCounterImpl{188119}, exception was
java.lang.ArrayIndexOutOfBoundsException: 1: 1
java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.ojb.broker.util.BrokerHelper.getKeyValues(Unknown
Source)
        at org.apache.ojb.broker.util.BrokerHelper.getKeyValues(Unknown
Source)
        at
org.apache.ojb.broker.accesslayer.StatementManager.getKeyValues(Unknown
Source)
        at
org.apache.ojb.broker.accesslayer.StatementManager.bindSelect(Unknown
Source)
        at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.materializeObject(Unknown
Source)
        at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getDBObject(Unknown
Source)
        at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByIdentity(Unk
nown Source)
        at
org.apache.ojb.broker.singlevm.DelegatingPersistenceBroker.getObjectByIdenti
ty(Unknown Source)
        at
org.apache.ojb.broker.accesslayer.IndirectionHandler.materializeSubject(Unkn
own Source)
        at
org.apache.ojb.broker.accesslayer.IndirectionHandler.getRealSubject(Unknown
Source)
        at
org.apache.ojb.broker.accesslayer.IndirectionHandler.invoke(Unknown Source)
        at $Proxy1.getSubmitFlag(Unknown Source)
        at TestClient.testEqualCriteriaOneToOne(TestClient.java:104)


regards,

Janet



Mime
View raw message