public ManuscriptProgress addManuscriptProgress(ManuscriptProgress manuscriptProgress) {
manuscriptProgress=dao.insert(manuscriptProgress);
dao.fetchLinks(manuscriptProgress, "SubmitUser");
dao.fetchLinks(manuscriptProgress, "submitmanuscript");
return manuscriptProgress;
}```这一段可以,是正常的
下面这段就不行
大神帮忙看卡,实在找不到问题在哪儿啊
public List getManuscriptProgress(int state) {
Criteria cnd =Cnd.cri();
cnd.where().and("SubmitUserid","=",Toolkit.getloginid());
if(state!=-1) {
cnd.where().and("state","=",state);
}
List manuscriptProgresses=dao.query(ManuscriptProgress.class, cnd);
dao.fetchLinks(ManuscriptProgress.class,"submitmanuscript");
dao.fetchLinks(ManuscriptProgress.class, "SubmitUser");
return manuscriptProgresses;
}
日志
7-12-25 13:16:39.674 WARN [http-bio-8080-exec-13] Error@/Manuscript/getManuscriptProgress :
org.nutz.dao.DaoException: Need non-arg constructor : class java.lang.Class
at org.nutz.dao.impl.entity.NutEntity.(NutEntity.java:190)
at org.nutz.dao.impl.entity.AnnotationEntityMaker._createNutEntity(AnnotationEntityMaker.java:584)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:90)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:72)
at org.nutz.dao.impl.EntityHolder.getEntityBy(EntityHolder.java:109)
at org.nutz.dao.impl.NutDao._optBy(NutDao.java:970)
at org.nutz.dao.impl.NutDao._fetchLinks(NutDao.java:1167)
at org.nutz.dao.impl.NutDao$11.invoke(NutDao.java:636)
at org.nutz.lang.Lang.each(Lang.java:1641)
at org.nutz.dao.impl.NutDao.fetchLinks(NutDao.java:634)
at org.nutz.dao.impl.NutDao.fetchLinks(NutDao.java:628)
at com.qcjy.kotya.service.ManuscriptService.getManuscriptProgress(ManuscriptService.java:98)
at com.qcjy.kotya.module.ManuscriptModule.getManuscriptProgress(ManuscriptModule.java:182)
at com.qcjy.kotya.module.ManuscriptModule$FM$getManuscriptProgress$0cd2c2ce56adc5fb4252054264994b76.invoke(ManuscriptModule.java)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31)
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.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:67)
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:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
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:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
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)
```