NutzCN Logo
问答 网上新下载的WK5.0,无法正常启动
发布于 2213天前 作者 qq_823bd460 1269 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

第一次跑能跑起来,能正常启动,然后第二次环境和代码什么都没改的情况下无法正常启动

[ERROR] 22:29:08.062 org.nutz.boot.NbApp.execute(NbApp.java:218) - 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:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
	at org.nutz.boot.NbApp.execute(NbApp.java:208)
	at org.nutz.boot.NbApp.run(NbApp.java:177)
	at cn.wizzer.app.task.commons.core.TaskMainLauncher.main(TaskMainLauncher.java:49)
Caused by: java.lang.RuntimeException: IocBean[taskMainLauncher] fail at field=[sysTaskService]
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	... 6 more
Caused by: org.nutz.ioc.IocException: IocBean[sssr3d6enaht6qt8epob3mbkj9] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	... 8 more
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.integration.dubbo.ReferenceBean].get() by args:
 
For the reason: Failed to check the status of the service cn.wizzer.app.sys.modules.services.SysTaskService. No provider available for the service cn.wizzer.app.sys.modules.services.SysTaskService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-task&dubbo=2.6.1&interface=cn.wizzer.app.sys.modules.services.SysTaskService&methods=updateWithVersion,data,insertRelation,insertWith,insertOrUpdate,dao,getMaxId,getSubPath,query,count,getField,vDelete,list,execute,fetchx,getMap,updateAndIncrIfMatch,updateLinks,fetchLinks,updateRelation,fastInsert,update,insert,insertLinks,getParentPath,delete,updateIgnoreNull,clear,getEntity,updateWith,fetch,exists,listPage&pid=8532&register.ip=10.182.2.113&side=consumer&timestamp=1522592945260 to the consumer 10.182.2.113 use dubbo version 2.6.1
	at org.nutz.lang.Invoking.invoke(Invoking.java:195)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1132)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	... 12 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.wizzer.app.sys.modules.services.SysTaskService. No provider available for the service cn.wizzer.app.sys.modules.services.SysTaskService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-task&dubbo=2.6.1&interface=cn.wizzer.app.sys.modules.services.SysTaskService&methods=updateWithVersion,data,insertRelation,insertWith,insertOrUpdate,dao,getMaxId,getSubPath,query,count,getField,vDelete,list,execute,fetchx,getMap,updateAndIncrIfMatch,updateLinks,fetchLinks,updateRelation,fastInsert,update,insert,insertLinks,getParentPath,delete,updateIgnoreNull,clear,getEntity,updateWith,fetch,exists,listPage&pid=8532&register.ip=10.182.2.113&side=consumer&timestamp=1522592945260 to the consumer 10.182.2.113 use dubbo version 2.6.1
	at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422)
	at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)
	at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163)
	at org.nutz.integration.dubbo.ReferenceBean.get(ReferenceBean.java:152)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	... 16 more
Exception in thread "Quartz Scheduler [defaultScheduler]" java.lang.RuntimeException: Could not start Quartz Scheduler after delay
	at org.nutz.boot.starter.quartz.QuartzStarter$1.run(QuartzStarter.java:111)
Caused by: org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called.
	at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:529)
	at org.quartz.impl.StdScheduler.start(StdScheduler.java:142)
	at org.nutz.boot.starter.quartz.QuartzStarter$1.run(QuartzStarter.java:109)

[ERROR] 22:29:07.365 org.nutz.boot.NbApp.execute(NbApp.java:218) - something happen!!
org.nutz.ioc.IocException: IocBean[webPlatformMainLauncher] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
	at org.nutz.boot.NbApp.execute(NbApp.java:208)
	at org.nutz.boot.NbApp.run(NbApp.java:177)
	at cn.wizzer.app.web.commons.core.WebPlatformMainLauncher.main(WebPlatformMainLauncher.java:41)
Caused by: java.lang.RuntimeException: IocBean[webPlatformMainLauncher] fail at field=[globals]
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	... 6 more
Caused by: org.nutz.ioc.IocException: IocBean[globals] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	... 8 more
Caused by: java.lang.RuntimeException: IocBean[globals] fail at field=[sysConfigService]
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	... 11 more
Caused by: org.nutz.ioc.IocException: IocBean[rhis4ebsnkgh9q0p35bv99g4bs] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	... 13 more
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.integration.dubbo.ReferenceBean].get() by args:
 
For the reason: Failed to check the status of the service cn.wizzer.app.sys.modules.services.SysConfigService. No provider available for the service cn.wizzer.app.sys.modules.services.SysConfigService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-web-platform&dubbo=2.6.1&interface=cn.wizzer.app.sys.modules.services.SysConfigService&methods=updateWithVersion,data,insertRelation,insertWith,insertOrUpdate,dao,getMaxId,getSubPath,query,count,getField,vDelete,list,execute,fetchx,getMap,updateAndIncrIfMatch,updateLinks,fetchLinks,updateRelation,fastInsert,getAllList,update,insert,insertLinks,getParentPath,delete,updateIgnoreNull,clear,getEntity,updateWith,fetch,exists,listPage&pid=4408&register.ip=10.182.2.113&side=consumer&timestamp=1522592946246 to the consumer 10.182.2.113 use dubbo version 2.6.1
	at org.nutz.lang.Invoking.invoke(Invoking.java:195)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1132)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	... 17 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.wizzer.app.sys.modules.services.SysConfigService. No provider available for the service cn.wizzer.app.sys.modules.services.SysConfigService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-web-platform&dubbo=2.6.1&interface=cn.wizzer.app.sys.modules.services.SysConfigService&methods=updateWithVersion,data,insertRelation,insertWith,insertOrUpdate,dao,getMaxId,getSubPath,query,count,getField,vDelete,list,execute,fetchx,getMap,updateAndIncrIfMatch,updateLinks,fetchLinks,updateRelation,fastInsert,getAllList,update,insert,insertLinks,getParentPath,delete,updateIgnoreNull,clear,getEntity,updateWith,fetch,exists,listPage&pid=4408&register.ip=10.182.2.113&side=consumer&timestamp=1522592946246 to the consumer 10.182.2.113 use dubbo version 2.6.1
	at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422)
	at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)
	at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163)
	at org.nutz.integration.dubbo.ReferenceBean.get(ReferenceBean.java:152)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	... 21 more

7 回复

依赖关系是 sys 为第一启动项,然后其他,最后才启动 web-platform

web-platform 引用了 sys(其中定时任务管理引用task)、cms、wx;
task引用了sys;
cms、wx相对独立,没有引用其他服务端;

搞清楚依赖关系就好

我的顺序是1.DubboRpcSysMainLauncher-2.DubboRpcCmsMainLauncher-3.DubboRpcWxMainLauncher-4.TaskMainLauncher-5.WebPlatformMainLauncher感觉没有错啊

NutzWk 5.x 运行必备环境:
Redis
MySql
Zookeeper

这些都有,因为第一次都能正常启动

总结下,网络环境变了如果启动不了,可尝试重启ZK,dubbo和zookeeper通信问题,和框架本身无关。

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