简体   繁体   English

查询数据库时出错。 原因:java.lang.IllegalArgumentException:映射的语句集合不包含getSecurityRowCount的值

[英]Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getSecurityRowCount

Below is my mybatis.xml file - 以下是我的mybatis.xml文件-

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.principal.pfunds.service.rest.jdbcmanager.SecurityManagers">
<select id="getSecurityRowCount" parameterType="com.principal.pfunds.service.rest.mybatis.SecurityParam"
    resultType="java.lang.Integer">
    SELECT COUNT(*) ROWSCOUNT 
    FROM 
        ${schema}.A_PDC_SCRTY 
    WHERE 
        TOKEN_ID = #{tokenID}
        AND RSLT_TYP = #{resultType} 
        AND SVC_CD = #{svcCode}
</select>

And I am calling this query using below code statement- 我使用下面的代码语句调用此查询-

Integer securityRowCount = getSqlSession().selectOne("getSecurityRowCount", securityParam); 

I am trying to get row count but it is giving me error as: 我正在尝试获取行数,但它给我以下错误:

Exception in getSecurityRowCount(): org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getSecurityRowCount
### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getSecurityRowCount
[4/13/17 22:05:17:734 IST] 000000a4 SystemOut     O

Please help me out. 请帮帮我。 I am not able to understand what went wrong here. 我无法理解这里出了什么问题。 Thanks! 谢谢!

文档中 ,语句由其完整限定名称(带名称空间的前缀语句ID)引用:

selectOne("com.principal.pfunds.service.rest.jdbcmanager.SecurityManagers.getSecurityRowCount", securityParam);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 mybatis IllegalArgumentException: Mapped Statements 集合不包含值 - mybatis IllegalArgumentException: Mapped Statements collection does not contain value java.lang.IllegalArgumentException:结果映射集合不包含某个映射器的值 - java.lang.IllegalArgumentException: Result Maps collection does not contain value for a certain mapper java.lang.IllegalArgumentException:“ json”不包含“ /” - java.lang.IllegalArgumentException: “json” does not contain '/' restTemplate java.lang.IllegalArgumentException:“无”不包含“ /” - restTemplate java.lang.IllegalArgumentException: “None” does not contain '/' 映射语句集合不包含getFieldData的值 - Mapped Statements collection does not contain value for getFieldData 错误:java.lang.IllegalArgumentException - Error: java.lang.IllegalArgumentException java.lang.IllegalArgumentException:结果映射集合已包含值 - java.lang.IllegalArgumentException: Result Maps collection already contains value for Mybatis 映射嵌套类时出现“java.lang.IllegalArgumentException: Result Maps collection already contains value for”错误 - Mybatis “java.lang.IllegalArgumentException: Result Maps collection already contains value for” error when mapping nested classes 从数据库中获取枚举值时出错:没有枚举常量,嵌套异常是 java.lang.IllegalArgumentException - Error while fetching enum value from database: No enum constant, nested exception is java.lang.IllegalArgumentException Mapped Statements 集合不包含 mybatis mapper 的值 - Mapped Statements collection does not contain value for mybatis mapper
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM