activiti TASK 里面没有 get方法
然后报错
[INFO ] 2018-03-26 16:03:16,383 org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:42) - Fail to value by getter
java.lang.NullPointerException
at org.activiti.engine.impl.persistence.entity.TaskEntity.getExecution(TaskEntity.java:323)
at org.activiti.engine.impl.persistence.entity.TaskEntity$FM$getExecution$9f294669bb584e938c00a70fe1992b26.invoke(TaskEntity.java)
at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:33)
at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:173)
at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:278)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:343)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
at org.nutz.json.impl.JsonRenderImpl.coll2Json(JsonRenderImpl.java:440)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:153)
at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:252)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:149)
at org.nutz.json.Json.toJson(Json.java:239)
at org.nutz.mvc.Mvcs.write(Mvcs.java:292)
[WARN ] 2018-03-26 16:03:16,386 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) - Error@/platform/wf/cfg/task/tododata :
java.lang.RuntimeException: Fail to invoke getter org.activiti.engine.impl.persistence.entity.TaskEntity.'getExecution()' <class org.activiti.engine.impl.persistence.entity.TaskEntity> because [java.lang.NullPointerException]: null
at org.nutz.lang.Lang.makeThrow(Lang.java:133)
at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:43)
at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:173)
at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:278)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:343)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
at org.nutz.json.impl.JsonRenderImpl.coll2Json(JsonRenderImpl.java:440)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:153)
at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:252)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:149)
at org.nutz.json.Json.toJson(Json.java:239)
at org.nutz.mvc.Mvcs.write(Mvcs.java:292)
代码
TaskQuery todoTaskQuery = taskService.createTaskQuery().taskAssignee(user.getLoginname()).active()
.includeProcessVariables().orderByTaskCreateTime().desc();