ws-xmlrpc-auto mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <>
Subject [jira] Closed: (XMLRPC-146) 'nan' is not recognized as Double causing exceptions
Date Tue, 04 Sep 2007 19:38:44 GMT


Jochen Wiedmann closed XMLRPC-146.

    Resolution: Won't Fix

The value "nan" is definitely a violation of the XML-RPC specification. In other words, this
cannot be supported by an XML-RPC compliant implementation out of the box.

Apart from that, as far as I know, you're the first one who requests that after quite some
years of XML-RPC. In other words, I doubt that the feature is sufficiently common to justify
inclusion into the core code. Therefore, I'd ask you to use a custom type factory, as described

The feature was specifically developed with topics like that in mind.

> 'nan' is not recognized as Double causing exceptions
> ----------------------------------------------------
>                 Key: XMLRPC-146
>                 URL:
>             Project: XML-RPC
>          Issue Type: Bug
>    Affects Versions: 3.0, 3.1
>         Environment: Sun Java 6, Linux
>            Reporter: Timofei B. Bolshakov
>            Priority: Critical
> I got an XML-RPC remote server (EPICS archiver) written in C++. I have no way to change
code / version etc on this server. This server returns timestamped doubles by the request
of my Apache XML-RPC clients. It returns Not a Number (NaN) as string 'nan'. That causes an
parsing  exception in Apache XML-RPC library:
> org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Failed
to parse double value: nan
> 	org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
> 	org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(
> 	org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(
> 	org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
> 	org.apache.xmlrpc.client.XmlRpcClientWorker.execute(
> 	org.apache.xmlrpc.client.XmlRpcClient.execute(
> 	org.apache.xmlrpc.client.XmlRpcClient.execute(
> 	org.apache.xmlrpc.client.XmlRpcClient.execute(
> 	gov.fnal.controls.webapps.epics_archiver.EpicsArchiver$
> 	gov.fnal.controls.webapps.epics_archiver.EpicsArchiver$
> 	java.util.concurrent.FutureTask$Sync.innerRun(
> 	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> 	java.util.concurrent.ThreadPoolExecutor$

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message