ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Douglas <mobilechee...@yahoo.com>
Subject org.xml.sax.SAXParseException: Failed to parse integer value:
Date Tue, 22 Aug 2006 13:04:36 GMT
Hello,
   
  I am developing a client for an XML-RPC server.
   
  In one display operation, I receive a 'structure' which has two date/time fields:
   
  <member>
   <name>Date1</name> 
   <value><dateTime.iso8601></dateTime.iso8601></value>
  </member> 
  <member>
   <name>Date2</name>
   <value><dateTime.iso8601></dateTime.iso8601></value> 
  </member>
   
  Now the problem is that they are empty and I get the error message mentioned below. 
   
  1.Can anybody suggest how I can avoid these errors even though the date/time fields are
empty?
   
  2. If the received date/time value is 2006-08-17 14:15:34 instead of 20060817T14:15:34,
then I also get the same error message with the date/time values appended to it: "Failed to
parse integer value: 2006-08-17 14:15:34". Is it possible for Apache XML-RPC to parse the
date in the above non-standard format?
   
   
  Failed to parse servers response: Failed to parse integer value: 
org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Failed to
parse integer value: 
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:174)
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:149)
        at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:95)
        at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
        at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
  ....
  
Caused by:
org.xml.sax.SAXParseException: Failed to parse integer value: 
        at org.apache.xmlrpc.parser.DateParser.setResult(DateParser.java:40)
        at org.apache.xmlrpc.parser.AtomicParser.endElement(AtomicParser.java:56)
        at org.apache.xmlrpc.parser.RecursiveTypeParserImpl.endElement(RecursiveTypeParserImpl.java:96)
        at org.apache.xmlrpc.parser.MapParser.endElement(MapParser.java:158)
        at org.apache.xmlrpc.parser.RecursiveTypeParserImpl.endElement(RecursiveTypeParserImpl.java:96)
        at org.apache.xmlrpc.parser.XmlRpcResponseParser.endElement(XmlRpcResponseParser.java:186)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:172)
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:149)
        at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:95)
        at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
        at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
...
   
   
  Thanks!
   
   

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message