查询任务时报错,希望在这里能找到线索
来源:4-7 任务处理Task(上)
hahaduo
2021-01-24
### Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'delegationStateString' of 'class org.activiti.engine.impl.persistence.entity.TaskEntityImpl' with value '' Cause: java.lang.IllegalArgumentException: No enum constant org.activiti.engine.task.DelegationState.
### The error may exist in org/activiti/db/mapping/entity/Task.xml
### The error may involve org.activiti.engine.impl.persistence.entity.TaskEntityImpl.selectTaskByQueryCriteria
### The error occurred while handling results
### SQL: select distinct RES.* from ACT_RU_TASK RES left join ACT_RU_IDENTITYLINK I_OR0 on I_OR0.TASK_ID_ = RES.ID_ WHERE ( RES.OWNER_ = ? or (RES.ASSIGNEE_ = ? or (RES.ASSIGNEE_ is null and I_OR0.TYPE_ = 'candidate' and (I_OR0.USER_ID_ = ? ))) ) order by RES.ID_ asc LIMIT ? OFFSET ?
### Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'delegationStateString' of 'class org.activiti.engine.impl.persistence.entity.TaskEntityImpl' with value '' Cause: java.lang.IllegalArgumentException: No enum constant org.activiti.engine.task.DelegationState.
写回答
1回答
-
汪汪对
2021-01-24
看起来是mybatis的问题,sql查询的值要和实体类的字段保持一致,按照这个检查下,如果查不到问题,可以工作日加群,发源码帮你看看。
00
相似问题