java.lang.ClassCastException: com.imobdev.hibernate.entity.ModuleMst_$$_javassist_9 cannot be cast to javassist.util.proxy.Proxy

codegur.us | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hibernate mapping mappedBy and @JoinColumn

    Stack Overflow | 2 years ago | Mihir Chauhan
    java.lang.ClassCastException: com.imobdev.hibernate.entity.ModuleMst_$$_javassist_9 cannot be cast to javassist.util.proxy.Proxy
  2. 0

    HiLo generator strategy not working

    codegur.us | 7 months ago
    java.lang.ClassCastException: com.imobdev.hibernate.entity.ModuleMst_$$_javassist_9 cannot be cast to javassist.util.proxy.Proxy
  3. 0

    JPA/Hibernate 4 - getting ScrollableResults

    Stack Overflow | 4 years ago | Jamie
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.Integer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error when querying Hibernate entities

    Stack Overflow | 3 years ago | Zyga
    java.lang.ClassCastException: com.dbcreator.persistence.hibernate.model.User_$$_javassist_5 cannot be cast to javassist.util.proxy.Proxy
  6. 0

    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String

    Stack Overflow | 2 years ago | nsu
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.imobdev.hibernate.entity.ModuleMst_$$_javassist_9 cannot be cast to javassist.util.proxy.Proxy

      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy()
    2. Hibernate
      QueryImpl.list
      1. org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:147)
      2. org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:75)
      3. org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:771)
      4. org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:4613)
      5. org.hibernate.event.internal.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:350)
      6. org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:271)
      7. org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)
      8. org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1070)
      9. org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:989)
      10. org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:716)
      11. org.hibernate.type.EntityType.resolve(EntityType.java:502)
      12. org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:170)
      13. org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:144)
      14. org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1115)
      15. org.hibernate.loader.Loader.processResultSet(Loader.java:973)
      16. org.hibernate.loader.Loader.doQuery(Loader.java:921)
      17. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)
      18. org.hibernate.loader.Loader.doList(Loader.java:2554)
      19. org.hibernate.loader.Loader.doList(Loader.java:2540)
      20. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2370)
      21. org.hibernate.loader.Loader.list(Loader.java:2365)
      22. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:497)
      23. org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:387)
      24. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:236)
      25. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1264)
      26. org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
      26 frames
    3. com.imobdev.dao
      ImderpDaoImpl.getOldPermissions
      1. com.imobdev.dao.ImderpDaoImpl.getOldPermissions(ImderpDaoImpl.java:659)
      1 frame
    4. com.imobdev.service
      ImderpServiceImpl.getOldPermissions
      1. com.imobdev.service.ImderpServiceImpl.getOldPermissions(ImderpServiceImpl.java:183)
      1 frame
    5. com.imobdev.controller
      ErpController.updateModule
      1. com.imobdev.controller.ErpController.updateModule(ErpController.java:354)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    7. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
      2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
      2 frames
    8. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
      8. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
      8 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
      1 frame
    10. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
      1 frame
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    13. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    14. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    15. com.imobdev.controller
      SessionFilter.doFilter
      1. com.imobdev.controller.SessionFilter.doFilter(SessionFilter.java:43)
      1 frame
    16. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
      10 frames
    17. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
      3 frames
    18. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      2 frames
    19. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    20. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame