Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

fill() returning empty ArrayCollection

Avatar

Level 1
Hi,



I am new to FDS and don't know why the fill() method returns
nothing, even though the assembler is returning a list of 3
objects. I know the list is returning nothing because when I
display the length of the ArrayConnection, it's 0.



I turned on debug logs and see the 3 items returned. Do you
have any tips on how I can resolve this?



Is there somewhere in the config where I have to specify that
Java class A maps to ActionScript class B? I just deleted my
corresponding ActionScript class and still got the same logs. I
suspect that FDS does not know how to map the Java class to the
ActionScript class so it gives me an empty list and throws away the
results. Does that sound right? If there is some kind of automatic
mapping, I would have expected to see an error in the logs after I
deleted the ActionScript class.



Thanks,

Jamie



[Flex] 05/18/2007 12:19:31.443 [DEBUG]
[DataService.Transaction] Committed trans

action

[Flex] 05/18/2007 12:19:31.443 [DEBUG] [Message.Data.fill]
After invoke service:

data-service

reply: Flex Message (flex.data.messages.SequencedMessage)

sequenceId = 0

sequenceSize = 3

(no sequence proxies)

clientId = null

correlationId = null

destination = company

messageId = 7A2A0D8F-C32B-80BC-D593-4551B71320F1

timestamp = 1179515971443

timeToLive = 0

body =

[

Company(companyId=100, name=null, address=null, state=null,
zip=null indus

try=null),

Company(companyId=101, name=null, address=null, state=null,
zip=null indus

try=null),

Company(companyId=102, name=null, address=null, state=null,
zip=null indus

try=null)

]
1 Accepted Solution

Avatar

Correct answer by
Level 1
I found the answer to my own question. This was just a race
condition. You can't read the size of the ArrayCollection right
away. The list takes a while to populate.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1
I found the answer to my own question. This was just a race
condition. You can't read the size of the ArrayCollection right
away. The list takes a while to populate.