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"

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

r1234 upgraded. (See also #541)

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.65329 sec.)

We're Hiring!