The problem is triggered in this code (org.hibernate.event.internal.DefaultFlushEntityEventListener -- line 248ff):
Code:
if ( event.getEntityEntry().getPersister().getInstrumentationMetadata().isInstrumented() ) {
event.getEntityEntry()
.getPersister()
.getInstrumentationMetadata()
.extractInterceptor( event.getEntity() )
.clearDirty();
}
The call to extractInterceptor() is returning null.
The extractInterceptor() method in org.hibernate.bytecode.internal.javassist.BytecodeProviderImpl (line 151) calls this:
Code:
return JavassistHelper.extractFieldInterceptor( entity );
This calls org.hibernate.bytecode.instrumentation.internal.javassist.JavassistHelper line 39ff):
Code:
public static FieldInterceptor extractFieldInterceptor(Object entity) {
return ( FieldInterceptor ) ( ( FieldHandled ) entity ).getFieldHandler();
}
In the debugger the injected variable $JAVASSIST_READ_WRITE_HANDLER is null.
Any ideas on what I am doing wrong?
Thanks
Andrew