| 06-09 10:14:03 [http-bio-8080-exec-2] INFO org.nutz.lang.eject.EjectByGetter -Fail to value by getter
java.lang.NullPointerException: null
at org.activiti.engine.impl.persistence.entity.DeploymentEntity.getResources(DeploymentEntity.java:66)
at org.activiti.engine.impl.persistence.entity.DeploymentEntity$FM$getResources$40c206f326aed556d9ef32dc67ac8272.invoke(DeploymentEntity.java)
at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:35)
at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:186)
at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:63)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
at org.nutz.json.handler.JsonIterableHandler.toJson(JsonIterableHandler.java:34)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:128)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
at org.nutz.json.Json.toJson(Json.java:254)
at org.nutz.mvc.Mvcs.write(Mvcs.java:330)
at org.nutz.mvc.view.UTF8JsonView.render(UTF8JsonView.java:68)
at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.plugins.validation.ValidationProcessor.process(ValidationProcessor.java:56)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:38)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:56)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
| 06-09 10:14:03 [http-bio-8080-exec-2] ERROR me.example.studynutz.module.LogModule -null
java.lang.RuntimeException: Fail to invoke getter org.activiti.engine.impl.persistence.entity.DeploymentEntity.'getResources()' <class org.activiti.engine.impl.persistence.entity.DeploymentEntity> because [java.lang.NullPointerException]: null
at org.nutz.lang.Lang.makeThrow(Lang.java:139)
at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:45)
at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:186)
at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:63)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
at org.nutz.json.handler.JsonIterableHandler.toJson(JsonIterableHandler.java:34)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:128)
at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
at org.nutz.json.Json.toJson(Json.java:254)
at org.nutz.mvc.Mvcs.write(Mvcs.java:330)
at org.nutz.mvc.view.UTF8JsonView.render(UTF8JsonView.java:68)
at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.plugins.validation.ValidationProcessor.process(ValidationProcessor.java:56)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:38)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:56)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
DeploymentEntity类
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.activiti.engine.impl.persistence.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.activiti.engine.impl.context.Context;
import org.activiti.engine.impl.db.PersistentObject;
import org.activiti.engine.repository.Deployment;
public class DeploymentEntity implements Serializable, Deployment, PersistentObject {
private static final long serialVersionUID = 1L;
protected String id;
protected String name;
protected String category;
protected String tenantId = "";
protected Map<String, ResourceEntity> resources;
protected Date deploymentTime;
protected boolean isNew;
protected Map<Class<?>, List<Object>> deployedArtifacts;
public DeploymentEntity() {
}
public ResourceEntity getResource(String resourceName) {
return (ResourceEntity)this.getResources().get(resourceName);
}
public void addResource(ResourceEntity resource) {
if (this.resources == null) {
this.resources = new HashMap();
}
this.resources.put(resource.getName(), resource);
}
public Map<String, ResourceEntity> getResources() {
if (this.resources == null && this.id != null) {
List<ResourceEntity> resourcesList = Context.getCommandContext().getResourceEntityManager().findResourcesByDeploymentId(this.id);
this.resources = new HashMap();
Iterator var2 = resourcesList.iterator();
while(var2.hasNext()) {
ResourceEntity resource = (ResourceEntity)var2.next();
this.resources.put(resource.getName(), resource);
}
}
return this.resources;
}
public Object getPersistentState() {
Map<String, Object> persistentState = new HashMap();
persistentState.put("category", this.category);
persistentState.put("tenantId", this.tenantId);
return persistentState;
}
public void addDeployedArtifact(Object deployedArtifact) {
if (this.deployedArtifacts == null) {
this.deployedArtifacts = new HashMap();
}
Class<?> clazz = deployedArtifact.getClass();
List<Object> artifacts = (List)this.deployedArtifacts.get(clazz);
if (artifacts == null) {
artifacts = new ArrayList();
this.deployedArtifacts.put(clazz, artifacts);
}
((List)artifacts).add(deployedArtifact);
}
public <T> List<T> getDeployedArtifacts(Class<T> clazz) {
return (List)this.deployedArtifacts.get(clazz);
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getCategory() {
return this.category;
}
public void setCategory(String category) {
this.category = category;
}
public String getTenantId() {
return this.tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public void setResources(Map<String, ResourceEntity> resources) {
this.resources = resources;
}
public Date getDeploymentTime() {
return this.deploymentTime;
}
public void setDeploymentTime(Date deploymentTime) {
this.deploymentTime = deploymentTime;
}
public boolean isNew() {
return this.isNew;
}
public void setNew(boolean isNew) {
this.isNew = isNew;
}
public String toString() {
return "DeploymentEntity[id=" + this.id + ", name=" + this.name + "]";
}
}