We are migrating our server from Jboss 5
to Wildfly 9
. During migration, one of the issue which we are unable to solve is this classcastexception
. Its happening while logging to the system. Issue is occurring inconsistently and mostly occurring after a restart.
We are getting this exception while querying using Hibernate hql and castin
LoginInfo userInfo = (LoginInfo) session.createQuery(hql).uniqueResult();