[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webservices-general
Subject:    [jira] [Created] (XMLRPC-186) NullPointerException thrown for
From:       "Fredrik Wendt (JIRA)" <jira () apache ! org>
Date:       2011-04-29 15:13:03
Message-ID: 1182673803.11791.1304089983264.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]

NullPointerException thrown for illegal port numbers
----------------------------------------------------

                 Key: XMLRPC-186
                 URL: https://issues.apache.org/jira/browse/XMLRPC-186
             Project: XML-RPC
          Issue Type: Bug
          Components: Source
    Affects Versions: 3.1.3
            Reporter: Fredrik Wendt
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic