It might be possible that you are not tracing on the same object of the Remote class, but on a different object, which have a default object as new ArrayList and therefore returning the 0 length. cross-check the other value also last name and phone no.
try to return the length of the collection, received from the flex, from the Java function to be called remotely and then trace it in the Flex the value returned from the Remote Method. On Mon, Mar 8, 2010 at 12:55 PM, rakshith sharma <[email protected]> wrote: > ya its workin but the list size is shown as 0 on the console when printed.. > we are sending 7 objects from flex though.. > > > On Mon, Mar 8, 2010 at 11:15 PM, Vaibhav Seth > <[email protected]>wrote: > >> will try to.. please paste the exception. >> >> Also try declaring as: >> >> >> Person.java >> >> package example; >> >> public class Person { >> >> public String lastName; >> >> public String phone; >> >> public List objarray; >> >> public Person() { >> objarray = new ArrayList(); >> } >> } >> >> see if it helps. >> >> >> On Mon, Mar 8, 2010 at 12:33 PM, rakshith sharma <[email protected]>wrote: >> >>> Hi again.. >>> Just tried wat u told but am gettin a nullpointer exception.. >>> can u help me out? >>> Thanks >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Flex India Community" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<flex_india%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/flex_india?hl=en. >>> >> >> >> >> -- >> Thanks, >> Vaibhav Seth. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Flex India Community" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<flex_india%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/flex_india?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- Thanks, Vaibhav Seth. -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

