fantow opened a new issue #2172:
URL: https://github.com/apache/rocketmq/issues/2172


   BUG REPORT
   
   Please describe the issue you observed:
   What did you do (The steps to reproduce)?
   When I set the writeList with a wrong remoteAddress,rocketMQ throws 
ArrayIndexOutOfBoundsException without any hint about this Exception
   
   What did you expect to see?
   At least show me something message about this exception.
   
   What did you see instead?
   only ArrayIndexOutOfBoundsException
   
   Please tell us about your environment:
   JDK1.8
   RocketMQ 4.7.1
   
   Other information (e.g. detailed explanation, logs, related issues, 
suggestions how to fix, etc):
   when I set remotingAddress like this:{192.168.1} (obviously,it is my 
mistake).
   I check out the code about this.i find the code is not graceful.
   
   
![rocketMQError2](https://user-images.githubusercontent.com/18530950/87914009-97e37380-caa2-11ea-81f4-ee1cd3ebc8ce.png)
   
   you can find this code in 
**org.apache.rocketmq.acl.plain.RemoteAddressStrategyFactory.getRemoteAddressStrategy(String
 remoteAddr)**
   
   May I submit a PR to fix it?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to