0 Replies Latest reply on Feb 15, 2016 1:35 AM by arathy.minerva

    Getting ClassCastException while migrating from JBoss 5 to Wildfly 9

    arathy.minerva

      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();