Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'limitBefore' in 'class org.activiti.engine.impl.TaskQueryImpl'
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:107)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98)
at org.activiti.engine.impl.db.DbSqlSession.selectListWithRawParameter(DbSqlSession.java:286)
at org.activiti.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:277)
at org.activiti.engine.impl.persistence.entity.TaskEntityManager.findTasksByQueryCriteria(TaskEntityManager.java:113)
at org.activiti.engine.impl.TaskQueryImpl.executeList(TaskQueryImpl.java:551)
at org.activiti.engine.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:158)
at org.activiti.engine.impl.AbstractQuery.execute(AbstractQuery.java:141)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:37)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.AbstractQuery.singleResult(AbstractQuery.java:104)
我也遇到了,怎么解决的????
/*LicensedundertheApacheLicense,Version2.0(the"License");*youmaynotusethisfileexceptincompliancewiththeLicense.*YoumayobtainacopyoftheLicenseat**http://www.apache.org/licenses/LICENSE-2.0**Unlessrequiredbyapplicablelaworagreedtoinwriting,software*distributedundertheLicenseisdistributedonan"ASIS"BASIS,*WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.*SeetheLicenseforthespecificlanguagegoverningpermissionsand*limitationsundertheLicense.*/packageorg.activiti.engine.impl.db;/***@authorDanielMeyer*/publicclassListQueryParameterObject{protectedintmaxResults=Integer.MAX_VALUE;protectedintfirstResult=0;protectedObjectparameter;protectedStringdatabaseType;publicListQueryParameterObject(){}publicListQueryParameterObject(Objectparameter,intfirstResult,intmaxResults){this.parameter=parameter;this.firstResult=firstResult;this.maxResults=maxResults;}publicintgetFirstResult(){returnfirstResult;}publicintgetFirstRow(){returnfirstResult+1;}publicintgetLastRow(){if(maxResults==Integer.MAX_VALUE){returnmaxResults;}returnfirstResult+maxResults+1;}publicintgetMaxResults(){returnmaxResults;}publicObjectgetParameter(){returnparameter;}publicvoidsetFirstResult(intfirstResult){this.firstResult=firstResult;}publicvoidsetMaxResults(intmaxResults){this.maxResults=maxResults;}publicvoidsetParameter(Objectparameter){this.parameter=parameter;}publicStringgetOrderBy(){//thedefaultordercolumnreturn"RES.ID_asc";}publicStringgetOrderByColumns(){returngetOrderBy();}publicvoidsetDatabaseType(StringdatabaseType){this.databaseType=databaseType;}publicStringgetDatabaseType(){returndatabaseType;}publicStringgetLimitBefore(){return"";}publicvoidsetLimitBefore(StringlimitBefore){}}
再自己项目里创建一个上述的类,问题解决
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。