I just got a VerifyError exception when OpenJPA 1.2.2 was enhancing my classes. The stack trace was saving a VerifyError exception because of an IllegalInstruction at offset 0. This turned out to be because the getter/setter methods were marked as final on my entity class. Removing final, fixes this problem.
Using field access instead of property access would probably fix the problem too, and would give you the choice of preserving encapsulation a bit better if you so desire.
Posted by: Patrick Linskey | January 27, 2010 at 03:49 PM