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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]