是类型转换错误,查查你的pojo,数据库和配置文件是否一一对应,若有一个字段不对应就有这种错误

解决方案 »

  1.   

    检查一下hostTransStatus字段的类型
      

  2.   

    感覺好象是缺少SQL的转换的驱动以下這一段最好放到finlly中做啦
    if (resultList.isEmpty())
    resultList = null;
      

  3.   

    SQL的转换的驱动到哪里去找呢
      

  4.   

    query.setInteger("hostTransStatus",hostTransStatus);
    ==>
    query.setInteger("hostTransStatus",new Integer(hostTransStatus));
      

  5.   

    错了,换成query.setParameter("hostTransStatus",new Integer(hostTransStatus));
      

  6.   

    你的hql写的好象有点问题,才发现,hql应该是面向对象的查询语句,你可以这样写
    String hql ="from TransLogDeposit tld where tld.hostTransStatus=:hostTransStatus";
    query.setParameter("hostTransStatus",new Integer(hostTransStatus));