SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];

SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];   
--- The error occurred in sqlMaps/dt/view_result_SqlMap.xml.  
--- The error occurred while applying a result map.  
--- Check the view_result.selectByBarCode-AutoResultMap.  
--- The error happened while setting a property on the result object.  
--- Cause: net.sf.cglib.beans.BulkBeanException; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in sqlMaps/dt/view_result_SqlMap.xml.  
--- The error occurred while applying a result map.  
--- Check the view_result.selectByBarCode-AutoResultMap.  
--- The error happened while setting a property on the result object.  
--- Cause: net.sf.cglib.beans.BulkBeanException

 

出現這個錯誤是遠程端口調用本地時出現的查詢結果的BUG。原因是有的字段爲空在ibatis對應的字段設置類型和結果返回類型不匹配導致錯誤,將那幾個字段附上對應類型值就可以

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章