Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

原版的dubbo-php-framework可以自动获取zookeeper dubbo节点里面的注册服务直接调用,当前改良版如何自动获取? #3

Open
io3x opened this issue Oct 12, 2020 · 7 comments

Comments

@io3x
Copy link

io3x commented Oct 12, 2020

如com.fenqile.example.DemoService
报错
Fatal error: Uncaught Dubbo\Common\DubboException: Unable to find 'com.fenqile.example.DemoService' service in configuration file in /home/www/dubbo-php-framework-crazyxman/src/rpc/Consumer/DubboConsumer.php:54

@crazyxman
Copy link
Owner

crazyxman commented Oct 13, 2020

com.fenqile.example.DemoService 这个服务没有在配置文件 ConsumerConfig.yaml 中定义

@chenyu99413
Copy link

我用的是测试用例,也报这个错误,ConsumerConfig.yaml没有改动过,这个是说我那个服务没注册成功吗
PHP Fatal error: Uncaught Dubbo\Common\DubboException: No 'php.dubbo.demo.DemoService' provider found in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php:68
Stack trace:
#0 /www/dubbo-php-framework-master3/dubbo-php-framework-master/demo/Consumer.php(27): Dubbo\Consumer\DubboConsumer->loadService('php.dubbo.demo....')
#1 {main}
thrown in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php on line 68

@andy521
Copy link

andy521 commented Sep 7, 2023

我用的是测试用例,也报这个错误,ConsumerConfig.yaml没有改动过,这个是说我那个服务没注册成功吗 PHP Fatal error: Uncaught Dubbo\Common\DubboException: No 'php.dubbo.demo.DemoService' provider found in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php:68 Stack trace: #0 /www/dubbo-php-framework-master3/dubbo-php-framework-master/demo/Consumer.php(27): Dubbo\Consumer\DubboConsumer->loadService('php.dubbo.demo....') #1 {main} thrown in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php on line 68

这个最后解决了吗?

@wufengzhicheng
Copy link

我用的是测试用例,也报这个错误,ConsumerConfig.yaml没有改动过,这个是说我那个服务没注册成功吗 PHP Fatal error: Uncaught Dubbo\Common\DubboException: No 'php.dubbo.demo.DemoService' provider found in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php:68 Stack trace: #0 /www/dubbo-php-framework-master3/dubbo-php-framework-master/demo/Consumer.php(27): Dubbo\Consumer\DubboConsumer->loadService('php.dubbo.demo....') #1 {main} thrown in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php on line 68

这个最后解决了吗?

解决了

@andy521
Copy link

andy521 commented Sep 7, 2023

我用的是测试用例,也报这个错误,ConsumerConfig.yaml没有改动过,这个是说我那个服务没注册成功吗 PHP Fatal error: Uncaught Dubbo\Common\DubboException: No 'php.dubbo.demo.DemoService' provider found in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php:68 Stack trace: #0 /www/dubbo-php-framework-master3/dubbo-php-framework-master/demo/Consumer.php(27): Dubbo\Consumer\DubboConsumer->loadService('php.dubbo.demo....') #1 {main} thrown in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php on line 68

这个最后解决了吗?

解决了

您好,大概是怎么解决的呢?是配置问题?可以php 调通java 提供的provider吗?

@wufengzhicheng
Copy link

我用的是测试用例,也报这个错误,ConsumerConfig.yaml没有改动过,这个是说我那个服务没注册成功吗 PHP Fatal error: Uncaught Dubbo\Common\DubboException: No 'php.dubbo.demo.DemoService' provider found in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php:68 Stack trace: #0 /www/dubbo-php-framework-master3/dubbo-php-framework-master/demo/Consumer.php(27): Dubbo\Consumer\DubboConsumer->loadService('php.dubbo.demo....') #1 {main} thrown in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php on line 68

这个最后解决了吗?

解决了

您好,大概是怎么解决的呢?是配置问题?可以php 调通java 提供的provider吗?

后面改用 https://github.com/dubbo/php-framework-for-apache-dubbo/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B 原版了

@andy521
Copy link

andy521 commented Sep 11, 2023

我用的是测试用例,也报这个错误,ConsumerConfig.yaml没有改动过,这个是说我那个服务没注册成功吗 PHP Fatal error: Uncaught Dubbo\Common\DubboException: No 'php.dubbo.demo.DemoService' provider found in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php:68 Stack trace: #0 /www/dubbo-php-framework-master3/dubbo-php-framework-master/demo/Consumer.php(27): Dubbo\Consumer\DubboConsumer->loadService('php.dubbo.demo....') #1 {main} thrown in /www/dubbo-php-framework-master3/dubbo-php-framework-master/src/rpc/Consumer/DubboConsumer.php on line 68

这个最后解决了吗?

解决了

您好,大概是怎么解决的呢?是配置问题?可以php 调通java 提供的provider吗?

后面改用 https://github.com/dubbo/php-framework-for-apache-dubbo/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B 原版了

用原版的话,需要对已有代码改动哪些地方?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants