Emir,
    We have a load testing product that uses castor as the database abstraction layer and once in a blue a user will come back with this error. This is the last email I received about the error. Once we a tell the user to start and stop the application it goes away, so I know that the key generator cache is out of sync with the max value in the database.
 
  Nested error: org.exolab.castor.jdo.PersistenceException: Nested error: Key Generator Failure. Duplicated Identity is generated!
 
Steve
----- Original Message -----
Sent: Saturday, April 24, 2004 3:26 AM
Subject: Re: [castor-dev] [JDO] Key generator -- Duplicated Identity is generated!

Hi Stephen,

Could you please send some more info on this?

Do you have a stack trace or some common scenario when the duplicate identity exception is occurring?

I’m not a Castor developer, but just interested in the matter.

 

Regards,

Emir

 

 

 

-----Original Message-----
From: Stephen Ince [mailto:[EMAIL PROTECTED]
Sent: 24. travanj 2004
2:32
To: [EMAIL PROTECTED]
Subject: [castor-dev] Key generator -- Duplicated Identity is generated!

 

I am using the castors key generator to generate key ids. I am intermittently getting duplicate key ids. Does anyone know of a method to have castor refresh the key generator cache if it becomes out of sync with the database? I use a plethora of databases, oracle, db2, sql server, and hsqldb.

 

 

org.exolab.castor.jdo.PersistenceException: Nested error: Key Generator Failure. Duplicated Identity is generated!'

Mapping.xml entry

 

<key-generator name="HIGH-LOW">

<param name="table" value="seq"/>

<param name="key-column" value="seq_table_name"/>

<param name="value-column" value="max_pk_value"/>

<param name="grab-size" value="15"/>

</key-generator>

Reply via email to