NutzCN Logo
问答 自定义sql执行select for update报错
发布于 88天前 作者 wx_3un8gefq8c8pul4do54f 145 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

代码:Sql sql = Sqls.fetchEntity("select * from t_ieo_project where id = "+projectID+" and status = 2 for update");
Entity entity = getEntity(T_ieo_project.class);
sql.setEntity(entity);
execute(sql);
报错:[ERROR] 12:00:32.391 com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:85) - [DUBBO] Got unchecked and undeclared exception which called by 192.168.0.19. service: cn.wizzer.app.ieo.modules.services.TIeoProjectService, method: setOrder, exception: java.lang.StackOverflowError: null, dubbo version: 2.6.2, current host: 192.168.0.19
java.lang.StackOverflowError
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
at cn.wizzer.framework.base.service.BaseServiceImpl.getEntity(BaseServiceImpl.java:37)
(ps:还有很多一样的报错)

4 回复

nutzwk的bug,等更新

这么多年第一次有人用这个方法~~~居然是个bug 233...

那像这样的需求,我需要怎么实现呢?

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