ibatis报错,很奇怪,求大神帮忙

问题描述

ibatis报错,很奇怪,求大神帮忙

现在项目中用的是ibatis,第一次接触,这两天一直在报错,都要疯了,请大神帮忙看看吧。
配置如下:
resultMap="cpVoucherResultCheckIn"
parameterClass="elementCondition">
select master.* from cp_voucher master where
master.sum_cp_voucher_id is null
and master.is_valid='1'

master.PAY_PWD_STATE = #passwdStatus#

参数类中对应属性如下:

    private String passwdStatus;
public String getPasswdStatus() {
    return passwdStatus;
}

public void setPasswdStatus(String passwdStatus) {
    this.passwdStatus = passwdStatus;
}

报错信息如下:
com.ufgov.gk.common.system.exception.OtherException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];

--- The error occurred in sqlmap/cp/CpVoucher.xml.

--- The error occurred while preparing the mapped statement for execution.

--- Check the CpVoucher.getCpVoucherForCpDvtList.

--- Check the parameter map.

--- Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'passwdStatus' in class 'com.ufgov.gk.common.system.dto.ElementConditionDto'; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:

--- The error occurred in sqlmap/cp/CpVoucher.xml.

--- The error occurred while preparing the mapped statement for execution.

--- Check the CpVoucher.getCpVoucherForCpDvtList.

--- Check the parameter map.

--- Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'passwdStatus' in class 'com.ufgov.gk.common.system.dto.ElementConditionDto'
at com.ufgov.gk.server.system.log.SystemExceptionLog.afterThrowing(SystemExceptionLog.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invokeHandlerMethod(ThrowsAdviceInterceptor.java:146)
at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:131)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:631)
at com.ufgov.gk.server.cp.publish.impl.CpVoucherServiceDelegate$$EnhancerByCGLIB$$f7339278.getCpVoucherForCpDvtList()
at com.ufgov.gk.server.cp.publish.impl.exporter.CpVoucherServiceExporter.getCpVoucherForCpDvtList(CpVoucherServiceExporter.java:419)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:192)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:110)
at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:416)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6722)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

时间: 2025-01-25 12:05:50

ibatis报错,很奇怪,求大神帮忙的相关文章

native-tomcat启动报错问题,求大神帮忙

问题描述 tomcat启动报错问题,求大神帮忙 Managed Threads: 3 Active Threads: 3 Active Tasks: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@189b939 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2) com.mchange.v2.resourcepool.BasicResourcePo

java-R字全部报错、跪求大神

问题描述 R字全部报错.跪求大神 eclipse 好好的java中R. 全报错 倒包后.大部分又引用不到了 如下图- 跪求大神 解决方案 http://www.itnose.net/news/142/6339412 解决方案二: 资源中有出错导致R.java没有生成 解决方案三: clean完还不行的话就是R包被强制删除了,可以考虑重新开工程了 解决方案四: 你这个主题颜色 很赞,请问是怎么弄得??

速度解决-接谷歌sdk报错!跪求大神!

问题描述 接谷歌sdk报错!跪求大神! 解决方案 我知道啊!只要连接外国的vpn就好了啊!我了解上了还是不行!就报这个错! 解决方案二: google在中国被限制了的

无线路由器低电-无线路由器串口下报错,在线求大神解决!!

问题描述 无线路由器串口下报错,在线求大神解决!! 一直报HSIC-USB in low power mode,求怎么退出低电模式,谢谢 解决方案 http://zhidao.baidu.com/link?url=vMCO-E0_utuzonHcMnZ-xoPinvjbujhVRmGBvNbLt8Pw8Jnz4BbOFjSrxv5I4oB-hEAwn3iajiIB6p-p3bUcEIn-Ev8KjeegkR7i85MVB6G

ssh整合-spring整合hibernate做测试时没有报错,当三个整合时启动就报错啦,求大神指点!!

问题描述 spring整合hibernate做测试时没有报错,当三个整合时启动就报错啦,求大神指点!! 报的错误org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'ecsUnsigned' on target class [class $Proxy17] failed; nested exception is org.springframework.tran

在tomcat上运行没有问题,在weblogic上运行就报下面的错,跪求大神帮忙

问题描述 在tomcat上运行没有问题,在weblogic上运行就报下面的错,跪求大神帮忙 java.sql.SQLException: Statement cancelled, probably by transaction timing out at weblogic.jdbc.wrapper.Statement.postInvocationHandlerNoWrap(Statement.java:128) at weblogic.jdbc.wrapper.PreparedStatement

程序运行就闪退,log日志报错如下,求大神支招

问题描述 程序运行就闪退,log日志报错如下,求大神支招 05-24 18:28:21.920 32733-32733/com.example.administrator.myapplication W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x415ebc38) 解决方案 这信息也太少了... 解决方案二: 0.0,稍等 05-24 18:35:47.070 843-1911/? W/Temper

javaweb-Properties load报错 问题,求大神

问题描述 Properties load报错 问题,求大神 Properties报错,但是当我加入Sun JDK1.6时候就不报错了,为什么呢? 解决方案 感觉要加异常处理,不懂为什么 解决方案二: 加入sun JDK1.6包,就行了呢,为什么

java cmd报错!!求大神!

问题描述 java cmd报错!!求大神! 10C 该项目打包jar在cmd运行报错了.在idea工具下正常运行,请问什么原因啊!求大神指教!具体怎么解决啊!谢谢! 解决方案 activity -server.jar 包没导入吧,放到lib里边试试 解决方案二: 配置文件里面有东西没配置好 解决方案三: http://chenzhou123520.iteye.com/blog/1971322是不是这个原因?

eclipse-android应用百度地图api导入sdk出错 报错代码如下 求大神指点

问题描述 android应用百度地图api导入sdk出错 报错代码如下 求大神指点 Dex Loader] Unable to execute dex: Multiple dex files define Lcom/baidu/mapapi/BMapManager;baidumapapi] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/baidu/mapapi/B