Après migration de Hibernate 3.5.3-Final vers 3.6.6.Final, je me suis retrouvé dans l'impossibilité de lancer notre projet avec pour erreur :
Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [META-INF/......xml]: Invocation of init method failed; nested exception is java.lang.VerifyError: class org.hibernate.type.WrappedMaterializedBlobType overrides final method
Après quelques recherches, le coupable est Hibernate annotation 3.5.6-Final. Une des librairies de notre projet avait cette dépendance dans son fichier POM or annotation semble maintenant inclus dans les version 3.6.X
Solution dans mon cas : enlever Hibernate annotation des dépendances et tout semble rouler pour le moment.
English version :
After upgrading Hibernate 3.5.3-Final to 3.6.6.Final, i encoutered this error. I was unable to launch our project.
After few research in the code, my problem was related to my dependency with Hibernate annotation 3.5.6-Final. This dependecy was listed in one of our child module. It seems that annotation has been included into the main Hibernate jar (3.6.6.Final). So, in my case, the solution was to remove the dependency to Hibernate annotation 3.5.6-Final and now, our project seems to go back on track.
English version :
After upgrading Hibernate 3.5.3-Final to 3.6.6.Final, i encoutered this error. I was unable to launch our project.
After few research in the code, my problem was related to my dependency with Hibernate annotation 3.5.6-Final. This dependecy was listed in one of our child module. It seems that annotation has been included into the main Hibernate jar (3.6.6.Final). So, in my case, the solution was to remove the dependency to Hibernate annotation 3.5.6-Final and now, our project seems to go back on track.
Aucun commentaire:
Enregistrer un commentaire