NutzCN Logo
问答 启动服务不报错,访问的时候报错
发布于 14天前 作者 wx_3un8gefq8c8pul4do54f 94 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

启动服务不报错,访问的时候报错,然后服务就自动停止了!本地使用idea可以正常启动

[ERROR] 15:48:34.049 org.nutz.boot.NbApp.execute(NbApp.java:218) - something happen!!
org.nutz.ioc.IocException: IocBean[dubboManager -> dubboAnnotationBean -> frontPendServiceImpl] 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.impl.NutIoc.getByType(NutIoc.java:426)
	at org.nutz.integration.dubbo.AnnotationBean._init(AnnotationBean.java:73)
	at org.nutz.integration.dubbo.AnnotationBean$FM$_init$10583fbff8d536aad3a9d8b6141ae03e.invoke(AnnotationBean.java)
	at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:180)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.integration.dubbo.DubboManager.init(DubboManager.java:34)
	at org.nutz.integration.dubbo.DubboManager._init(DubboManager.java:27)
	at org.nutz.integration.dubbo.DubboManager$FM$_init$10583fbff8d536aad3a9d8b6141ae03e.invoke(DubboManager.java)
	at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:180)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
	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.starter.dubbo.DubboStarter.start(DubboStarter.java:17)
	at org.nutz.boot.AppContext.startServers(AppContext.java:306)
	at org.nutz.boot.NbApp.execute(NbApp.java:204)
	at org.nutz.boot.NbApp.run(NbApp.java:177)
	at cn.wizzer.app.blink.commons.core.DubboRpcBlinkMainLauncher.main(DubboRpcBlinkMainLauncher.java:33)
Caused by: java.lang.RuntimeException: IocBean[frontPendServiceImpl] fail at field=[robotAPIService]
	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)
	... 24 more
Caused by: org.nutz.ioc.IocException: IocBean[vmgtnhmm78i5noit4fgvu78e0a] 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)
	... 26 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.robot.modules.services.RobotAPIService. No provider available for the service cn.wizzer.app.robot.modules.services.RobotAPIService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-dubbo-blink&dubbo=5.0.1-SNAPSHOT&interface=cn.wizzer.app.robot.modules.services.RobotAPIService&methods=getUserCoinWallet,getEntrustStatusForHis,getEntrustStatus,getTradeList,getPriceForRedis,checkUserLoginForLogin,getFullDepth,checkUserLogin,buyCoinSubmitForSimulate,getPrice,getCoinMarket,buyCoinSubmit,sellCoinSubmitForSimulate,sellCoinSubmit,getUserEntrust,cancelEntrust,getUserEntrustHis,cancelEntrustForSimulate,getPriceForSimulate,getKline&pid=28456&register.ip=192.168.31.42&revision=5.0.1-SNAPSHOT&side=consumer&timeout=3000000&timestamp=1536133628477 to the consumer 192.168.31.42 use dubbo version 5.0.1-SNAPSHOT
	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)
	... 30 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.wizzer.app.robot.modules.services.RobotAPIService. No provider available for the service cn.wizzer.app.robot.modules.services.RobotAPIService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-dubbo-blink&dubbo=5.0.1-SNAPSHOT&interface=cn.wizzer.app.robot.modules.services.RobotAPIService&methods=getUserCoinWallet,getEntrustStatusForHis,getEntrustStatus,getTradeList,getPriceForRedis,checkUserLoginForLogin,getFullDepth,checkUserLogin,buyCoinSubmitForSimulate,getPrice,getCoinMarket,buyCoinSubmit,sellCoinSubmitForSimulate,sellCoinSubmit,getUserEntrust,cancelEntrust,getUserEntrustHis,cancelEntrustForSimulate,getPriceForSimulate,getKline&pid=28456&register.ip=192.168.31.42&revision=5.0.1-SNAPSHOT&side=consumer&timeout=3000000&timestamp=1536133628477 to the consumer 192.168.31.42 use dubbo version 5.0.1-SNAPSHOT
	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)
	... 34 more

4 回复

已经写得很清楚

Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.wizzer.app.robot.modules.services.RobotAPIService. No provider available for the service cn.wizzer.app.robot.modules.services.RobotAPIService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-dubbo-blink&dubbo=5.0.1-SNAPSHOT&interface=cn.wizzer.app.robot.modules.services.RobotAPIService&methods=getUserCoinWallet,getEntrustStatusForHis,getEntrustStatus,getTradeList,getPriceForRedis,checkUserLoginForLogin,getFullDepth,checkUserLogin,buyCoinSubmitForSimulate,getPrice,getCoinMarket,buyCoinSubmit,sellCoinSubmitForSimulate,sellCoinSubmit,getUserEntrust,cancelEntrust,getUserEntrustHis,cancelEntrustForSimulate,getPriceForSimulate,getKline&pid=28456&register.ip=192.168.31.42&revision=5.0.1-SNAPSHOT&side=consumer&timeout=3000000&timestamp=1536133628477 to the consumer 192.168.31.42 use dubbo version 5.0.1-SNAPSHOT
	at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422)
	at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)

这个问题,第二天启动服务就没有任何问题了,什么都没改变!这是为啥呀?

今天又出现这个相同的问题了

启动顺序的问题吧

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