There is no setter for property named 可能产生的原因!
There is no setter for property named 'operateIP ' in 'class com.chinaunicom.wsp.facade.entity.UserOperateLog',今天启动发现报这个错,经过旁边大哥的指导,后来才发现是配置文件实体有空格……记录一下吧。还是mybatis用的不熟,推荐还是选择“mybatis-generator-core-1.3.5”进行自动化生成,手写太容易出错了- -
2017-06-15 10:51:48,490 DEBUG [DispatcherServlet.java:861] : DispatcherServlet with name 'springmvc' processing GET request for [/wsp-web-admin/userOperateLog/list]
2017-06-15 10:51:48,491 DEBUG [AbstractHandlerMethodMapping.java:320] : Looking up handler method for path /userOperateLog/list
2017-06-15 10:51:48,491 DEBUG [AbstractHandlerMethodMapping.java:327] : Returning handler method [public java.lang.String com.chinaunicom.wsp.admin.controller.UserOperateLogController.list(javax.servlet.http.HttpServletRequest,com.chinaunicom.wsp.facade.entity.User,boolean)]
2017-06-15 10:51:48,491 DEBUG [AbstractBeanFactory.java:250] : Returning cached instance of singleton bean 'userOperateLogController'
2017-06-15 10:51:48,492 DEBUG [DispatcherServlet.java:947] : Last-Modified value for [/wsp-web-admin/userOperateLog/list] is: -1
2017-06-15 10:51:48,492 DEBUG [SqlSessionUtils.java:106] : Creating a new SqlSession
2017-06-15 10:51:48,492 DEBUG [SqlSessionUtils.java:142] : SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@54c1b64a] was not registered for synchronization because synchronization is not active
2017-06-15 10:51:48,493 DEBUG [DataSourceUtils.java:110] : Fetching JDBC Connection from DataSource
2017-06-15 10:51:48,494 DEBUG [SpringManagedTransaction.java:85] : JDBC Connection [com.mysql.jdbc.JDBC4Connection@55e9f8bd] will not be managed by Spring
2017-06-15 10:51:48,494 DEBUG [BaseJdbcLogger.java:132] : ooo Using Connection [com.mysql.jdbc.JDBC4Connection@55e9f8bd]
2017-06-15 10:51:48,494 DEBUG [BaseJdbcLogger.java:132] : ==> Preparing: SELECT t3.* ,t4.phone_no ,t4.nick_name FROM (SELECT t1.id, t1.user_id, t1.operate_id,t1.operate_ip,t1.ctime, t2.operate_name,t2.operate_type,sum(t2.operate_value) as operate_value FROM wsp_user_operate_log t1 LEFT JOIN wsp_user_operate_defind t2 ON t1.operate_id = t2.id GROUP BY t1.operate_id,t1.user_id)t3 LEFT JOIN wsp_user t4 ON t3.user_id=t4.id WHERE t3.user_id IS NOT null ORDER BY operate_value DESC
2017-06-15 10:51:48,495 DEBUG [BaseJdbcLogger.java:132] : ==> Parameters:
2017-06-15 10:51:48,864 DEBUG [SqlSessionUtils.java:170] : Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@54c1b64a]
2017-06-15 10:51:48,865 DEBUG [DataSourceUtils.java:327] : Returning JDBC Connection to DataSource
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'operateIP ' of 'class com.chinaunicom.wsp.facade.entity.UserOperateLog' with value '127.0.0.11' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'operateIP ' in 'class com.chinaunicom.wsp.facade.entity.UserOperateLog'
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:364)
at com.sun.proxy.$Proxy23.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:201)
at com.chinaunicom.wsp.core.dao.BaseDaoImpl.listPage(BaseDaoImpl.java:238)
at com.chinaunicom.wsp.facade.service.impl.UserOperateLogServiceImpl.listPage(UserOperateLogServiceImpl.java:62)
at com.chinaunicom.wsp.admin.controller.UserOperateLogController.list(UserOperateLogController.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.ibatis.reflection.ReflectionException: Could not set property 'operateIP ' of 'class com.chinaunicom.wsp.facade.entity.UserOperateLog' with value '127.0.0.11' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'operateIP ' in 'class com.chinaunicom.wsp.facade.entity.UserOperateLog'
at org.apache.ibatis.reflection.wrapper.BeanWrapper.setBeanProperty(BeanWrapper.java:172)
at org.apache.ibatis.reflection.wrapper.BeanWrapper.set(BeanWrapper.java:54)
at org.apache.ibatis.reflection.MetaObject.setValue(MetaObject.java:130)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.applyPropertyMappings(FastResultSetHandler.java:304)
at org.apache.ibatis.executor.resultset.NestedResultSetHandler.getRowValue(NestedResultSetHandler.java:135)
at org.apache.ibatis.executor.resultset.NestedResultSetHandler.handleRowValues(NestedResultSetHandler.java:102)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.handleResultSet(FastResultSetHandler.java:188)
at org.apache.ibatis.executor.resultset.NestedResultSetHandler.handleResultSet(NestedResultSetHandler.java:73)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.handleResultSets(FastResultSetHandler.java:154)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:57)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:70)
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:57)
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:259)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:132) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:105)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:81)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:354)
... 62 more
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'operateIP ' in 'class com.chinaunicom.wsp.facade.entity.UserOperateLog'
at org.apache.ibatis.reflection.Reflector.getSetInvoker(Reflector.java:369)
at org.apache.ibatis.reflection.MetaClass.getSetInvoker(MetaClass.java:171)
at org.apache.ibatis.reflection.wrapper.BeanWrapper.setBeanProperty(BeanWrapper.java:164)
... 83 more
2017-06-15 10:51:48,867 DEBUG [DispatcherServlet.java:1241] : Rendering view [org.springframework.web.servlet.view.JstlView: name '/mgr/userLog/queryAppUserRecord'; URL [//mgr/userLog/queryAppUserRecord.jsp]] in DispatcherServlet with name 'springmvc'
2017-06-15 10:51:48,867 DEBUG [AbstractView.java:432] : Added model object 'user' of type [com.chinaunicom.wsp.facade.entity.User] to request in view with name '/mgr/userLog/queryAppUserRecord'
2017-06-15 10:51:48,867 DEBUG [AbstractView.java:432] : Added model object 'org.springframework.validation.BindingResult.user' of type [org.springframework.validation.BeanPropertyBindingResult] to request in view with name '/mgr/userLog/queryAppUserRecord'
2017-06-15 10:51:48,867 DEBUG [InternalResourceView.java:166] : Forwarding to resource [//mgr/userLog/queryAppUserRecord.jsp] in InternalResourceView '/mgr/userLog/queryAppUserRecord'
2017-06-15 10:51:48,868 DEBUG [FrameworkServlet.java:1000] : Successfully completed request
2017-06-15 10:51:48,869 DEBUG [AbstractBeanFactory.java:250] : Returning cached instance of singleton bean 'sqlSessionFactory'
There is no setter for property named 可能产生的原因!的更多相关文章
- Could not set property of class with value There is no setter for property named
检查entity中类的属性与MAPPER中的resultMap属性是否一致
- No object in the CompoundRoot has a publicly accessible property named
No object in the CompoundRoot has a publicly accessible property named 'typeid' (no setter could be ...
- There is no getter for property named 'notice' in 'class com.game.domain.Notices'
在插入数据时报错:There is no getter for property named 'notice' in 'class com.game.domain.Notices' 四月 11, 20 ...
- Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'ItemsCustom' in 'class com.pojo.OrderDetailCustom
再用 junit 测试MyBatis时发现的错误: org.apache.ibatis.exceptions.PersistenceException: ### Error querying data ...
- There is no getter for property named 'useName' in 'class cn.itcast.mybatis.pojo.User'
org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: org.apache.i ...
- mybatis There is no getter for property named 'xxxx
mybatis There is no getter for property named 'xxxx 360反馈意见截图16230322799670.png http://blog.sina.com ...
- MyBatis查询传一个参数时报错:There is no getter for property named 'sleevetype' in 'class java.lang.Integer
用MyBatis进行查询,传入参数只有一个时(非Map)如int,报错 There is no getter for property named 'sleevetype' in 'class jav ...
- There is no getter for property named 'purchaseApplyId' in 'class java.lang.Long'
mapper.xml: <delete id="deleteByPurchaseAppyId" parameterType="Long"> < ...
- MyBatis3: There is no getter for property named 'code' in 'class java.lang.String'
mybatis3 : mysql文如下,传入参数为string类型时‘preCode’,运行报错为:There is no getter for property named 'preCode' i ...
随机推荐
- 彻底搞透OAuth 2.0
OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛应用,目前的版本是2.0版. 本文对OAuth 2.0的设计思路和运行流程,做一个简明通俗的解释,主要参考材料为R ...
- 好用的JS拖拽插件
下载artDialog插件的时候发现它把拖拽单独封装成了一个方法,挺好用的,使用方法如下... 第一种拖拽方式-点击容器指定区域进行拖拽 $('.ui-dialog').on(DragEvent.ty ...
- CF1015F
玄学字符串dp... 题意:给定一个括号序列,求长度为2n的合法的括号序列的个数(要求每个被统计的合法序列中均至少有一个子串为给定的括号序列) 题解: 这题没有想的那么复杂,就是暴力的一个dp 首先我 ...
- base64解密
问题 : base64解密 时间限制: 1 Sec 内存限制: 128 MB 题目描述 Base64编码要求把3个8位字节(3*8=24)转化为4个6位的字节(4*6=24),之后在6位的前面补两个 ...
- C++ 关于ShowWindow()的疑问
IDE: Code::Blocks 16.01 操作系统:Windows 7 x64 最初的代码,目的是为了隐藏窗口出现在任务栏上的图标. #include <windows.h> usi ...
- AI学习吧-购物车-添加商品接口
create接口流程 需求:向购物车添加商品 流程:写shopping_cart路由--->写ShoppingCart视图函数--->使用Authuser校验用户是否登录--->首先 ...
- linux下配置docker和splash(图文)
所需要环境:ubuntu16.04 第一步用:sudo apt install docker.io 第二步:完成后查看一下有没有成功 命令:docker -v,如果是输入错了写成了大V他会提示你有哪些 ...
- 修改Linux服务器的ttl值
[root@test_android_client_download ~]# cat /etc/sysctl.conf |grep net.ipv4.ip_default_ttlnet.ipv4.ip ...
- 20165323 实验三 敏捷开发与XP实践
一.实验报告封面 课程:Java程序设计 班级:1653班 姓名:杨金川 学号:20165323 指导教师:娄嘉鹏 实验日期:2018年4月28日 实验时间:13:45 - 15:25 实验序号:实验 ...
- js模板引擎art-Template(以前的artTemplate)
使用js.jquery动态生成html会非常麻烦.现在的模板引擎可以很简单的解决这个问题.比如腾讯出的art-Template 官网:http://aui.github.io/art-template ...