[INFO ] 15:52:05.253 com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:387) - [DUBBO] Notify urls for subscribe url consumer://192.168.3.30/cn.wizzer.api.water.modules.services.DeviceService?application=wk-nb-dubbo-dev&category=providers,configurators,routers&default.retries=0&default.timeout=60000&dubbo=2.6.2&interface=cn.wizzer.api.water.modules.services.DeviceService&methods=regDeviceBatch,delDevice,updateDevice,regDevice,deviceHistoryData,listDevTypes,listDevices,queryDevType,queryDeviceAllInfo&pid=8284&side=consumer×tamp=1553068324658, urls: [empty://192.168.3.30/cn.wizzer.api.water.modules.services.DeviceService?application=wk-nb-dubbo-dev&category=providers&default.retries=0&default.timeout=60000&dubbo=2.6.2&interface=cn.wizzer.api.water.modules.services.DeviceService&methods=regDeviceBatch,delDevice,updateDevice,regDevice,deviceHistoryData,listDevTypes,listDevices,queryDevType,queryDeviceAllInfo&pid=8284&side=consumer×tamp=1553068324658, empty://192.168.3.30/cn.wizzer.api.water.modules.services.DeviceService?application=wk-nb-dubbo-dev&category=configurators&default.retries=0&default.timeout=60000&dubbo=2.6.2&interface=cn.wizzer.api.water.modules.services.DeviceService&methods=regDeviceBatch,delDevice,updateDevice,regDevice,deviceHistoryData,listDevTypes,listDevices,queryDevType,queryDeviceAllInfo&pid=8284&side=consumer×tamp=1553068324658, empty://192.168.3.30/cn.wizzer.api.water.modules.services.DeviceService?application=wk-nb-dubbo-dev&category=routers&default.retries=0&default.timeout=60000&dubbo=2.6.2&interface=cn.wizzer.api.water.modules.services.DeviceService&methods=regDeviceBatch,delDevice,updateDevice,regDevice,deviceHistoryData,listDevTypes,listDevices,queryDevType,queryDeviceAllInfo&pid=8284&side=consumer×tamp=1553068324658], dubbo version: 2.6.2, current host: 192.168.3.30
[DEBUG] 15:52:05.259 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object '4in9ougm72gokpqsojivd7loja' from [app]
[DEBUG] 15:52:05.260 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'devDeviceServiceImpl' from [app]
[DEBUG] 15:52:05.260 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'dubboAnnotationBean' from [app]
[DEBUG] 15:52:05.260 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'dubboManager' from [app]
[ERROR] 15:52:05.261 org.nutz.boot.NbApp.execute(NbApp.java:218) - something happen!!
org.nutz.ioc.IocException: IocBean[dubboManager -> dubboAnnotationBean -> devDeviceServiceImpl] 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$cff301be46c87e2fbea60f4ef344bacb.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$cff301be46c87e2fbea60f4ef344bacb.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.dev.commons.core.DubboRpcDevMainLauncher.main(DubboRpcDevMainLauncher.java:43)
Caused by: java.lang.RuntimeException: IocBean[devDeviceServiceImpl] fail at field=[deviceService]
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[4in9ougm72gokpqsojivd7loja] 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.api.water.modules.services.DeviceService. No provider available for the service cn.wizzer.api.water.modules.services.DeviceService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-dubbo-dev&default.retries=0&default.timeout=60000&dubbo=2.6.2&interface=cn.wizzer.api.water.modules.services.DeviceService&methods=regDeviceBatch,delDevice,updateDevice,regDevice,deviceHistoryData,listDevTypes,listDevices,queryDevType,queryDeviceAllInfo&pid=8284®ister.ip=192.168.3.30&side=consumer×tamp=1553068324658 to the consumer 192.168.3.30 use dubbo version 2.6.2
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.api.water.modules.services.DeviceService. No provider available for the service cn.wizzer.api.water.modules.services.DeviceService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=wk-nb-dubbo-dev&default.retries=0&default.timeout=60000&dubbo=2.6.2&interface=cn.wizzer.api.water.modules.services.DeviceService&methods=regDeviceBatch,delDevice,updateDevice,regDevice,deviceHistoryData,listDevTypes,listDevices,queryDevType,queryDeviceAllInfo&pid=8284®ister.ip=192.168.3.30&side=consumer×tamp=1553068324658 to the consumer 192.168.3.30 use dubbo version 2.6.2
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
[INFO ] 15:52:05.271 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:287) - org.nutz.ioc.impl.NutIoc@997695567 is closing. startup date [19-03-20 15:52:02.561]
[DEBUG] 15:52:05.271 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'dubboRegistryConfig' ...
[DEBUG] 15:52:05.271 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'dubboApplicationConfig' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'phvs3ej7f0hqfon22nsa5oiqti' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'txREAD_COMMITTED' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'mongoClient' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'zmongo' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'zmodb' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'devDeviceLogServiceImpl' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'sqlManager' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'dao' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'devDeviceInfoServiceImpl' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'dubbo_iobjs' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'druidWebStatServletStarter' ...
[DEBUG] 15:52:05.272 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:109) - Depose object 'druidWebStatFilterStarter' ...
13 回复
cn.wizzer.api.water.modules.services.DeviceService. No provider available for the service cn.wizzer.api.water.modules.services.DeviceServic
这个接口的实现类在哪个mavan module?看上去是当前的? 如果是的话,就不要走dubbo注解嘛
试过,还是这样,我是拿别人代码过来的,不知道他这种写法对不
@Inject
@Reference
private DevDeviceAlarmService devDeviceAlarmService;
@Inject
@Reference
private DevDeviceAbnormalService devDeviceAbnormalService;
@Inject
@Reference
private DevDeviceLogService devDeviceLogService;
@Inject
@Reference
private DevDmaDeviceDataService devDmaDeviceDataService;
添加回复
请先登陆