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 #427 (closed)

Opened 18 years ago

Closed 17 years ago

RawPixelsBean is not transactional

Reported by: jamoore Owned by: cxallan
Priority: minor Cc:
Sprint: n.a.
Total Remaining Time: n.a.

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 (6)

comment:1 Changed 18 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.

comment:2 Changed 18 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.

comment:3 Changed 18 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed

Chris seems to be happy. Closing.

comment:4 Changed 18 years ago by cxallan

  • Resolution fixed deleted
  • Status changed from closed to reopened

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.

comment:5 Changed 17 years ago by jmoore

  • Owner changed from jmoore to callan
  • Status changed from reopened to new

Passing off to Chris.

comment:6 Changed 17 years ago by cxallan

  • Resolution set to fixed
  • Status changed from new to closed

Resolved in milestone:3.0-Beta2.

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

We're Hiring!