crazyxman / dubbo-php-framework

Rewrite for apache/dubbo-php-framework
17 stars 11 forks source link

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

Open io3x opened 4 years ago

io3x commented 4 years ago

如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 commented 4 years ago

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

chenyu99413 commented 3 years ago

我用的是测试用例,也报这个错误,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 commented 1 year ago

我用的是测试用例,也报这个错误,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 commented 1 year ago

我用的是测试用例,也报这个错误,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 commented 1 year ago

我用的是测试用例,也报这个错误,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 commented 1 year ago

我用的是测试用例,也报这个错误,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 commented 1 year ago

我用的是测试用例,也报这个错误,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 原版了

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