-
Type:
Bug
-
Status: RESOLVED
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 12.0
-
Fix Version/s: 12.0
-
Component/s: Tests & Quizzes (Samigo)
-
Labels:
-
Previous Issue Keys:SAM-3150
This issue happens in MySql and Oracle
Class Cast Exception (can´t cast from long to Integer) in QuestionPoolFacadeQueries.java
counts.put((Long) result[0], (Integer)result[1]);
It might be related with the changes in Hibernate KNL-945, these values come from an Hibernate Query:
public List getSubPoolSizes(final String agent) { final HibernateCallback<List> hcb = session -> { Query q = session.createQuery("select a.questionPoolId, (select count(*) from QuestionPoolData b where b.parentPoolId=a.questionPoolId) " + "from QuestionPoolData a where a.ownerId = :id"); q.setCacheable(true); q.setString("id", agent); return q.list(); }; return getHibernateTemplate().execute(hcb); }
- is related to
-
SAK-39652 Upgrade to Hibernate 4.3.x
-
- RESOLVED
-