The jrebel agent interferes somehow with eclipselink of glassfish v3
using two Entities:
@Entity
Measurement {
...
@ManyToOne(fetch = FetchType.LAZY)
private User user;
...
}
@Entity
User {
...
@OneToMany(mappedBy = "user", fetch = FetchType.LAZY)
private List<Measurement> measurements;
...
}
yields this Exception in glassfish:
javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5070)
<snip>
Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------
Exception [EclipseLink-60] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [_persistence_setuser_vh] or [_persistence_getuser_vh] is not defined in the object [Measurement].
Internal Exception: java.lang.NoSuchMethodException: Measurement._persistence_getuser_vh()
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[user]
Descriptor: RelationalDescriptor(Measurement --> [DatabaseTable(measurements)])
I guess I could work around this Issue using static-weaving for my entities, will try later.
Sven
