users@glassfish.java.net

Re: _at_GeneratedValue(strategy = GenerationType.AUTO) throws exception

From: <glassfish_at_javadesktop.org>
Date: Sun, 02 Sep 2007 16:36:57 PDT

Thanks for your reply. Well, That's what i believe too. But how come it's creating duplicate id's. It's throwing exception on a load test (lets say max 5 to 10 users). However, not all the time but sometimes (approx. 5%).

Thanks.

Error msg:

Some remote or transactional roll back exception occurred
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry '3815473' for key 1Error Code: 1062
[Message sent by forum member 'server_user' (server_user)]

http://forums.java.net/jive/thread.jspa?messageID=233602