You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by "Jochen Wiedmann (JIRA)" <xm...@ws.apache.org> on 2006/05/24 22:39:30 UTC
[jira] Updated: (XMLRPC-83) Problems with Date
[ http://issues.apache.org/jira/browse/XMLRPC-83?page=all ]
Jochen Wiedmann updated XMLRPC-83:
----------------------------------
Attachment: XMLRPC-83.tar.bz2
Attached you find a very small sample project with your server and client classes plus the latest version of xml-rpc and ws-commons-util. Due to a late change in xml-rpc, I had to change one minor point: Both client and server need to have enabledForExtensions=true when using Calendar objects. Besides, everything works like a charm.
> Problems with Date
> ------------------
>
> Key: XMLRPC-83
> URL: http://issues.apache.org/jira/browse/XMLRPC-83
> Project: XML-RPC
> Type: Bug
> Versions: 3.0a1
> Environment: xmlrpc-*-3.0b1-SNAPSHOT
> Reporter: Alexander Sydorenko
> Priority: Critical
> Attachments: XMLRPC-83.tar.bz2
>
> I'm getting this error:
> org.apache.xmlrpc.common.XmlRpcExtensionException: Serializable objects aren't supported, if isEnabledForExtensions() == false
> at org.apache.xmlrpc.common.TypeFactoryImpl.getSerializer(TypeFactoryImpl.java:155)
> when trying to return Calendar and this error:
> java.lang.ClassCastException: java.util.Date
> at org.apache.ws.commons.util.XsDateTimeFormat.format(XsDateTimeFormat.java:238)
> at java.text.Format.format(Format.java:133)
> at org.apache.xmlrpc.serializer.DateSerializer.write(DateSerializer.java:31)
> at org.apache.xmlrpc.serializer.XmlRpcWriter.writeValue(XmlRpcWriter.java:144)
> at org.apache.xmlrpc.serializer.XmlRpcWriter.write(XmlRpcWriter.java:99)
> at org.apache.xmlrpc.server.XmlRpcStreamServer.writeResponse(XmlRpcStreamServer.java:89)
> at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:221)
> at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:91)
> at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:99)
> for java.util.Date.
> org.apache.ws.commons.util.XsDateTimeFormat.format() works only with Calendar...
> and org.apache.xmlrpc.common.TypeFactoryImpl.getSerializer treats Calendar as Serializable...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org