This one time, at band camp, Fabio Andr�s Zorzan said:
FAZ>Hi,
FAZ> I am having problems when a OQLQuery gives as a
FAZ>result more than 20 Objects, the exception is:
FAZ>"java.lang.IllegalStateException: Transaction
FAZ>org.exolab.castor.jdo.engine.TransactionContextImpl@60877b
FAZ>does not hold the read lock:
FAZ>domain.metaSystem.style.PLColor/21/40 -/-!"
FAZ>This exception is genereted in the Commit trasaction.
FAZ>
FAZ>What can be happening?
FAZ>Thanks for your help.
FAZ>Fabio.
FAZ>
FAZ>mapping file of class PLColor
FAZ>
FAZ>
FAZ>
FAZ><?xml version="1.0" encoding="UTF-8"?>
FAZ><!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object
FAZ>Mapping DTD Version 1.0//EN"
FAZ>"http://castor.exolab.org/mapping.dtd">
FAZ><mapping>
FAZ>
FAZ> <class name="domain.metaSystem.style.PLColor"
FAZ>identity="id" key-generator="MAX" access="shared"
FAZ>auto-complete="false">
FAZ> <cache-type type="unlimited"/>
FAZ><description>PLColor definition</description>
FAZ> <map-to table="pl_color" xml="pl_color" />
FAZ> <field name="id" type="long" required="false"
FAZ>direct="false" lazy="false" transient="false">
FAZ> <sql name="id" type="bigint"
FAZ>read-only="false" dirty="check" />
FAZ> <xml name="id" node="attribute" />
FAZ> </field>
FAZ> <field name="r" type="integer"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ> <sql name="r" type="tinyint"
FAZ>read-only="false" dirty="check" />
FAZ> <xml name="r" node="element" />
FAZ> </field>
FAZ> <field name="g" type="integer"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ> <sql name="g" type="tinyint"
FAZ>read-only="false" dirty="check" />
FAZ> <xml name="g" node="element" />
FAZ> </field>
FAZ> <field name="b" type="integer"
FAZ>required="false" direct="false" lazy="false"
FAZ>transient="false">
FAZ> <sql name="b" type="tinyint"
FAZ>read-only="false" dirty="check" />
FAZ> <xml name="b" node="element" />
FAZ> </field>
FAZ> <!-- PLColor has reference to many
FAZ>GenericPanelConfig 1 to N-->
FAZ> <field name="genericPanelConfigs"
FAZ>type="domain.metaSystem.style.GenericPanelConfig"
FAZ>required="false" direct="false" lazy="false"
FAZ>collection="vector" transient="false">
FAZ> <sql many-key="back_ground_pl_color_id"
FAZ>read-only="false" dirty="check" />
FAZ> <xml name="genericPanelConfigs"
FAZ>node="element" />
FAZ> </field>
FAZ> <!-- PLColor back ground has reference to many
FAZ>ComponentConfig 1 to N-->
FAZ> <field name="componentConfigBackgrounds"
FAZ>type="domain.metaSystem.style.ComponentConfig"
FAZ>required="true" direct="false" lazy="false"
FAZ>collection="vector" transient="false">
FAZ> <sql many-key="back_ground_pl_color_id"
FAZ>read-only="false" dirty="check" />
FAZ> <xml name="componentConfigBackgrounds"
FAZ>node="element" />
FAZ> </field>
FAZ>
FAZ>
FAZ> <!-- PLColor font color has reference to many
FAZ>ComponentConfig 1 to N-->
FAZ> <field name="componentConfigFonts"
FAZ>type="domain.metaSystem.style.ComponentConfig"
FAZ>required="false" direct="false" lazy="false"
FAZ>collection="vector" transient="false">
FAZ> <sql many-key="font_color_pl_color_id"
FAZ>read-only="false" dirty="check" />
FAZ> <xml name="componentConfigFonts"
FAZ>node="element" />
FAZ> </field>
FAZ>
FAZ> </class>
FAZ></mapping>
Fabio,
Please post the OQL query that is being used. Also, please post the
relevant code from where the transactions and the OQL query are employed.
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev