You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "hudepin (GitHub)" <gi...@apache.org> on 2018/12/19 07:17:13 UTC

[GitHub] [incubator-dubbo-spring-boot-project] hudepin opened issue #335: dubbo-spring-boot-sample-consumer 配置问题

DemoConsumerController 的@Reference(
            version = "${demo.service.version}",
            url = "dubbo://localhost:12345")  demo.service.version 给了0.0.0 然后在http://localhost:8080/sayHello?name=HelloWorld 的时候会找不到服务

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #335: dubbo-spring-boot-sample-consumer 配置问题

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
@hudepin Yes, I forgot, you could pull  a request for this project :D

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #335: dubbo-spring-boot-sample-consumer 配置问题

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
What's the error message? My side work.

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #335: dubbo-spring-boot-sample-consumer 配置问题

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
@hudepin However, this property is not required.

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] hudepin commented on issue #335: dubbo-spring-boot-sample-consumer 配置问题

Posted by "hudepin (GitHub)" <gi...@apache.org>.
1、java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet,Servlet dependency scope need set rumtime
2、when set Servlet api runtime ,cousumer and provider can start up sucess ,when I access test url :http://localhost:8080/sayHello?name=HelloWorld, then ocur some exception,
consumer exception log:
com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.alibaba.boot.dubbo.demo.consumer.DemoService:12345 in [com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.168.56.1:4358 --> provider: /192.168.56.1:12345, message:RpcInvocation [methodName=sayHello, parameterTypes=[class java.lang.String], arguments=[HelloWorld], attachments={path=com.alibaba.boot.dubbo.demo.consumer.DemoService, input=248, dubbo=2.0.2, interface=com.alibaba.boot.dubbo.demo.consumer.DemoService, version=0.0.0}]
	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:213)
provider exception log:
com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.alibaba.boot.dubbo.demo.consumer.DemoService:12345 in [com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.168.56.1:4358 --> provider: /192.168.56.1:12345, message:RpcInvocation [methodName=sayHello, parameterTypes=[class java.lang.String], arguments=null, attachments={path=com.alibaba.boot.dubbo.demo.consumer.DemoService, dubbo=2.0.2, interface=com.alibaba.boot.dubbo.demo.consumer.DemoService, version=0.0.0}]
	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:213) ~[dubbo-2.6.5.jar:2.6.5]

3,I doubt some code forget to commit to respository ? and My IDE is Ideal ,thx

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #335: dubbo-spring-boot-sample-consumer 配置问题

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
@hudepin fixed, please see https://github.com/apache/incubator-dubbo-spring-boot-project/pull/337

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] hudepin commented on issue #335: dubbo-spring-boot-sample-consumer 配置问题

Posted by "hudepin (GitHub)" <gi...@apache.org>.
![image](https://user-images.githubusercontent.com/4598520/50265483-d514f900-045a-11e9-9524-03c154e57bc6.png)
I view git commit log and found demo.service.version = 1.0.0 forget copy to application.yml?


[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz closed issue #335: dubbo-spring-boot-sample-consumer 配置问题

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org