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

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


     [ https://issues.apache.org/jira/browse/XMLRPC-186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Fredrik Wendt updated XMLRPC-186:
---------------------------------

    Attachment:     (was: ControllerThreadSocketFactoryTest.java)

> 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
> Attachments: ControllerThreadSocketFactoryTest.java, XMLRPCClientTest.java
> 
> 
> 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