Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #541 (closed)

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

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

r1110 marked failing tests.

comment:2 Changed 17 years ago by jmoore

Attempting to turn of jdbc batching for better results.

Refs:

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: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

Duplicate. See #589 (solved by r1234)

comment:9 Changed 17 years ago by jmoore

  • Keywords iteration1 added
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.93195 sec.)

We're Hiring!