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

when using simpleregistry, provider throwed a exception #1497

Closed
wants to merge 1 commit into from

Conversation

0oo
Copy link

@0oo 0oo commented Mar 21, 2018

reason: when the provider receive the extra info(as the property "bind.port" of the URL object) , which sent by the "notify" method of simpleregistry , triggered the exception
here's the exception information ,

[21/03/18 06:07:16:016 CST] New I/O client worker #1-1 INFO dubbo.CallbackServiceCodec: [DUBBO] Not found exported service: com.alibaba.dubbo.registry.NotifyListener.617013740:61709 in [com.alibaba.dubbo.registry.NotifyListener.1141296884:61709, com.alibaba.dubbo.registry.NotifyListener.617013740:9090, com.alibaba.dubbo.demo.DemoService:20880], may be version or group mismatch , channel: consumer: /192.168.84.31:9090 --> provider: /192.168.84.31:61709, message:RpcInvocation [methodName=notify, parameterTypes=[interface java.util.List], arguments=null, attachments={dubbo=2.0.1, input=721, _isCallBackServiceInvoke=true, sys_callback_arg-1=617013740, path=com.alibaba.dubbo.registry.NotifyListener, callback.service.instid=617013740, interface=com.alibaba.dubbo.registry.RegistryService, version=null}], dubbo version: 2.0.1, current host: 192.168.84.31
com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.alibaba.dubbo.registry.NotifyListener.617013740:61709 in [com.alibaba.dubbo.registry.NotifyListener.1141296884:61709, com.alibaba.dubbo.registry.NotifyListener.617013740:9090, com.alibaba.dubbo.demo.DemoService:20880], may be version or group mismatch , channel: consumer: /192.168.84.31:9090 --> provider: /192.168.84.31:61709, message:RpcInvocation [methodName=notify, parameterTypes=[interface java.util.List], arguments=null, attachments={dubbo=2.0.1, input=721, _isCallBackServiceInvoke=true, sys_callback_arg-1=617013740, path=com.alibaba.dubbo.registry.NotifyListener, callback.service.instid=617013740, interface=com.alibaba.dubbo.registry.RegistryService, version=null}]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:202)
at com.alibaba.dubbo.rpc.protocol.dubbo.CallbackServiceCodec.decodeInvocationArgument(CallbackServiceCodec.java:270)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:127)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:68)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:128)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:120)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:81)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:44)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

@CLAassistant
Copy link

CLAassistant commented Mar 21, 2018

CLA assistant check
All committers have signed the CLA.

@codecov-io
Copy link

Codecov Report

Merging #1497 into 2.5.x will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##            2.5.x    #1497      +/-   ##
==========================================
- Coverage   28.34%   28.34%   -0.01%     
==========================================
  Files         791      791              
  Lines       41735    41735              
  Branches     8529     8529              
==========================================
- Hits        11830    11829       -1     
- Misses      27829    27831       +2     
+ Partials     2076     2075       -1
Impacted Files Coverage Δ
...a/dubbo/registry/simple/SimpleRegistryService.java 4.2% <0%> (ø) ⬆️
...aba/dubbo/monitor/simple/SimpleMonitorService.java 48.08% <0%> (-3.83%) ⬇️
.../com/alibaba/dubbo/monitor/dubbo/DubboMonitor.java 73.14% <0%> (-2.78%) ⬇️
.../dubbo/rpc/protocol/dubbo/filter/FutureFilter.java 54.54% <0%> (-2.03%) ⬇️
...alibaba/dubbo/rpc/protocol/thrift/ThriftCodec.java 3.17% <0%> (-0.87%) ⬇️
...mmon/serialize/support/dubbo/GenericDataInput.java 60.23% <0%> (+1.93%) ⬆️
...mon/serialize/support/dubbo/GenericDataOutput.java 68.07% <0%> (+3.5%) ⬆️
...rpc/protocol/dubbo/telnet/ChangeTelnetHandler.java 90.9% <0%> (+4.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f34540...a243a07. Read the comment docs.

@0oo
Copy link
Author

0oo commented Mar 22, 2018

发现是 Fixes #1289, use bind_port as mapping key 108fe0f
引入的问题, bind_port可能导致其它问题。

@ralf0131
Copy link
Contributor

Hi, welcome!

Would you please update the title and description using English? Dubbo is a global community and we would like the PR to be reviewed by people all over the world.

@0oo 0oo changed the title 修复使用simpleregistry时provider注册异常 when using simpleregistry, provider throwed a exception Mar 30, 2018
@0oo
Copy link
Author

0oo commented Mar 30, 2018

I didn't notice that. it's done now.

@cvictory
Copy link
Contributor

cvictory commented Apr 10, 2018

The issue is fixed on #1289 .

The merge request can be closed.

@0oo
Copy link
Author

0oo commented Apr 12, 2018

#1289 cause the problem, not fixed

@0oo 0oo closed this May 14, 2018
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

Successfully merging this pull request may close these issues.

6 participants