Hi all,
I sent a mail yersterday and I get no answer (cf :
ObjectModifiedException: Timestamp mismatched! - 2001/09/13 )
So here are my problems :
1. If I try to create a new object (LoggerPerData) and call
db.create(myObject), Castor returns :
org.exolab.castor.jdo.ObjectModifiedException: Transaction aborted:
Object of type
com.idbsoft.spyco.spytrf.persistence.logger.data.LoggerPerData with
identity 5 has been modified by a concurrent transaction
But I am the only one to access the DB and the Object
2. If I try to update an object (LoggerPerData), I get an other
exception :
org.exolab.castor.jdo.ObjectModifiedException: Timestamp mismatched!
My mapping file is :
<mapping>
<class
name="com.idbsoft.spyco.spytrf.persistence.logger.data.LoggerPerData"
identity="keyId">
<description>A Logger of the RF network</description>
<map-to table="SPY_T_LOGGER" />
<field name="keyId" type="long">
<sql name="LOG_KEY_ID" type="integer" />
</field>
<field name="timestamp"
type="long">
<sql name="LOG_TIMESTAMP" type="integer" />
</field>
<field name="deviceType"
type="com.idbsoft.spyco.spytrf.persistence.devicetype.data.DeviceTypePer
Data"
required="true">
<sql name="DEV_KEY_ID" />
</field>
<field name="name"
type="string">
<sql name="LOG_NAME" type="char" />
</field>
<field name="description"
type="string">
<sql name="LOG_DESCRIPTION" type="char" />
</field>
</class>
<class
name="com.idbsoft.spyco.spytrf.persistence.devicetype.data.DeviceTypePer
Data"
identity="keyId">
<description>A device Type</description>
<map-to table="SPY_T_DEVICE_TYPE" />
<field name="keyId" type="long">
<sql name="DEV_KEY_ID" type="integer" />
</field>
<field name="timestamp"
type="long">
<sql name="DEV_TIMESTAMP" type="integer" />
</field>
<field name="label"
type="string">
<sql name="DEV_LABEL" type="char" />
</field>
<field name="code"
type="string">
<sql name="DEV_CODE" type="char" />
</field>
<field name="status"
type="string">
<sql name="DEV_STATUS" type="char" />
</field>
<field name="creationDate"
type="long">
<sql name="DEV_CREATION_DT" type="integer" />
</field>
<field name="creationTime"
type="double">
<sql name="DEV_CREATION_TM" type="double" />
</field>
</class>
</mapping>
If you have any idea to help me, I'll be very pleased.
Is that a locking problem ??
Please help me, I am completly lost !
H Guidetti.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev