NoClassDefFoundError: javassist/util/proxy/MethodFilter

Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
    at org.hibernate.bytecode.javassist.BytecodeProviderImpl.getProxyFactoryFactory(BytecodeProviderImpl.java:49)
    at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactoryInternal(PojoEntityTuplizer.java:205)
    at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
    at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:167)
    at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:77)
    ... 16 more

添加 javassist.jar包

时间: 2024-11-10 17:48:02

NoClassDefFoundError: javassist/util/proxy/MethodFilter的相关文章

Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateBaseDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not a

MAVEN Error: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter

MyEclipse2015+Maven3出现错误: T E S T S ------------------------------------------------------- Running DataDictTest org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] at org.hibernate

javassist两个jar包导致:.Department_$$_javassist_1 cannot be cast to javassist.util.proxy.Proxy

当处理如下代码: 1 2 Javassist Enhancement failed: com.entities.Department java.lang.ClassCastException: com.entities.Department_$$_javassist_1 cannot be cast to javassist.util.proxy.Proxy 1 2 3 <many-to-one name="department" class="com.entities

关于java.lang.ClassCastException: xxx cannot be cast to javassist.util.proxy.Proxy

异常关键信息: java.lang.ClassCastException:  xxx.xxx.xxx.UserManagementEntity_$$_javassist_4 cannot be cast to javassist.util.proxy.Proxy 出这个异常,有两种可能: 1.jar包冲突  (这种可能比较大,我遇到的就是这种情况) 因为hibernate和 struts2 都需要javassist-XX.jar,先确认项目里面是不是引入了多个,保留一个高版本就行了 . 2.懒加

java.lang.ClassCastException: xut.bookshop.entity.User_$$_javassist_3 cannot be cast to javassist.util.proxy.Proxy

报错信息 java.lang.ClassCastException: xut.bookshop.entity.User_$$_javassist_3 cannot be cast to javassist.util.proxy.Proxy org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:147) org.hibernate.proxy.pojo.j

java.lang.ClassCastException: com.ch.hibernate.Student_$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy

利用query动态查询时,报错 当设置Student.hbm.xml的class标签的属性lazy=false时: 结果正确. 不得其解,观察lib下的类包,发现了有两个javassist包. 删除其中的一个,将Student.hbm.xml的class标签中的lazy属性删掉,运行,结果正确.原来是我添加包的时候,加多了.

java.lang.ClassCastException: com.bjsxt.registration.model.User_$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy

1.懒加载 因为此时用的load懒加载机制,到jsp页面在发送sql语句的时候session已经关闭了.所以会报以上错.可以添加过滤器,使session在请求响应完成后再关闭. 过滤器要配置在struts2过滤器的前面.过滤器配置如下: <filter> <filter-name>OpenSessionInViewFilter</filter-name> <filter-class>org.springframework.orm.hibernate4.sup

整合ssh model $$_javassist_13 cannot be cast to javassist.util.proxy.Proxy

转自:http://www.cnblogs.com/newsouls/p/3942116.html 经goole stackoverflow 发现是 javassit 包冲突 项目使用的是maven 检查依赖包 多出一个javassist-3.1.1 在pom.xml中找到 struts2-core  排除 javassit 妥了

javassist_1 cannot be cast to jaassist.util.proxy.Proxy

Spring与Hibernate整合产生的异常, 原因是:Spring依赖包中和Hibernate依赖包中都有jaassist包,且版本不一致, 解决方法,可以在maven依赖中删除低版本的jaassist包,并更新maven