Steve,

I have to check myself. Will send you a pointer or an excample.

Ralf

Stephen Ince schrieb:
Ralf,
  Can you point me to a sample test case that I can start with.
 
Steve
----- Original Message -----
Sent: Friday, April 17, 2009 8:52 AM
Subject: Re: [castor-user] self-referential model

Steve,

if you where able to figure out what causes the problem could you please create a jira issue for us.  It would be appreciated if you could also attach a test case to the new issue.

Ralf

Stephen Ince schrieb:
Ralf,
  Thx for your response. I think you are right. I will try later today. In my other model those flags are different.
 
 
Steve
----- Original Message -----
Sent: Friday, April 17, 2009 6:49 AM
Subject: Re: [castor-user] self-referential model

Hi Stephen,

can you try to remove lazy="true" and dirthy="ignore" to see if that changes anything. One more thing to try is using a cache for the entities involved.

Ralf


Stephen Ince schrieb:
For some reason I can not get self-referential model case to work. I have this working for another set of classes. I keep getting  a read lock exception.
 
Nested error: org.exolab.castor.jdo.DataObjectAccessException: Field access error: FieldMolder for com.opendemand.jdo.WebResource.webResourceBranches of type com.opendemand.jdo.WebResourceBranch access resulted in
java.lang.IllegalStateException: Transaction org.castor.persist.LocalTransaction
cont...@b52a28 does not hold the read lock: com.opendemand.jdo.WebResource/314/3.
 
I am using castor 1.01.
Does anyone know what might cause a read lock exception in a self-referential model case.
 
relationship
WebResource ---> WebResourceBranch --> WebResource
 
mapping.
 
<class name="com.opendemand.jdo.WebResource" auto-complete="false" identity="webResourceId" key-generator="keygen" >
<map-to table="web_resource"/>
<cache-type type="none" />
<field name="webResourceId" type="integer">
<sql name="web_resource_id" type="integer" dirty="ignore" />
</field>
:
 
<field name="webResourceBranches"
type="com.opendemand.jdo.WebResourceBranch" collection="collection" lazy="true">
<sql many-key="web_resource_id" dirty="ignore" />
</field>
</class>
 
<class name="com.opendemand.jdo.WebResourceBranch" auto-complete="false" identity="id" key-generator="keygen" depends="com.opendemand.jdo.WebResource" >
<map-to table="web_resource_branch"/>
<cache-type type="none" />
<field name="id" type="integer" >
<sql name="id" type="integer" dirty="ignore" />
</field>
:
<field name="webResource" type="com.opendemand.jdo.WebResource" required="true">
<sql name="web_resource_id" dirty="ignore" />
</field>
<field name="branch" type="com.opendemand.jdo.WebResource" required="true">
<sql name="branch_id" dirty="ignore" />
</field>
</class>
 

-- 

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [email protected]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
    
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

-- 

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [email protected]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
    
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

-- 

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [email protected]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to