zaghost opened a new issue, #10782: URL: https://github.com/apache/dubbo/issues/10782
- [Y ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 3.1.1 * Operating System version: Windows 10 * Java version: 1.8 ### Steps to reproduce this issue 1. Run a Dubbo provider with port 20880 2. Run another Dubbo provider with port 20880 3. The second one faild to start ### Expected Behavior Show "Address already in use: bind" or similar message in log ### Actual Behavior Show "java.lang.NullPointerException: null" in log If there is an exception, please attach the exception trace: ``` java.lang.NullPointerException: null at org.apache.dubbo.remoting.transport.netty4.NettyPortUnificationServer.getLocalAddress(NettyPortUnificationServer.java:221) at org.apache.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:75) at org.apache.dubbo.remoting.api.pu.AbstractPortUnificationServer.<init>(AbstractPortUnificationServer.java:46) at org.apache.dubbo.remoting.transport.netty4.NettyPortUnificationServer.<init>(NettyPortUnificationServer.java:82) at org.apache.dubbo.remoting.transport.netty4.NettyPortUnificationTransporter.bind(NettyPortUnificationTransporter.java:32) at org.apache.dubbo.remoting.api.pu.PortUnificationTransporter$Adaptive.bind(PortUnificationTransporter$Adaptive.java) at org.apache.dubbo.remoting.exchange.PortUnificationExchanger.lambda$bind$0(PortUnificationExchanger.java:41) at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ```  -- 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]
