Hibernate exception _$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy

前端 未结 14 1333
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 09:33

Hello I am using developnig java web application and I am getting the next exception when I am trying to fetch data using hibernate

java.lang.ClassCastExcept         


        
14条回答
  •  庸人自扰
    2020-12-05 10:22

    Resolved issue for weblogic based spring-hibernate-jpa application. The class cast exception occurs because of conflicting jars of web logic server and javassist jar. Add the javassist-3.18.0-ga.jar or higher version into your class path and then add below lines of code into your weblogic-application.xml file and it should resolve your issue.

    
            javassist.*
      
    

提交回复
热议问题