要学会程序跟错…

来源:互联网 发布:网络控制器驱动下载 编辑:程序博客网 时间:2024/05/21 14:52

错误信息:org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; --- The error occurred in com/sdcncsi/zygl/query/sqlmapibatis/sqlxml/QueryDataBase.xml. --- The error occurred while preparing the mapped statement for execution. --- Check the QueryDataBase.selectqueryBusiVPN. --- Cause: java.sql.SQLException: Invalid parameter object type. Expected 'java.util.HashMap' but found 'com.sdcncsi.zygl.query.formbean.QueryBusiVpnFormBean'.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/sdcncsi/zygl/query/sqlmapibatis/sqlxml/QueryDataBase.xml. --- The error occurred while preparing the mapped statement for execution. --- Check the QueryDataBase.selectqueryBusiVPN. --- Cause: java.sql.SQLException: Invalid parameter object type. Expected 'java.util.HashMap' but found 'com.sdcncsi.zygl.query.formbean.QueryBusiVpnFormBean'.!

在com/sdcncsi/zygl/query/sqlmapibatis/sqlxml/QueryDataBase.xml中有错误,原因:

Expected 'java.util.HashMap' but found 'com.sdcncsi.zygl.query.formbean.QueryBusiVpnFormBean'.;

调用的函数需要传的参数是一个HashMap但是传递的是formBean。

sqlMapDao.getSqlMapClientTemplate().queryForObject("QueryDataBase.selectqueryBusiCirVPNSql", formBean);

原创粉丝点击