List Info

Thread: Created: (XMLRPC-140) Date format 20070316T162808Z cannot be parsed




Created: (XMLRPC-140) Date format 20070316T162808Z cannot be parsed
country flaguser name
United States
2007-03-22 16:21:32
Date format 20070316T162808Z cannot be parsed
---------------------------------------------

                 Key: XMLRPC-140
                 URL: http
s://issues.apache.org/jira/browse/XMLRPC-140
             Project: XML-RPC
          Issue Type: Bug
         Environment: Mac OS 10.4
            Reporter: Robert Lacatena


Client handling of the date format 20070316T162808Z fails.

org.apache.xmlrpc.client.XmlRpcClientException: Failed to
parse servers response: Failed to parse integer value:
20070316T162808Z
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
XmlRpcStreamTransport.java:177)
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(X
mlRpcStreamTransport.java:145)
	at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(Xml
RpcHttpTransport.java:94)
	at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
XmlRpcSunHttpTransport.java:39)
	at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcCl
ientWorker.java:53)
	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:166)
	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:136)
	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:125)
	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:75)
	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:64)
	at
scsadmin.ScsAdminConsole.doTest(ScsAdminConsole.java:619)
	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:273)
	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:242)
	at
scsadmin.ScsAdminConsole.executeInteractive(ScsAdminConsole.
java:199)
	at
scsadmin.ScsAdminConsole.execute(ScsAdminConsole.java:172)
	at scsadmin.ScsAdminConsole.main(ScsAdminConsole.java:157)
Caused by:
org.xml.sax.SAXParseException: Failed to parse integer
value: 20070316T162808Z
	at
org.apache.xmlrpc.parser.DateParser.setResult(DateParser.jav
a:40)
	at
org.apache.xmlrpc.parser.AtomicParser.endElement(AtomicParse
r.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.ObjectArrayParser.endElement(Object
ArrayParser.java:72)
	at
org.apache.xmlrpc.parser.RecursiveTypeParserImpl.endElement(
RecursiveTypeParserImpl.java:96)
	at
org.apache.xmlrpc.parser.XmlRpcResponseParser.endElement(Xml
RpcResponseParser.java:186)
	at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unkno
wn Source)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndEleme
nt(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragme
ntContentDispatcher.dispatch(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo
cument(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unk
nown Source)
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
XmlRpcStreamTransport.java:175)
	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(X
mlRpcStreamTransport.java:145)
	at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(Xml
RpcHttpTransport.java:94)
	at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
XmlRpcSunHttpTransport.java:39)
	at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcCl
ientWorker.java:53)
	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:166)
	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:136)
	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:125)
	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:75)
	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:64)
	at
scsadmin.ScsAdminConsole.doTest(ScsAdminConsole.java:619)
	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:273)
	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:242)
	at
scsadmin.ScsAdminConsole.executeInteractive(ScsAdminConsole.
java:199)
	at
scsadmin.ScsAdminConsole.execute(ScsAdminConsole.java:172)
	at scsadmin.ScsAdminConsole.main(ScsAdminConsole.java:157)

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


Resolved: (XMLRPC-140) Date format 20070316T162808Z cannot be parsed
country flaguser name
United States
2007-03-22 23:58:32
     [ https://issues.apache.org/jira/browse/XMLRPC-140?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jochen Wiedmann resolved XMLRPC-140.
------------------------------------

    Resolution: Fixed

Your dateTime value is obviously not compliant with the
XML-RPC specification, which requires (for unknown reasons)
a different format than xs:dateTime. I admit that the error
message could be more informative and have changed that. In
the trunk, the error message would be now

    Failed to parse date value 20070316T162808Z at position
11

If you look at the specification, you'll notice that a colon
is missing at position 11.


You have the following options:

- Fix the invalid value at the sending side to comply with
the specification.
- Use the vendor extension ex:dateTime, rather than
dateTime, as proposed on

    http://ws.apac
he.org/xmlrpc/types.html

- Use a custom dateTime parser. See the CustomTypesTest in
the Apache XML-RPC sources for an example.


> Date format 20070316T162808Z cannot be parsed
> ---------------------------------------------
>
>                 Key: XMLRPC-140
>                 URL: http
s://issues.apache.org/jira/browse/XMLRPC-140
>             Project: XML-RPC
>          Issue Type: Bug
>         Environment: Mac OS 10.4
>            Reporter: Robert Lacatena
>
> Client handling of the date format 20070316T162808Z
fails.
> org.apache.xmlrpc.client.XmlRpcClientException: Failed
to parse servers response: Failed to parse integer value:
20070316T162808Z
> 	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
XmlRpcStreamTransport.java:177)
> 	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(X
mlRpcStreamTransport.java:145)
> 	at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(Xml
RpcHttpTransport.java:94)
> 	at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
XmlRpcSunHttpTransport.java:39)
> 	at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcCl
ientWorker.java:53)
> 	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:166)
> 	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:136)
> 	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:125)
> 	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:75)
> 	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:64)
> 	at
scsadmin.ScsAdminConsole.doTest(ScsAdminConsole.java:619)
> 	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:273)
> 	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:242)
> 	at
scsadmin.ScsAdminConsole.executeInteractive(ScsAdminConsole.
java:199)
> 	at
scsadmin.ScsAdminConsole.execute(ScsAdminConsole.java:172)
> 	at
scsadmin.ScsAdminConsole.main(ScsAdminConsole.java:157)
> Caused by:
> org.xml.sax.SAXParseException: Failed to parse integer
value: 20070316T162808Z
> 	at
org.apache.xmlrpc.parser.DateParser.setResult(DateParser.jav
a:40)
> 	at
org.apache.xmlrpc.parser.AtomicParser.endElement(AtomicParse
r.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.ObjectArrayParser.endElement(Object
ArrayParser.java:72)
> 	at
org.apache.xmlrpc.parser.RecursiveTypeParserImpl.endElement(
RecursiveTypeParserImpl.java:96)
> 	at
org.apache.xmlrpc.parser.XmlRpcResponseParser.endElement(Xml
RpcResponseParser.java:186)
> 	at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unkno
wn Source)
> 	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndEleme
nt(Unknown Source)
> 	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragme
ntContentDispatcher.dispatch(Unknown Source)
> 	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo
cument(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unk
nown Source)
> 	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
XmlRpcStreamTransport.java:175)
> 	at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(X
mlRpcStreamTransport.java:145)
> 	at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(Xml
RpcHttpTransport.java:94)
> 	at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
XmlRpcSunHttpTransport.java:39)
> 	at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcCl
ientWorker.java:53)
> 	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:166)
> 	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:136)
> 	at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.j
ava:125)
> 	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:75)
> 	at
scsadmin.ScsAbRemoteManager.issueCommand(ScsAbRemoteManager.
java:64)
> 	at
scsadmin.ScsAdminConsole.doTest(ScsAdminConsole.java:619)
> 	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:273)
> 	at
scsadmin.ScsAdminConsole.executeCommand(ScsAdminConsole.java
:242)
> 	at
scsadmin.ScsAdminConsole.executeInteractive(ScsAdminConsole.
java:199)
> 	at
scsadmin.ScsAdminConsole.execute(ScsAdminConsole.java:172)
> 	at
scsadmin.ScsAdminConsole.main(ScsAdminConsole.java:157)

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


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )