Class Cast Exception When Creating/Opening Question Pool

Description

This issue happens in MySql and Oracle

Class Cast Exception (can´t cast from long to Integer) in QuestionPoolFacadeQueries.java

It might be related with the changes in Hibernate KNL-945, these values come from an Hibernate Query:

is related to

Activity

Show:

Prabhleen Kaur January 16, 2018 at 10:24 AM

I didn't understand .Please can someone explain the Jira. 

Gnapika Reddy Kudumula August 10, 2017 at 2:40 PM

Can you add a test plan?

Earle Nietzel February 17, 2017 at 12:38 AM

I will look at this soon, I just fixed a bunch of similar issues in SAM-3149.

Alejandro González Jiménez February 16, 2017 at 6:17 AM
Edited

It surely require more testing as we might have this problem in other HibernateTemplate in SAMIGO or maybe other tools in Sakai

Alejandro González Jiménez February 16, 2017 at 6:12 AM
Edited

It also fails when calling QuestionPoolFacadeQueries.getCountItemFacadesForUser() (when trying to get a random draw from question pool in an assessment)

It seems that now (with hibernate4) we have Long instead of Integer when you use a select with "count"...

Fixed

Details

Priority

Affects versions

Fix versions

Assignee

Reporter

Created February 16, 2017 at 5:52 AM
Updated 2 days ago
Resolved February 17, 2017 at 10:47 AM