• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #258 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

Newly set quantum strategy fails on flush.

Reported by: jburel Owned by: jmoore
Priority: critical Milestone: 3.0-M3
Component: Services Version: 3.0-M3
Keywords: sessions,flushing,hibernate,stateful,iteration2 Cc: callan

Description

Crash when setting the new quantum strategy i.e. a new bit resolution. Below the error message:Caused by: ome.conditions.InternalException?: Wrapped Exception: (org.springframework.orm.hibernate3.HibernateSystemException?): not-null property references a null or transient value: ome.model.display.QuantumDef?.details.owner; nested exception is org.hibernate.PropertyValueException?: not-null property references a null or transient value: ome.model.display.QuantumDef?.details.owner

at org.springframework.orm.hibernate3.SessionFactoryUtils?.convertHibernateAccessException(SessionFactoryUtils?.java:654)

Change History

Changed 2 years ago by jburel

Oops forgot to log in before entering ticket ;-)

Changed 2 years ago by jmoore

  • keywords sessions,flushing,hibernate,stateful,iteration2 added
  • status changed from new to assigned
  • summary changed from RE: Quantum strategy to Newly set quantum strategy fails on flush.
  • version changed from 3.0-M1 to 3.0-M3
  • milestone changed from Unscheduled to 3.0-M3

This is being caused by furtive flushings of the stateful bean. It shouldn't happen. Period. Will fix.

Changed 2 years ago by jmoore

  • cc callan added
  • status changed from assigned to closed
  • resolution set to fixed
  • reporter changed from anonymous to jburel

r837 fixes. Some of this comes from not being able to test the rendering bean from trunk (#218). In general, the stateful session handling needs work, and only time and testing will test.

What this fix does is changes the use of FlushMode.NEVER (which Hibernate kindly deprecated from under us) to FlushMode.COMMIT, and added a check in EventHandler to not call flush if the interceptor joinpoint is a StatefulServiceInterface implementation. (Having that logic in the handlers is typically valid. Written up as #262)

Changed 2 years ago by jmoore

r1039 updates the FlushMode? to MANUAL (NEVER is deprecated) and makes fixes for Spring 2.0 (#238), which handle the FlushMode?'s differently (especially now with JTA -- #427)

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/