apache / incubator-seata-samples

Apache Seata(incubating) Samples for Java
https://seata.apache.org/
Apache License 2.0
2.26k stars 1.91k forks source link

Run fescar-samples dubbo is failed #79

Open phamtai97 opened 5 years ago

phamtai97 commented 5 years ago

I run fescar dubbo the same as https://github.com/seata/seata/wiki/Quick-Start. But failed.

Exception in thread "main" org.apache.dubbo.rpc.RpcException: Failed to invoke the method deduct in the service com.alibaba.fescar.samples.dubbo.service.StorageService. No provider available for the service com.alibaba.fescar.samples.dubbo.service.StorageService from registry 224.5.6.7:1234 on the consumer 172.17.0.1 using the dubbo version 2.7.0. Please check if the providers have been started and registered. at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:265) at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:57) at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:241) at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:57) at org.apache.dubbo.common.bytecode.proxy1.deduct(proxy1.java) at com.alibaba.fescar.samples.dubbo.service.impl.BusinessServiceImpl.purchase(BusinessServiceImpl.java:49) at com.alibaba.fescar.samples.dubbo.service.impl.BusinessServiceImpl$$FastClassBySpringCGLIB$$ec52ad64.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at com.alibaba.fescar.spring.annotation.GlobalTransactionalInterceptor$2.execute(GlobalTransactionalInterceptor.java:97) at com.alibaba.fescar.tm.api.TransactionalTemplate.execute(TransactionalTemplate.java:64) at com.alibaba.fescar.spring.annotation.GlobalTransactionalInterceptor.handleGlobalTransaction(GlobalTransactionalInterceptor.java:94) at com.alibaba.fescar.spring.annotation.GlobalTransactionalInterceptor.invoke(GlobalTransactionalInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.fescar.samples.dubbo.service.impl.BusinessServiceImpl$$EnhancerBySpringCGLIB$$54751535.purchase() at com.alibaba.fescar.samples.dubbo.starter.DubboBusinessTester.main(DubboBusinessTester.java:39)

slievrly commented 5 years ago

@phamtai97 https://github.com/fescar-group/fescar-workshop/blob/master/README.md

leizhiyuan commented 5 years ago

use zk or nacos

multi image

multicast will not work

lennon1994 commented 5 years ago

No provider available for the service com.alibaba.fescar.samples.integration.common.dubbo.AccountDubboService:1.0.0 from the url nacos://127.0.0.1:8848