I meant that the timestamp might have come back originally as a string and not as a Date object.  Getting it working is all that matters for now J

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Ewok
Sent: Thursday, June 16, 2005 5:50 AM
To: [email protected]
Subject: [flexcoders] Re: Serialization error with Timestamp

 

Thanks for your response Matt.

That Date field (in my AS class) is never getting modified. I am
simply passing the Pojo from my datagrid (with the 1 String field I
did modify) so I don't know why the Date would get converted as a
String?? For now I guess I'll change my updateIt() method to take 2
params, the unique Id and the field I'm updating.



--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]>
wrote:
> It might be that it wasn't an AS Date but actually was a String
that got
> sent across?  Also if the cast to Pojo is failing maybe it didn't
> actually create the proper ActionScript class when it came back?
>

>
> Matt
>

>
> ________________________________
>
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin Ewok
> Sent: Wednesday, June 15, 2005 3:03 PM
> To: [email protected]
> Subject: [flexcoders] Serialization error with Timestamp
>

>
> List,
> I saw in a previous posting that a Date field in a registered AS
> class cannot cannot be serialized to a java.sql.Timestamp field to
> its' registered Java pojo. I have a datagrid where i make a cell
> edit, and I pass that object to my remoteObject like so:
>
> // method code called from cellEdit attribute of datagrid
> var selected:Pojo = datagrid.dataProvider.getItemAt
(event.itemIndex);
> remoteObj.updateIt(selected);
>            
> throws this error:
> 17:52:07,421 INFO  [STDOUT] Info: Serializing response
>   (Message #0 targetURI=/2/onStatus, responseURI=null)
>     (Object #0)
>       level = "error"
>       code = "Server.Processing"
>       type = "flashgateway.GatewayException"
>       rootcause = (Object #1)
>         level = "error"
>         code = null
>         type = "flashgateway.translator.ASTranslationException"
>         details = "
> flashgateway.translator.ASTranslationException: Could not set
object
> Sun Dec 15 13:31:50 EST 2002 on class Pojo'
> s method setServiceDate
>         at
> flashgateway.translator.decoder.JavaBeanDecoder.decodeObject
> (JavaBeanDecoder.java:99)
>         at
> flashgateway.translator.decoder.ActionScriptDecoder.decodeObject
> (ActionScriptDecoder.java:22)
>         at flashgateway.translator.ASTranslator.fromActionScript
> (ASTranslator.java:187)
>         at
> flashgateway.adapter.java.JavaAdapter.checkAndTranslateParams
> (JavaAdapter.java:338)
>         at flashgateway.adapter.java.JavaAdapter.getMethod
> (JavaAdapter.java:172)
>         at flashgateway.adapter.java.JavaAdapter.invokeFunction
> (JavaAdapter.java:54)
>         at flashgateway.filter.AdapterFilter.invoke
> (AdapterFilter.java:117)
>         at flashgateway.filter.MessageSecurityFilter.invoke
> (MessageSecurityFilter.java:144)
> ..............................
>
> What I am consfused about is that my datagrid loads the data
> initially (and displays the date/time)!!! So obviously it has no
> problem serializing from a java.sql.Timestamp to an AS Date. Am I
> doing something wrong?
>
> I tried doing my call like this. It didn't throw an error, but all
> the values were null.
> var selected:Pojo = new Pojo(datagrid.dataProvider.getItemAt
> (event.itemIndex));
> remoteObj.updateIt(selected);
>
> thanks.
>
>
>
>
>
> ________________________________
>
> Yahoo! Groups Links
>
> *      To visit your group on the web, go to:
>       http://groups.yahoo.com/group/flexcoders/
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]
subject=Unsubscribe>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .





Yahoo! Groups Links

Reply via email to