ibatis 访问orcale中的存储过程出错,向高手请教
xml配置
<resultMap id="getAllotType" class="com.szjz.goldf.allot.dao.bean.AllotType">
<result property="id" column="BILLTYPEID" columnIndex="1"/>
<result property="allotTypeName" column="BILLTYPENAME" columnIndex="2"/>
<result property="allotTypeAlias" column="BILLTYPEALIAS" columnIndex="3"/>
</resultMap>
<parameterMap id="get_result" class="com.szjz.goldf.allot.dao.bean.AllotType">
<parameter property="result" mode="OUT" jdbcType="ORACLECURSOR"
javaType="java.lang.Object"/>
</parameterMap>
<procedure id="getSpList" parameterMap="get_result" resultMap="getAllotType">
{call efm.sp_getAllotTypeList(?)}
</procedure>
调用代码
public List findAllotTypeList()
{
return getSqlMapClientTemplate().queryForList("getSpList",null);
}
错误日志
2005-05-08 18:00:45,690 WARN struts.action.RequestProcessor:538 -> Unhandled Exception thrown: class org.springframework.jdbc.UncategorizedSQLException
StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
org.springframework.jdbc.UncategorizedSQLException: (SqlMapClient operation): encountered SQLException [
--- The error occurred in com/szjz/goldf/allot/dao/bean/AllotType.xml.
--- The error occurred while preparing the mapped statement for execution.
--- Check the getSpList.
--- Check the parameter map.
--- Cause: java.lang.NullPointerException]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/szjz/goldf/allot/dao/bean/AllotType.xml.
--- The error occurred while preparing the mapped statement for execution.
--- Check the getSpList.
--- Check the parameter map.
--- Cause: java.lang.NullPointerException
org.springframework.jdbc.UncategorizedSQLException: (SqlMapClient operation): encountered SQLException [
--- The error occurred in com/szjz/goldf/allot/dao/bean/AllotType.xml.
--- The error occurred while preparing the mapped statement for execution.
--- Check the getSpList.
--- Check the parameter map.
--- Cause: java.lang.NullPointerException]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/szjz/goldf/allot/dao/bean/AllotType.xml.
--- The error occurred while preparing the mapped statement for execution.
--- Check the getSpList.
--- Check the parameter map.
--- Cause: java.lang.NullPointerException
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/szjz/goldf/allot/dao/bean/AllotType.xml.
--- The error occurred while preparing the mapped statement for execution.
--- Check the getSpList.
--- Check the parameter map.
--- Cause: java.lang.NullPointerException