Hibernate Error
来源:互联网 发布:手机淘宝怎么登录不上 编辑:程序博客网 时间:2024/06/03 11:18
Problem::JavaReflectionManager cannot be cast to MetadataProviderInjector
Using Hibernate annotation, after upgraded Hibernate version from v3.2.7 tov3.6, it hits following error message :
Caused by: java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
Here’s the list of the Hibernate annotation libraries :
- hibernate3-3.6.0.Final.jar
- hibernate-annotations-3.4.0.GA.jar
- hibernate-commons-annotations-3.0.0.GA.jar
Solution
Hibernate annotation module is merged into Hibernate core module since v3.5 (if not mistake). In this case, Hibernate is detected two annotation modules, from both “Hibernate core” and “Hibernate annotation“, causing conflict and prompt the ClassCastException
.
To fix it, just delete both of the hibernate-annotations-3.4.0.GA.jar
andhibernate-commons-annotations-3.0.0.GA.jar
, because latest Hibernate core library is able to perform annotation task without other dependency.
0 0
- Hibernate - Error
- Hibernate Error
- Hibernate Error积累
- ERROR [org.hibernate.util.JDBCExceptionReporter]
- Hibernate 运行 Error Creating SessionFactory
- ERROR: org.hibernate.util.JDBCExceptionReporter
- a error of hibernate by newbies
- ERROR: column "..." does not exist(postgre--hibernate)
- hibernate异常:Error applying BeanValidation relational constraints
- ERROR [org.hibernate.property.BasicPropertyAccessor] IllegalArgumentException
- Hibernate Error in named query (Unknown entity)
- hibernate SQL Error: 8152, SQLState: 22001
- Hibernate之mysql-connecter jdbc error 一
- hibernate无法自动建表:ERROR: HHH000388
- 【error】hibernate + mysql timestamp类型处理
- Hibernate ERROR: Table doesn't exist
- Hibernate 异常 : Error parsing JNDI name [XXXX]
- hibernate-validator 源码导入 IDEA Compile error!
- 经典并查集之畅通工程
- 条款19 设计class 犹如设计type
- 前端开发---前端相关软件分享
- win8系统下安装SQL2005(SQL Server 2005)图文教程
- MapReduce原理与设计思想
- Hibernate Error
- test _bs
- IOS开发—多线程简介
- mysql 开启 log
- delphi学习笔记--ADO数据库连接组件TADOConnect
- MBProgressHud使用总结
- 安卓开发者必备的几个工具
- 2.10 创建多边形表面模型的一些提示
- 图的最小生成树