码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2016-03-20 16:15:40      阅读:293      评论:0      收藏:0      [点我收藏+]

标签:

当处理如下代码:

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.Department">
           <column name="DEPARTMENT_ID"/>
       </many-to-one>



当输出数据到页面时候出现如下错误:  

1
2
Javassist Enhancement failed: com.entities.Department
java.lang.ClassCastException: com.entities.Department_$$_javassist_1 cannot be cast to javassist.util.proxy.Proxy
技术分享
原因是有两个javassis的jar包,一个是hibernate的,一个是struts2的...,把低版本的删掉即可!   
技术分享



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

标签:

原文地址:http://www.cnblogs.com/share2015/p/5297853.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!