Exception

ERROR [http-8080-15] - 执行:class com.ving.xzfw.persistence.impl.DepartmentDaoImpl.updateEanbleByDistId()方法出错!
ERROR [http-8080-15] - SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [S1093]; error code [0];  
--- The error occurred in com/ving/xzfw/persistence/sqlmap/Department.xml. 
--- The error occurred while applying a parameter map. 
--- Check the Department.parameters. 
--- Check the parameter mapping for the 'title' property. 
--- Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 索引 2 超出范围。; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:  
--- The error occurred in com/ving/xzfw/persistence/sqlmap/Department.xml. 
--- The error occurred while applying a parameter map. 
--- Check the Department.parameters. 
--- Check the parameter mapping for the 'title' property. 
--- Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 索引 2 超出范围。
ERROR [http-8080-15] - 执行:class com.ving.xzfw.service.impl.DistictServiceImpl.updateDistict()方法出错!
ERROR [http-8080-15] -
ERROR [http-8080-15] - 调用insertOrUpdate方法失败

查看Ibatis
<procedure id="updateEanbleByDistId" parameterMap="parameters">
<![CDATA[
{call SPUPDATEDEPTBYDIST(?)}
]]>
</procedure>

    <parameterMap id="parameters" class="map" >
<parameter property="bizId" javaType="java.lang.String" mode="IN"/>
<parameter property="title" javaType="java.lang.String" mode="IN"/>
<parameter property="receiveOrgId" javaType="java.lang.String" mode="IN"/>
<parameter property="receiveOrgName" javaType="java.lang.String" mode="IN"/>
</parameterMap>
也就不难就理解Check the parameter mapping for the 'title' property
索引 2 超出范围。
<parameterMap id="parameters" class="map" >
<parameter property="bizId" javaType="java.lang.String" mode="IN"/>
</parameterMap>

你可能感兴趣的:(sql,xml,ibatis,jdbc,Microsoft)