启动服务不报错,访问的时候报错,然后服务就自动停止了!本地使用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®ister.ip=192.168.31.42&revision=5.0.1-SNAPSHOT&side=consumer&timeout=3000000×tamp=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®ister.ip=192.168.31.42&revision=5.0.1-SNAPSHOT&side=consumer&timeout=3000000×tamp=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