出错啦,怎么办

08-09-27 chenmin1618
String hql = "select count(*)from " + StudentJobInfo.class.getName()+" where salScope.id=? group by std.classes.id where std.classes.id=?";
Object count = session.createQuery(hql).setInteger(0, salId).setInteger(1, classId).uniqueResult();

报这个错不知道是什么原因
java.lang.reflect.UndeclaredThrowableException