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

Description

I get this error:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 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)

Environment

glassfish 3.1.2.2, jdku45

Status

Assignee

Unassigned

Reporter

Marcial AtiƩnzar Navarro

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.2.8

Priority

Major