Task #541 (closed)
After upgrade to Hibernate 3.2.1, OptimisticLockException
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | critical | Milestone: | 3.0-Beta2 |
Component: | ORM | Version: | 3.0-M3 |
Keywords: | hibernate, iteration1 | Cc: | cxallan, jburel |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
From two previously working methods in PojosServiceTest?, we're now getting:
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)
Change History (9)
comment:1 Changed 17 years ago by jmoore
comment:2 Changed 17 years ago by jmoore
Attempting to turn of jdbc batching for better results.
Refs:
- Batch problems are probably only a symptom
- JDBC2 not supporting batching anyway
Note: Need to unify hibernate.cfg.xml and {in|out-of}-container.xml Hibernate properties.
comment:3 Changed 17 years ago by jmoore
- Cc callan jburel added
r1133 has a simplified failing test. All that needs to happen is that one of the multiple update methods (IUpdate.save[AndReturn]Array|Collection()) be given both sides of a freshly unlinked relationship.
comment:4 Changed 17 years ago by jmoore
- Priority changed from major to critical
- Version changed from Branch_omero_ds_fix to 3.0-M3
comment:5 Changed 17 years ago by jmoore
Similar problems after adding null : http://blogs.warwick.ac.uk/colinyates/entry/hibernate_and_their_1/
comment:6 Changed 17 years ago by jmoore
- Milestone changed from 3.0-Beta1 to 3.0-RC1
Haven't determined a good solution yet. Pushing back.
comment:7 Changed 17 years ago by jmoore
r1153 marks two pojos query tests as "broken"
comment:8 Changed 17 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
comment:9 Changed 17 years ago by jmoore
- Keywords iteration1 added
r1110 marked failing tests.