NutzCN Logo
问答 NutzWk-NB版启动TaskMainLauncher报错
发布于 2430天前 作者 qq_6d1ec279 2156 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
[DEBUG] 14:56:36.217 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:107) - Lock 'STATE_ACCESS' is desired by: main
[DEBUG] 14:56:36.284 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'STATE_ACCESS' is being obtained: main
[DEBUG] 14:56:36.320 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:141) - Lock 'STATE_ACCESS' was not obtained by: main - will try again.
[DEBUG] 14:56:37.322 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'STATE_ACCESS' is being obtained: main
[DEBUG] 14:56:37.324 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:141) - Lock 'STATE_ACCESS' was not obtained by: main - will try again.
[DEBUG] 14:56:38.324 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'STATE_ACCESS' is being obtained: main
[DEBUG] 14:56:38.326 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:141) - Lock 'STATE_ACCESS' was not obtained by: main
[ERROR] 14:56:38.329 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3926) - ClusterManager: Error managing cluster: Failure obtaining db row lock: Table 'nutzwk_nb.sys_qrtz_locks' doesn't exist
org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table 'nutzwk_nb.sys_qrtz_locks' doesn't exist [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'nutzwk_nb.sys_qrtz_locks' doesn't exist]
	at org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:157)

14 回复

嗯,没有建表,表找不到

嗯?各软件版本环境怎么样

windows10,jdk8,数据库mysql,能排除掉数据库连不上的问题,因为其他模块的 表都初始化进去了 ;

这个是quartz在数据库初始化之前执行了操作,,不需要功能使用。

设置quartz加载延迟配置项就好,我来提交

找到原因了?

@qq_6d1ec279 已解决,已提交。

@Wizzercn 更新了代码,同时用bc做了对比,但是运行TaskMainLauncher运行报错

[DEBUG] 14:28:01.878 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(quartzManager) in JsonLoader(paths=[])
[DEBUG] 14:28:01.878 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'taskPubSub' from [app] 
[DEBUG] 14:28:01.879 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'taskMainLauncher' from [app] 
[ERROR] 14:28:01.879 org.nutz.boot.NbApp._run(NbApp.java:202) - something happen!!
org.nutz.ioc.IocException: IocBean[taskMainLauncher] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:240)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:270)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:160)

另外 wk-nb-service-sys 要先与task启动

因为定时任务的管理是依赖 wk-nb-service-sys 实现的,如果不想用后台管理,可以把相关代码删除。

@wendal 解决了,刚刚因该是没有clean的原因,clean之后,现在启动正常了,但是
http://127.0.0.1:8080/sysadmin 访问报404错误,提示

Search mapping for [GET] path=/sysadmin : NOT Action match
添加回复
请先登陆
回到顶部