Uploaded image for project: 'Hibernate ORM'
  1. HHH-8767

Problem javassist after migrate from 4.2.7 to 4.28: cannot be cast to javassist.util.proxy.Proxy

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.2.8
    • Fix Version/s: None
    • Component/s: hibernate-core
    • Labels:
      None
    • Environment:
      glassfish 3.1.2.2, jdku45
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Suitable for new contributors:
      Yes, likely
    • Last commented by a user?:
      true

      Description

      I get this error:

      Traza: java.lang.ClassCastException: org.kyrian.entity.gnomo.GnUserType_$$_javassist_268 cannot be cast to javassist.util.proxy.Proxy
      	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:148)
      	at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:73)
      	at org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:758)
      	at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:4419)
      	at org.hibernate.event.internal.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:333)
      	at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:259)
      	at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)
      	at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1017)
      	at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:944)
      	at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:671)
      	at org.hibernate.type.EntityType.resolve(EntityType.java:489)
      	at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:168)
      	at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:137)
      	at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1112)
      	at org.hibernate.loader.Loader.processResultSet(Loader.java:969)
      	at org.hibernate.loader.Loader.doQuery(Loader.java:917)
      	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348)
      	at org.hibernate.loader.Loader.doList(Loader.java:2548)
      	at org.hibernate.loader.Loader.doList(Loader.java:2534)
      	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2364)
      	at org.hibernate.loader.Loader.list(Loader.java:2359)
      	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:495)
      	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:357)
      	at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:195)
      	at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1194)
      	at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
      	at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:287)
      	at com.sun.enterprise.container.common.impl.QueryWrapper.getSingleResult(QueryWrapper.java:210)
      	at com.sun.enterprise.container.common.impl.TypedQueryWrapper.getSingleResult(TypedQueryWrapper.java:137)
      	at org.kyrian.negocio.entity.gnomo.GnPrincipalBean.getConnectedPrincipal(GnPrincipalBean.java:92)
      

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: