• 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 #427 (closed defect: fixed)

Opened 2 years ago

Last modified 17 months ago

RawPixelsBean is not transactional

Reported by: jmoore Owned by: callan
Priority: minor Milestone: 3.0-Beta2
Component: Services Version: 3.0-M3
Keywords: iteration1 Cc:

Description

Similar to #410, RawPixelsBean is now throwing the following (following the fixes to #326):

ome.conditions.InternalException: Synchronization not active for TransactionSynchronizationManager
	at ome.tools.hibernate.SessionHandler.bindSession(SessionHandler.java:280)
	at ome.tools.hibernate.SessionHandler.acquireBindAndConfigureSession(SessionHandler.java:268)
	at ome.tools.hibernate.SessionHandler.newOrRestoredSession(SessionHandler.java:227)
	at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:165)

Change History

Changed 2 years ago by jmoore

This has a combination of causes, but some background is available at: http://forum.springframework.org/showthread.php?t=12403

Basically, we were inappropriately using the Spring/JTA infrastructure. In fact, it's unclear why it was working at all. Will need to mark all beans for BMT, and slowly disable the non-JTA transactional support (see in-container.xml!hibernate.properties) which was making it semi-work.

Changed 2 years ago by jmoore

r1038 provides the fix. Now the requirements for a bean are:

  • Mark itself as @TransactionManagement(BEAN)
  • Mark itself as @Transactional (with defaults for the bean)
  • Mark any methods with @Transactional (where defaults need to be overridden)

May need to update #306.

Changed 2 years ago by jmoore

  • status changed from new to closed
  • resolution set to fixed

Chris seems to be happy. Closing.

Changed 2 years ago by callan

  • status changed from closed to reopened
  • resolution deleted

Re-opening as some methods within the RawPixelsBean? seem to need to be set to readOnly=false. Will investigate further. For the moment r1041 makes things work.

Changed 2 years ago by jmoore

  • owner changed from jmoore to callan
  • status changed from reopened to new

Passing off to Chris.

Changed 17 months ago by callan

  • status changed from new to closed
  • resolution set to fixed

Resolved in milestone:3.0-Beta2.

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/