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 可能产生的原因!的更多相关文章

  1. Could not set property of class with value There is no setter for property named

    检查entity中类的属性与MAPPER中的resultMap属性是否一致

  2. 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 ...

  3. 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 ...

  4. 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 ...

  5. 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 ...

  6. 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 ...

  7. 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 ...

  8. There is no getter for property named 'purchaseApplyId' in 'class java.lang.Long'

    mapper.xml: <delete id="deleteByPurchaseAppyId" parameterType="Long"> < ...

  9. 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 ...

随机推荐

  1. VUE 密码验证与提示

    1. 概述 1.1 说明 vue项目中,为了较为明了的让用户看到所输入的密码信息的长度与复杂度是否满足要求,开发一个组件来满足此需求(当密码输入时进行密码验证操作,当密码的长度在8到24位之间,密码中 ...

  2. centos6.5安装python2.7、pip、numpy、scipy

    1..安装Development Tools yum groupinstall -y 'development tools' 2.安装SSL.bz2.zlib来为Python的安装做好准备工作 yum ...

  3. 【进阶3-2期】JavaScript深入之重新认识箭头函数的this(转)

    这是我在公众号(高级前端进阶)看到的文章,现在做笔记 https://github.com/yygmind/blog/issues/21 上篇文章详细的分析了各种this的情况,看过之后对this的概 ...

  4. 判断iOS版本号

    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0) {  }

  5. 整理oracle 树形查询

    注:本文参考了<整理oracle 树形查询> sql树形递归查询是数据库查询的一种特殊情形,也是组织结构.行政区划查询的一种最常用的的情形之一.下面对该种查询进行一些总结: create ...

  6. Lake Counting

    Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 41340   Accepted: 20504 Description Due ...

  7. 条件为空的sql你们写过么 (我也是醉了碰到了这种需求,当时还真有点o((⊙﹏⊙))o懵逼.jpg)

    需求描述:单表,父子关系,有个统一的主键dict_id和一个父级别的parent_id,查询父级别的字典名称,parent_id是空,本渣用的是mybatis奥!!! 废话不多说,直接上代码mappe ...

  8. 【深度学习】吴恩达网易公开课练习(class1 week4)

    概要 class1 week3的任务是实现单隐层的神经网络代码,而本次任务是实现有L层的多层深度全连接神经网络.关键点跟class3的基本相同,算清各个参数的维度即可. 关键变量: m: 训练样本数量 ...

  9. h5 video标签的使用

     标签的布置 <video src="1.mp4" poster="1.jpg" id="vid" controls> 你的浏览 ...

  10. IDEA加载项目的设置是tomcat