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
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
|
- RE: [flexcoders] Serialization error with Timestamp Matt Chotin
-