Bug #589 (closed)
Opened 17 years ago
Closed 17 years ago
Hibernate 3.2.1 throws a StaleStateException on updating Image.categoryLinks
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Cc: | |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description
While setting the categories on a series of images, saving the result each time, the following exception is thrown for all images after the first one:
ome.conditions.OptimisticLockException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:666) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:408) ...
Image image = queryService.findByQuery(queryString, new Parameters()); image.clearCategoryLinks(); for(Category cat : dbCategories) { image.linkCategory(cat); } updateService.saveObject(image);
Need to upgrade to 3.2.2. Reason unknown.
Change History (1)
comment:1 Changed 17 years ago by jmoore
- Milestone changed from 3.0-Beta2 to 3.0-Beta1
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
r1234 upgraded. (See also #541)