NutzCN Logo
问答 执行查询操作可能会出现的运行时异常
发布于 2359天前 作者 gitwqj 1716 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
 For example:> "SELECT * FROM t_device  WHERE TID='000173700019' LIMIT 0, 1 "
2017-11-01 15:08:42,281 cn.xhbds.log.DLog.error(DLog.java:59) ERROR - bad message
java.lang.RuntimeException: Context 'app' had been deposed!
	at org.nutz.lang.Lang.makeThrow(Lang.java:132)
	at org.nutz.ioc.impl.ScopeContext.checkBuffer(ScopeContext.java:38)
	at org.nutz.ioc.impl.ScopeContext.fetch(ScopeContext.java:54)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:165)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at cn.xhbds.utils.Global.getRedisService(Global.java:38)
	at cn.xhbds.service.observer.MDeviceMessageManager.<init>(MDeviceMessageManager.java:27)
	at cn.xhbds.service.observer.MDeviceMessageManager.getInstance(MDeviceMessageManager.java:43)
	at cn.xhbds.service.redis.RedisPubSub.lambda$2(RedisPubSub.java:143)
	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

有时执行这个sql就会出现这个异常

4 回复

项目reload过??

嗯,是的,是这个原因导致的?

Setup.depose方法里面,把线程关掉吧

嗯,好像ok 了

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