Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 274431 - Pessismistic locking failed for a non-version entity
Summary: Pessismistic locking failed for a non-version entity
Status: RESOLVED DUPLICATE of bug 248489
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: Sun Solaris
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-29 17:20 EDT by Sherry Hill CLA
Modified: 2022-06-09 10:36 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sherry Hill CLA 2009-04-29 17:20:32 EDT
Build ID: 2.0.0.v20090424-r4050

Steps To Reproduce:
For a non-version entity Part,

    Part p = em.find(Part.class, pID,
             LockModeType.PESSIMISTIC_WRITE);

pessimistic locking failed on EclipseLink
2.0.0.v20090424-r4050.

javax.persistence.PersistenceException: Invalid lock mode type on for an entity that does not have a version locking index. Only a PESSIMISTIC lock mode type can be used when there is no version locking index.|#] 

More information:
It is a regression of glassfish v3 jpa2.0 feature.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=8063
Comment 1 Gordon Yorke CLA 2009-04-30 10:38:05 EDT
With the change to the new Pessimistic locking strings the Query code must be updated.

See ObjectLevelReadQuery.setLockModeType and maybe others.
Comment 2 Tom Ware CLA 2009-04-30 14:22:57 EDT
Setting target and priority.  For information about the meaning of these settings, see the following document:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 3 Guy Pelletier CLA 2009-05-06 10:04:22 EDT
This issue will be resolved with the fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=248489

Comment 4 Guy Pelletier CLA 2009-05-06 10:11:45 EDT

*** This bug has been marked as a duplicate of bug 248489 ***
Comment 5 Peter Krogh CLA 2009-08-26 09:52:06 EDT
Mass update to change fixed in target.
Comment 6 Peter Krogh CLA 2009-08-26 09:55:10 EDT
Mass update to change fixed in target.
Comment 7 Peter Krogh CLA 2009-08-26 10:01:07 EDT
Mass update to change fixed in target.
Comment 8 Peter Krogh CLA 2009-08-26 10:02:57 EDT
Mass update to change fixed in target.
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:17:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 10 Eclipse Webmaster CLA 2022-06-09 10:36:06 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink