NutzCN Logo
问答 更新数据时报RuntimeException
发布于 1999天前 作者 qq_3c03857e 1527 次浏览 复制 上一个帖子 下一个帖子
标签:
java.lang.RuntimeException: Don't know how to make fetch key com.ysu.drgs.pojo.LCLJJD:'com.ysu.drgs.pojo.LCLJJD@1641ee0'
	at org.nutz.lang.Lang.makeThrow(Lang.java:132)
	at org.nutz.dao.util.Pojos$Items.cndAuto(Pojos.java:149)
	at org.nutz.dao.impl.EntityOperator.addUpdate(EntityOperator.java:74)
	at org.nutz.dao.impl.EntityOperator.addUpdate(EntityOperator.java:56)
	at org.nutz.dao.impl.NutDao.update(NutDao.java:265)
	at com.ysu.drgs.proxy.dao.JCSJWHDaoImpl.lcljsjUpdate(JCSJWHDaoImpl.java:2109)
	at com.ysu.drgs.proxy.dao.JCSJWHDaoImpl$$NUTZAOP._aop_invoke(JCSJWHDaoImpl.java:13)
	at org.nutz.aop.InterceptorChain.invoke(InterceptorChain.java:77)
	at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:57)
	at org.nutz.aop.interceptor.TransactionInterceptor.filter(TransactionInterceptor.java:34)
	at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
	at com.ysu.drgs.proxy.dao.JCSJWHDaoImpl$$NUTZAOP.lcljsjUpdate(JCSJWHDaoImpl.java:1)
	at com.ysu.drgs.proxy.service.JCSJWHServiceImpl.lcljsjUpdate(JCSJWHServiceImpl.java:185)
	at com.ysu.drgs.proxy.action.JCSJWHAction.lcljsjUpdate(JCSJWHAction.java:295)
	at com.ysu.drgs.proxy.action.JCSJWHAction$$FASTCLASS._invoke(JCSJWHAction.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.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.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at com.ysu.drgs.shiro.LogTimeProcessor.process(LogTimeProcessor.java:18)
	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:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	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:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)

请教一下这是什么原因引起的

4 回复

JCSJWHDaoImpl.java:2109 写了啥

Cnd cnd = Cnd.NEW();
			cnd.and("fid", "=", Long.parseLong(headerDataArr.getJSONObject(i).getString("fid")));
			LCLJJD jd = dao.fetch(LCLJJD.class, cnd);
...//中间是一些set方法
dao.update(jd);

2109就是dao.update(jd)

这个类没有@Id/@Name才会报错

明白了,感谢

添加回复
请先登陆
回到顶部