neesonqk commented on issue #93: Is it incompatible with Spring Boot 2.0?
URL: 
https://github.com/apache/incubator-dubbo-spring-boot-project/issues/93#issuecomment-379713035
 
 
   @suclogger I know it's quite annoying, but do you have any idea that once 
any changes applied to the working simple, it stops to work anymore. 
   
   I'm able to run your official simples (provider vs consumer) like a charm, 
however, I'd like to tweak that simple to work with my own scenario, the thing 
is, no matter how do I follow the exact simple, it never work even just the 
class name changes, I'm frustrated.
   
   This is the exception:
   
   ```
   com.alibaba.dubbo.remoting.RemotingException: Not found exported service: 
com.ont.palm.rpc.EchoService:1.0.0:12345 in 
[com.ont.messager.rpc.EchoService:1.0.0:12345], may be version or group 
mismatch , channel: consumer: /20.20.20.20:56722 --> provider: 
/20.20.20.20:12345, message:RpcInvocation [methodName=greet, parameterTypes=[], 
arguments=[], attachments={path=com.ont.palm.rpc.EchoService, input=153, 
dubbo=2.0.1, interface=com.ont.palm.rpc.EchoService, version=1.0.0}]
        at 
com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:202)
        at 
com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:73)
        at 
com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96)
        at 
com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:168)
        at 
com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:50)
        at 
com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:79)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   ] with root cause
   ```
   
   My provider and its interface:
   
   
![image](https://user-images.githubusercontent.com/7279067/38493997-ced8eb52-3c26-11e8-8b45-a1927a9c3743.png)
   
   
![image](https://user-images.githubusercontent.com/7279067/38494006-d9b09584-3c26-11e8-8cb3-a216eee9b454.png)
   
   Configuration:
   
   ```
   # Spring boot application
   spring.application.name = messager-provider-app
   server.port = 9090
   
   # DemoService service version
   messager.service.version = 1.0.0
   
   # Base packages to scan Dubbo Components (e.g @Service , @Reference)
   dubbo.scan.basePackages  = com.ont.messager.rpc
   
   # Dubbo Config properties
   ## ApplicationConfig Bean
   dubbo.application.id = messager-provider
   dubbo.application.name = messager-provider
   #dubbo.application.qos.port=22222
   #dubbo.application.qos.enable=true
   
   ## ProtocolConfig Bean
   dubbo.protocol.id = dubbo
   dubbo.protocol.name = dubbo
   dubbo.protocol.port = 12345
   dubbo.protocol.status = server
   
   ## RegistryConfig Bean
   dubbo.registry.id = my-registry
   dubbo.registry.address = N/A
   ```
   
   My consumer:
   
   
![image](https://user-images.githubusercontent.com/7279067/38494034-fa3ba7a8-3c26-11e8-953f-b1f9781e802c.png)
   
   ```
   # Spring boot application
   spring.application.name = dubbo-consumer-demo
   server.port = 8080
   management.server.port = 8081
   
   # DemoService service version
   messager.service.version = 1.0.0
   
   # Dubbo Config properties
   ## ApplicationConfig Bean
   dubbo.application.id = dubbo-consumer-demo
   dubbo.application.name = dubbo-consumer-demo
   
   ## Legacy QOS Config
   dubbo.qos.port = 22223
   
   ## ProtocolConfig Bean
   dubbo.protocol.id = dubbo
   dubbo.protocol.name = dubbo
   dubbo.protocol.port = 12345
   
   # Dubbo Endpoint (default status is disable)
   endpoints.dubbo.enabled = true
   ```
   
   Any idea? Thanks a lot.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to