2017-07-28 13:20:27,112 com.shlx.blood.service.ComServices.ExcuteServices(ComServices.java:198) DEBUG - Fail to invoke [com.shlx.blood.service.business.ProblemDemandService$$NUTZAOP].addPd() by args:
{pd=com.shlx.blood.entity.ProblemDemand@1b5a11d, uploadSeq=umxnxd9uqo}
For the reason: Don't know how to make fetch key com.shlx.blood.entity.Attachment:'com.shlx.blood.entity.Attachment@ccf4c7'
org.nutz.lang.InvokingException: Fail to invoke [com.shlx.blood.service.business.ProblemDemandService$$NUTZAOP].addPd() by args:
{pd=com.shlx.blood.entity.ProblemDemand@1b5a11d, uploadSeq=umxnxd9uqo}
For the reason: Don't know how to make fetch key com.shlx.blood.entity.Attachment:'com.shlx.blood.entity.Attachment@ccf4c7'
at org.nutz.lang.Invoking.invoke(Invoking.java:195)
at org.nutz.lang.Mirror.invoke(Mirror.java:1100)
at com.shlx.blood.service.ComServices.ExcuteServices(ComServices.java:194)
at com.shlx.blood.action.ProblemDemandAction.addPd(ProblemDemandAction.java:98)
at com.shlx.blood.action.ProblemDemandAction$$NUTZAOP._aop_invoke(ProblemDemandAction.java:1)
at org.nutz.aop.InterceptorChain.invoke(InterceptorChain.java:77)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:57)
at com.shlx.blood.aop.ActionInterceptor.filter(ActionInterceptor.java:45)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at com.shlx.blood.action.ProblemDemandAction$$NUTZAOP.addPd(ProblemDemandAction.java:1)
at com.shlx.blood.action.ProblemDemandAction$$FASTCLASS._invoke(ProblemDemandAction.java:1)
at org.nutz.lang.reflect.AbstractFastClass.invoke(AbstractFastClass.java:143)
at org.nutz.lang.reflect.FastClassFactory.invoke(FastClassFactory.java:67)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
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.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.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at com.shlx.blood.mvc.SessionCheckProcessor.process(SessionCheckProcessor.java:48)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
public void bindAttachment(String pdId,String uploadSeq,String userId){
List<Attachment> attachmentList = new ArrayList<Attachment>();
attachmentList = dao.query(Attachment.class, Cnd.where("uploadSeq","=",uploadSeq));
for(int i=0; i<attachmentList.size();i++){
Attachment atta = attachmentList.get(i);
atta.setPdId(pdId);
dao.update(atta);
}
//.andNot("createTime","is",null)
dao.clear(Attachment.class, Cnd.where("pdId","is",null).and("uploader","=",userId));
}