db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mahler <t...@apache.org>
Subject Re: BugReport: PersistentLockMapImpl/LockEntry
Date Mon, 23 Dec 2002 08:45:25 GMT
Hi Martin,

This seems to a bug indeed. I'll put it on my todo list.
please try to use the PersistentFieldDefaultImpl (instead of the 
PersistentFieldPropertyImpl) for the time being.
(can be configured in OJB.properties)

cheers,
Thomas

Martin.Harm@itelligence.de wrote:
> Hi,
> when testing the PersistentLockMapImpl (using
> LockMapClass=org.apache.ojb.odmg.locking.PersistentLockMapImpl)
> the tests bounces with:
> 
>  org.apache.ojb.broker.PersistenceBrokerException: getWriteMethod returned
> null
> at
> org.apache.ojb.broker.metadata.PersistentFieldPropertyImpl.set(PersistentFieldPropertyImpl.java:114)
> at
> org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl.buildWithReflection(RowReaderDefaultImpl.java:216)
> at
> org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl.readObjectFrom(RowReaderDefaultImpl.java:110)
> at
> org.apache.ojb.broker.accesslayer.RsIterator.getObjectFromResultSet(RsIterator.java:398)
> at org.apache.ojb.broker.accesslayer.RsIterator.next(RsIterator.java:203)
> at
> org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:1117)
> at
> org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:1239)
> at
> org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:1265)
> at
> org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:1252)
> at
> org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByQuery(PersistenceBrokerImpl.java:1487)
> at
> org.apache.ojb.odmg.locking.PersistentLockMapImpl.getWriter(PersistentLockMapImpl.java:146)
> at
> org.apache.ojb.odmg.locking.AbstractLockStrategy.getWriter(AbstractLockStrategy.java:98)
> at
> org.apache.ojb.odmg.locking.ReadUncommittedStrategy.releaseLock(ReadUncommittedStrategy.java:151)
> at
> org.apache.ojb.odmg.locking.LockManagerDefaultImpl.releaseLock(LockManagerDefaultImpl.java:144)
> at org.apache.ojb.odmg.TransactionImpl.removeLock(TransactionImpl.java:466)
> at org.apache.ojb.odmg.TransactionImpl.doClose(TransactionImpl.java:355)
> at org.apache.ojb.odmg.TransactionImpl.commit(TransactionImpl.java:496)
> .. some more
> 
> a closer look at org.apache.ojb.odmg.locking.LockEntry shows, that there is
> no
> setter for most of the properties
> (oidString,transactionId,isolationLevel..)
> 
> 
> best regards.
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ojb-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ojb-dev-help@jakarta.apache.org>
> 
> 
> 
> 



Mime
View raw message