Qyt-Coding opened a new issue, #10118:
URL: https://github.com/apache/dubbo/issues/10118

   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### 环境
   
   * Dubbo version: 3.0.4
   * Operating System version: window10
   * Java version: 1.8
   * 项目有两个工程,两个工程相互调用(既是生产者也是消费者)
   * 项目没有注册中心
   ### 启动错误过程
   
   1.启动其中一个工程
   2.  @DubboReference(check = false,url = 
"dubbo://127.0.0.1:20880")在引用的时候已经设置了check=false了,理论上就不会启动检查了
   3. 启动的时候,检查提供者启动,导致项目启动不了
   ```java
   Caused by: org.apache.dubbo.rpc.RpcException: Failed to invoke the method 
sayHello in the service com.yjs.test.AService. Tried 3 times of the providers 
[127.0.0.1:20880] (1/1) from the registry 127.0.0.1:20880 on the consumer 
192.168.8.1 using the dubbo version 3.0.4. Last error is: Failed to invoke 
remote method: sayHello, provider: 
dubbo://127.0.0.1:20880/com.yjs.test.AService?application=dubbo-provider&background=false&check=false&interface=com.yjs.test.AService&pid=15824&qos.enable=false&register.ip=192.168.8.1&side=consumer&sticky=false,
 cause: client(url: 
dubbo://127.0.0.1:20880/com.yjs.test.AService?application=dubbo-provider&background=false&check=false&codec=dubbo&heartbeat=60000&interface=com.yjs.test.AService&pid=15824&qos.enable=false&register.ip=192.168.8.1&side=consumer&sticky=false)
 failed to connect to server /127.0.0.1:20880, error message is:Connection 
refused: no further information: /192.168.8.1:20880
        at 
org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:110)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:268)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89) 
~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:51)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.filter.support.ConsumerContextFilter.invoke(ConsumerContextFilter.java:108)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$ClusterFilterInvoker.invoke(AbstractCluster.java:92)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:94)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:92)
 ~[dubbo-3.0.4.jar:3.0.4]
        at org.apache.dubbo.common.bytecode.proxy0.sayHello(proxy0.java) 
~[classes/:3.0.4]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_212-3-redhat]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_212-3-redhat]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_212-3-redhat]
        at java.lang.reflect.Method.invoke(Method.java:498) 
~[na:1.8.0_212-3-redhat]
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
 ~[spring-aop-5.3.18.jar:5.3.18]
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
 ~[spring-aop-5.3.18.jar:5.3.18]
        at com.sun.proxy.$Proxy64.sayHello(Unknown Source) ~[na:na]
        at com.yjs.test.controller.BController.selectA(BController.java:22) 
~[classes/:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_212-3-redhat]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_212-3-redhat]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_212-3-redhat]
        at java.lang.reflect.Method.invoke(Method.java:498) 
~[na:1.8.0_212-3-redhat]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:724)
 ~[spring-beans-5.3.18.jar:5.3.18]
        at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
 ~[spring-beans-5.3.18.jar:5.3.18]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
 ~[spring-beans-5.3.18.jar:5.3.18]
        ... 17 common frames omitted
   Caused by: org.apache.dubbo.remoting.RemotingException: client(url: 
dubbo://127.0.0.1:20880/com.yjs.test.AService?application=dubbo-provider&background=false&check=false&codec=dubbo&heartbeat=60000&interface=com.yjs.test.AService&pid=15824&qos.enable=false&register.ip=192.168.8.1&side=consumer&sticky=false)
 failed to connect to server /127.0.0.1:20880, error message is:Connection 
refused: no further information: /192.168.8.1:20880
        at 
org.apache.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:183)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:202)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.remoting.transport.AbstractClient.send(AbstractClient.java:178)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.remoting.transport.AbstractPeer.send(AbstractPeer.java:53) 
~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeChannel.request(HeaderExchangeChannel.java:135)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeClient.request(HeaderExchangeClient.java:100)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.protocol.dubbo.ReferenceCountExchangeClient.request(ReferenceCountExchangeClient.java:95)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:111)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.protocol.AbstractInvoker.doInvokeAndReturn(AbstractInvoker.java:215)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:176) 
~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invokeWithContext(AbstractClusterInvoker.java:300)
 ~[dubbo-3.0.4.jar:3.0.4]
        at 
org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:79)
 ~[dubbo-3.0.4.jar:3.0.4]
        ... 43 common frames omitted
   Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: 
Connection refused: no further information: /192.168.8.1:20880
   Caused by: java.net.ConnectException: Connection refused: no further 
information
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) 
~[na:1.8.0_212-3-redhat]
        at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) 
~[na:1.8.0_212-3-redhat]
        at 
io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
 ~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
        at 
io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
 ~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:710) 
~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
 ~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584) 
~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) 
~[netty-transport-4.1.75.Final.jar:4.1.75.Final]
        at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
 ~[netty-common-4.1.75.Final.jar:4.1.75.Final]
        at 
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) 
~[netty-common-4.1.75.Final.jar:4.1.75.Final]
        at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 ~[netty-common-4.1.75.Final.jar:4.1.75.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_212-3-redhat]
   
   ```
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### 预期结果
   
   <!-- What do you expect from the above steps?-->
   能正常启动,并且不检查提供者是否启动
   
   
   ```
   Just put your stack trace here!
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to