I am using BlazeDS to connect Flex with Java. I am having trouble passing ArrayLists of custom objects from Flex to java.
I have two objects, one called Category, the other section. The category has an ArrayList section object. I can send an ArrayList of Category objects back and forth between Flex and Java, the problem is that when I try to access the ArrayList sections of the Category object that was returned by Java from Flex, I get the following error:
flex.messaging.MessageException: java.lang.ClassCastException : flex.messaging.io.amf.ASObject
For some reason, I get ArrayList ASObjects, not section objects. I tried to figure out how to explicitly type arrays in actionscript, but the only thing I could find was to use a Vector object that BlazeDS does not support. Is it possible to pass ArrayList objects from a section in category ArrayList objects, or do I need to find another way?
Kevmo source share