• Bug
  • Status: Resolved
  • 2 Major
  • Resolution: Won't Fix
  • Integration Modules
  • interfaces
  • Reporter: h0ppy1
  • November 26, 2009
  • 0
  • Watchers: 3
  • February 12, 2014
  • February 12, 2014

Description

When a clustered object is persisted/merged by Hibernate and Hibernate is configured to use direct field access (rather than property access) an UnlockedSharedObjectException is thrown:

at com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:364) at com.tc.object.tx.ClientTransactionManagerImpl.fieldChanged(ClientTransactionManagerImpl.java:658) at com.tc.object.TCObjectImpl.objectFieldChanged(TCObjectImpl.java:317) at com.uk.realistic.regal.model.id.BaseEntity.__tc_setid(BaseEntity.java) at com.uk.realistic.regal.model.id.BaseEntity.__tc_setmanagedfield(BaseEntity.java) at com.uk.realistic.regal.model.VersionAwareEntity.__tc_setmanagedfield(VersionAwareEntity.java) at com.uk.realistic.regal.model.ConversionRate.__tc_setmanagedfield(ConversionRate.java) at com.tc.util.FieldUtils.setValue(FieldUtils.java:254) at com.tc.util.FieldUtils.set(FieldUtils.java:194) at java.lang.reflect.Field.set(Field.java) at org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:102) at org.hibernate.tuple.entity.AbstractEntityTuplizer.setIdentifier(AbstractEntityTuplizer.java:227)

Comments

Jason Hopkins 2009-11-27

The forum discussion relating to this bug/feature can be found here:

http://forums.terracotta.org/forums/posts/list/2766.page

Hung Huynh 2014-02-12

DSO is discontinued