apache / apache/incubator-seata-samples

Run fescar-samples dubbo is failed

Open
#79 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Research direction

Start with the Dubbo sample entry point in DubboBusinessTester.java and the failing call in BusinessServiceImpl.java:49. Run the sample following the linked Quick-Start instructions, then inspect whether StorageService providers start and register with 224.5.6.7:1234. Done means the deduct call finds a provider and the sample runs without the reported RpcException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.