I'm getting the following error while trying to run a read-only query.  I 
haven't been able to do much research of my own since the 1.1.2.1 release I'm 
using doesn't have the JDO source available (or the related javadocs).  The 
object I'm trying to query has a collection property of other another castor 
mapped object as well as two other 1-to-1 properties to other castor mapped 
objects.  None of those properties are being explicitely loaded and all castor 
mapped properties are marked as lazy="true" in the castor mappings.  Any 
pointers on what might cause a read-only query to fail like this are 
appreciated.  On a related note, can the release process include the JDO source 
and javadocs?  Finally can the current release be reposted with JDO source and 
javadocs?

Caused by: 
java.lang.IllegalStateException: Transaction [EMAIL PROTECTED] does not hold 
the read lock: com.apex.mytracker.app.workout.WorkoutExercise/<1(1)>/0 -/-!
 at org.exolab.castor.persist.LockEngine$TypeInfo.assure(LockEngine.java:1353)
 at 
org.exolab.castor.persist.LockEngine$TypeInfo.access$600(LockEngine.java:1102)
 at org.exolab.castor.persist.LockEngine.preStore(LockEngine.java:766)
 at 
org.castor.persist.AbstractTransactionContext.prepare(AbstractTransactionContext.java:1198)
 at 
org.exolab.castor.jdo.engine.LocalDatabaseImpl.commit(LocalDatabaseImpl.java:169)
 at 
com.apex.mytracker.app.AbstractBusinessObject.releaseDatabase(AbstractBusinessObject.java:116)
 at 
com.apex.mytracker.app.AbstractBusinessObject.handleOQLQueryResults(AbstractBusinessObject.java:675)
 at 
com.apex.mytracker.app.AbstractBusinessObject.executeFind(AbstractBusinessObject.java:590)
 at 
com.apex.mytracker.app.AbstractBusinessObject.internalFindByProperties(AbstractBusinessObject.java:525)

Thanks,
Jon

Reply via email to