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/22 20:50:30 UTC

[jira] Commented: (XMLRPC-83) Problems with Date

    [ http://issues.apache.org/jira/browse/XMLRPC-83?page=comments#action_12412814 ] 

Jochen Wiedmann commented on XMLRPC-83:
---------------------------------------

The stack trace references line 31 of DateSerializer.java.

Looking into the current code, I can definitely tell you that you are not using the latest version of the code. As we have changed a lot in that area recently, please be so kind and update your library. You can do so by downloading

    http://people.apache.org/dist/ws/xmlrpc/nightly/xmlrpc-3.0b1-SNAPSHOT-bin.tar.gz


> 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: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org