ibatis调存储过程报错
xml定义:{callPA_CRM_YW.P_PRICING_OBJECT_P(?,?,?,?,?,?,?,?)}----------------------------...
xml定义:
{call PA_CRM_YW.P_PRICING_OBJECT_P(?, ?, ?, ?, ?, ?, ?, ?)}
-------------------------------------------------- 报错: -- The error occurred in conf/ibatis/priceobj.xml. --- The error occurred while executing query procedure. --- Check the {call PA_CRM_YW.P_PRICING_OBJECT_P(?, ?, ?, ?, ?, ?, ?, ?)}. --- Check the output parameters (register output parameters failed). --- Cause: java.sql.SQLException: 无效的列类型: -99999999; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in conf/ibatis/priceobj.xml. --- The error occurred while executing query procedure. --- Check the {call PA_CRM_YW.P_PRICING_OBJECT_P(?, ?, ?, ?, ?, ?, ?, ?)}. --- Check the output parameters (register output parameters failed). 展开
{call PA_CRM_YW.P_PRICING_OBJECT_P(?, ?, ?, ?, ?, ?, ?, ?)}
-------------------------------------------------- 报错: -- The error occurred in conf/ibatis/priceobj.xml. --- The error occurred while executing query procedure. --- Check the {call PA_CRM_YW.P_PRICING_OBJECT_P(?, ?, ?, ?, ?, ?, ?, ?)}. --- Check the output parameters (register output parameters failed). --- Cause: java.sql.SQLException: 无效的列类型: -99999999; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in conf/ibatis/priceobj.xml. --- The error occurred while executing query procedure. --- Check the {call PA_CRM_YW.P_PRICING_OBJECT_P(?, ?, ?, ?, ?, ?, ?, ?)}. --- Check the output parameters (register output parameters failed). 展开
3个回答
展开全部
你的数据库里的字段要跟java 的字段匹配上
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你传的 参数 跟你存储过程需要的参数不同。存储过程传参要一一对应的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
参数类型不对吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询