It is been de facto standard that writing a JUnit test and confirming ORM (Object Relational Mapping) layer perfect before validating service, web layers, whatever may be the methodology are Agile, TDD etc.,
We tend to include API spec jar's and forget to add implementation in maven (pom) dependency file. this would result in java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class.
This could be resolved by referencing any valid implementation of the specification. For an example you could reference one of the (glassfish, jboss etc) application container implementation jar's should solve this error.
References:
http://www.mkyong.com/hibernate/java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-or-abstract-in-class-file/
https://norrisshelton.wordpress.com/2012/04/09/java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-or-abstract-in-class-file-javaxpersistencepersistence/
We tend to include API spec jar's and forget to add implementation in maven (pom) dependency file. this would result in java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class.
This could be resolved by referencing any valid implementation of the specification. For an example you could reference one of the (glassfish, jboss etc) application container implementation jar's should solve this error.
References:
http://www.mkyong.com/hibernate/java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-or-abstract-in-class-file/
https://norrisshelton.wordpress.com/2012/04/09/java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-or-abstract-in-class-file-javaxpersistencepersistence/
No comments:
Post a Comment