Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.1.3
-
None
-
None
Description
When you try to use an XmlRpcClient with an address containing an illegal port number (>65535), you get a NullPointerException. After debugging I see that the constructor call to java.net.InetSocketAddress throws a good exception: IllegalArgumentException("port out of range"), but this is silently ignored and null is returned from ReflectionSocketFactory.
I suggest adding:
if (cause instanceof IllegalArgumentException) {
throw (IllegalArgumentException) cause;
}
to give users of XmlRpcClient better error messages.