哪位大神指导下,这个错到底是怎么回事?

我的dubbo服务已经启了,zookeeper地址也对,dubbo-consunmer也配置了,求大神分析下还有哪方面原因

2016-08-01 14:18:40,633 ERROR [http-bio-8080-exec-9] integration.RegistryDirectory (RegistryDirectory.java:398) -  [DUBBO] Failed to refer invoker for interface:interface com.ai.baas.amc.api.deposit.interfaces.IDepositSV,url:(rest://10.1.130.84:10883/com.ai.baas.amc.api.deposit.interfaces.IDepositSV?anyhost=true&application=citic-billing-web&check=false&default.retries=0&default.timeout=1200000&dubbo=2.8.3&generic=false&interface=com.ai.baas.amc.api.deposit.interfaces.IDepositSV&methods=depositFund&pid=6680&revision=1.0-SNAPSHOT&side=consumer&timestamp=1470032318569)You must use at least one, but no more than one http method annotation on: public abstract com.ai.baas.amc.api.deposit.param.DepositResponse com.ai.baas.amc.api.deposit.interfaces.IDepositSV.depositFund(com.ai.baas.amc.api.deposit.param.DepositRequest) throws com.ai.opt.base.exception.BusinessException,com.ai.opt.base.exception.SystemException, dubbo version: 2.8.3, current host: 10.1.64.190
java.lang.RuntimeException: You must use at least one, but no more than one http method annotation on: public abstract com.ai.baas.amc.api.deposit.param.DepositResponse com.ai.baas.amc.api.deposit.interfaces.IDepositSV.depositFund(com.ai.baas.amc.api.deposit.param.DepositRequest) throws com.ai.opt.base.exception.BusinessException,com.ai.opt.base.exception.SystemException
    at org.jboss.resteasy.client.jaxrs.ProxyBuilder.createClientInvoker(ProxyBuilder.java:76) ~[resteasy-client-3.0.11.Final.jar:?]
    at org.jboss.resteasy.client.jaxrs.ProxyBuilder.proxy(ProxyBuilder.java:52) ~[resteasy-client-3.0.11.Final.jar:?]
    at org.jboss.resteasy.client.jaxrs.ProxyBuilder.build(ProxyBuilder.java:120) ~[resteasy-client-3.0.11.Final.jar:?]
    at org.jboss.resteasy.client.jaxrs.internal.ClientWebTarget.proxy(ClientWebTarget.java:72) ~[resteasy-client-3.0.11.Final.jar:?]
    at com.alibaba.dubbo.rpc.protocol.rest.RestProtocol.doRefer(RestProtocol.java:161) ~[dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.rpc.protocol.AbstractProxyProtocol.refer(AbstractProxyProtocol.java:88) ~[dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:62) ~[dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:65) ~[dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.rpc.Protocol$Adpative.refer(Protocol$Adpative.java) ~[dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:395) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:224) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:195) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:449) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:170) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:189) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:133) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:271) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:254) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:60) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:63) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.rpc.Protocol$Adpative.refer(Protocol$Adpative.java) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:392) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138) [dubbox-2.8.3.1.jar:2.8.3]
    at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65) [dubbox-2.8.3.1.jar:2.8.3]
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1523) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:217) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:350) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:331) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:968) [spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at com.ai.opt.sdk.dubbo.util.DubboConsumerFactory.getServiceId(DubboConsumerFactory.java:79) [opt-sdk-2.1-SNAPSHOT.jar:?]
    at com.ai.opt.sdk.dubbo.util.DubboConsumerFactory.getService(DubboConsumerFactory.java:46) [opt-sdk-2.1-SNAPSHOT.jar:?]
    at com.ai.citic.billing.web.controller.deposit.DepositController.toDeposit(DepositController.java:90) [DepositController.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_51]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_51]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_51]
    2016-08-01 14:18:40,717 ERROR [http-bio-8080-exec-9] integration.RegistryDirectory (RegistryDirectory.java:229) - urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[rest://10.1.130.84:10883/com.ai.baas.amc.api.deposit.interfaces.IDepositSV?anyhost=true&application=baas-amc&default.retries=0&default.threads=300&default.timeout=200000&dubbo=2.8.3&generic=false&interface=com.ai.baas.amc.api.deposit.interfaces.IDepositSV&methods=depositFund&pid=26073&revision=1.0-SNAPSHOT&side=provider&timestamp=1470019657025]
java.lang.IllegalStateException: urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[rest://10.1.130.84:10883/com.ai.baas.amc.api.deposit.interfaces.IDepositSV?anyhost=true&application=baas-amc&default.retries=0&default.threads=300&default.timeout=200000&dubbo=2.8.3&generic=false&interface=com.ai.baas.amc.api.deposit.interfaces.IDepositSV&methods=depositFund&pid=26073&revision=1.0-SNAPSHOT&side=provider&timestamp=1470019657025]
ctory.refreshInvoker(RegistryDirectory.java:229) [dubbox-2.8.3.1.jar:2.8.3]
stryProtocol.doRefer(RegistryProtocol.java:271) [dubbox-2.8.3.1.jar:2.8.3]
八月 01, 2016 2:18:41 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [springmvc] in context with path [/citic-billing-web] threw exception [Request processing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IDepositSV': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ai.baas.amc.api.deposit.interfaces.IDepositSV. No provider available for the service com.ai.baas.amc.api.deposit.interfaces.IDepositSV from the url zookeeper://10.1.130.84:39181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=citic-billing-web&check=false&default.retries=0&default.timeout=1200000&dubbo=2.8.3&generic=false&interface=com.ai.baas.amc.api.deposit.interfaces.IDepositSV&methods=depositFund&pid=6680&revision=1.0-SNAPSHOT&side=consumer&timestamp=1470032318569 to the consumer 10.1.64.190 use dubbo version 2.8.3] with root cause
java.lang.IllegalStateException: Failed to check the status of the service com.ai.baas.amc.api.deposit.interfaces.IDepositSV. No provider available for the service com.ai.baas.amc.api.deposit.interfaces.IDepositSV from the url zookeeper://10.1.130.84:39181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=citic-billing-web&check=false&default.retries=0&default.timeout=1200000&dubbo=2.8.3&generic=false&interface=com.ai.baas.amc.api.deposit.interfaces.IDepositSV&methods=depositFund&pid=6680&revision=1.0-SNAPSHOT&side=consumer&timestamp=1470032318569 to the consumer 10.1.64.190 use dubbo version 2.8.3
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)




1个回答

Failed to refer invoker for interface:interface com.ai.baas.amc.api.deposit.interfaces.IDepositSV
看看是不是配置的问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问