/////////////////////////////报错信息Hibernate: select fxcustomer0_.CLIENTID as CLIENTID74_, fxcustomer0_.CLIENTNUM as CLIENTNUM74_, fxcustomer0_.CLIENTNAME as CLIENTNAME74_, fxcustomer0_.CLIENTTYPE as CLIENTTYPE74_, fxcustomer0_.CLIENTKIND as CLIENTKIND74_, fxcustomer0_.TAX_NUM as TAX6_74_, fxcustomer0_.OLD_NUM as OLD7_74_, fxcustomer0_.ACCOUNT_CODE as ACCOUNT8_74_, fxcustomer0_.SHORTNAME as SHORTNAME74_, fxcustomer0_.PINYIN as PINYIN74_, fxcustomer0_.CONTACTNAME as CONTACT11_74_, fxcustomer0_.TELPHONE as TELPHONE74_, fxcustomer0_.PHONE as PHONE74_, fxcustomer0_.AREAID as AREAID74_, fxcustomer0_.REGIONID as REGIONID74_, fxcustomer0_.CITYID as CITYID74_, fxcustomer0_.ADDRESS as ADDRESS74_, fxcustomer0_.ZIPCODE as ZIPCODE74_, fxcustomer0_.FAX as FAX74_, fxcustomer0_.EMAIL as EMAIL74_, fxcustomer0_.BANK as BANK74_, fxcustomer0_.BACKACCOUNT as BACKACC22_74_, fxcustomer0_.ACCOUNTNAME as ACCOUNT23_74_, fxcustomer0_.ACCOUNTADD as ACCOUNTADD74_, fxcustomer0_.ACCOUNTTEL as ACCOUNTTEL74_, fxcustomer0_.DISCOUNT as DISCOUNT74_, fxcustomer0_.DELIVERYADD as DELIVER27_74_, fxcustomer0_.STOREPHONE as STOREPHONE74_, fxcustomer0_.RAILWAY as RAILWAY74_, fxcustomer0_.CLIENTCLASS as CLIENTC30_74_, fxcustomer0_.CLIENTNATURE as CLIENTN31_74_, fxcustomer0_.SELLMODE as SELLMODE74_, fxcustomer0_.REMARK as REMARK74_, fxcustomer0_.OPERATOR as OPERATOR74_, fxcustomer0_.MODIFYTIME as MODIFYTIME74_, fxcustomer0_.NODEID as NODEID74_, fxcustomer0_.DELTF as DELTF74_, fxcustomer0_.STATE as STATE74_, fxcustomer0_.WHOLESALER as WHOLESALER74_, fxcustomer0_.RETURN as RETURN74_, fxcustomer0_.MODEL as MODEL74_ from PMS.FX_CLIENTINFO fxcustomer0_ where (fxcustomer0_.DELTF<>1 or fxcustomer0_.DELTF is null) and fxcustomer0_.ACCOUNT_CODE='4263'
18090016 WARN  [http-8080-Processor19] org.hibernate.util.JDBCExceptionReporter     - SQL Error: 17059, SQLState: null
18090016 ERROR [http-8080-Processor19] org.hibernate.util.JDBCExceptionReporter     - 无法转换为内部表示
18090016 ERROR [http-8080-Processor19]     cn.rmsd.pms.hibernate.dao.BaseDao  /////////////////////////////////////  java代码 ///////////////////////////////
String hql = " from  FxCustomerInfo c where (c.deltf <> 1 or c.deltf is null ) and c.accountCode='" +ywy+ "'  " ;
int keynum =1;
List list = dao.list(hql);  ====>  /////报错的行
StringBuffer json = new StringBuffer();
json.append("{root:[");
for(Iterator it = list.iterator() ; it.hasNext() ; ){
FxCustomerInfo c = (FxCustomerInfo)it.next();////////////////////////////////////////////////////////////////////////////////======  dao  层代码
public List list(String hql) {
List list = null;
try {
session = HibernateSessionFactory.getSession();
tx = session.beginTransaction();
list = session.createQuery(hql).list();
tx.commit();
} catch (HibernateException e) {
log.error(e);
e.printStackTrace();
tx.rollback();
} finally {
session.close();
}
return list;
} 注:在查询有数据结果时不会报错,但是在没有符合条的数据时会抛出这个异常   
还请各位路过的大侠们多多指教  谢谢