You might had enhanced using one JDK version and compile or run classes using
one another.
On 19 mai 2010, at 11:52, stlecho wrote:
>
> I've installed the OpenJPA Eclipse Enhancement Builder but I'm receiving
> underneath error message within Eclipse.
>
> I would be pleased if someone could help me to fix this issue :o)
>
> <error>
> Errors occurred during the build.
> Errors running builder 'OpenJPA PC-Enhancer Project Builder' on project
> 'jpa-proto3'.
> OpenJPA Enhancement Builder failed with message
> 'java.lang.ClassFormatError: Absent Code attribute in method that is not
> native or abstract in class file javax/persistence/CascadeType' for class:
> C:/slecho/FODFin/STIRON/L2-M5/Eclipse/workspace/jpa-proto3/target/classes/be/minfin/fgov/jpa/proto3/entity/ViesMessage.class
> Absent Code attribute in method that is not native or abstract in class
> file javax/persistence/CascadeType
> OpenJPA Enhancement Builder failed with message
> 'java.lang.ClassFormatError: Absent Code attribute in method that is not
> native or abstract in class file javax/persistence/CascadeType' for class:
> C:/slecho/FODFin/STIRON/L2-M5/Eclipse/workspace/jpa-proto3/target/classes/be/minfin/fgov/jpa/proto3/entity/ViesMessage.class
> Absent Code attribute in method that is not native or abstract in class
> file javax/persistence/CascadeType
> </error>
>
> <code>
> @MappedSuperclass
> public abstract class ViesMessage<RESP extends ViesResponse> extends
> IdentityObject {
> @OneToMany(cascade=CascadeType.ALL,
> mappedBy="message",targetEntity=VATRResponse.class)
> protected List<RESP> responses;
> </code>
>
> <code>
> @MappedSuperclass
> public abstract class ViesResponse<MSG extends ViesMessage> extends
> IdentityObject {
> @ManyToOne(cascade=CascadeType.ALL)
> public MSG message;
> </code>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/ClassFormatError-when-using-Enhancement-Builder-tp5074201p5074201.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.