Announcement Announcement Module
No announcement yet.
Type Coercion failed....but must works(maybe a bug?) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Type Coercion failed....but must works(maybe a bug?)

    Hi to all!
    I have a problem in transfer value objects between spring and flex layers and i don't know what to do!
    It's very simple, when i call a method throught a RemoteObject, later i receive the result in a resultEvent, but SOMETIMES, when i call the "as" to convert the object to mi desired value object, throws the following error:
    TypeError: Error #1034: Type Coercion failed: cannot convert vo::[email protected] to vo.ProyectoVO.
    As you can see, the objects are the same and there's no problems in a lack of some variable. The objects are identical in flex and java layers

    But SOMETIMES if a do a casting, like ProyectoVO(event.result), works correctly, but later fails the "as" or casting operations in another call.
    Or sometimes doesn't work the casting, but to change it again to a "as" operation, it works

    I don't know if that is a flex problem or a blazeds problem, but I hope that someone can help me. It's very frustating change these instructions all the time.
    Thanks in advance.