field: length is not declared

25 views
Skip to first unread message

Robert Pluntke

unread,
Apr 10, 2015, 8:33:38 AM4/10/15
to gran...@googlegroups.com
Hi,

i have an issue with you reflections api. i made a realy simple class "SkillAbilityData", it contains only 4 public members : "AbiltiyName", "SkillLevel", "ID" and "Learned". The class itself does not extend any other class. In the constructor of the class i have the following code
var type : Type = Type.forClass(SkillAbilityData, ApplicationDomain.currentDomain);
var members : Array = type.members;
unfortunatley this throws the error "Could not find declaring class for field: length" and i have no idea how to fix this.
Can someone pls help me?

Lasha K

unread,
May 28, 2015, 8:35:29 AM5/28/15
to gran...@googlegroups.com
Have you found the cause?

Robert Pluntke

unread,
May 29, 2015, 11:02:39 AM5/29/15
to gran...@googlegroups.com
i stopped tryting to find a fix after posting here, and by now i already stopped using the whole api since it seems it isnt supported anymore at all.

Lasha K

unread,
Jun 1, 2015, 9:44:54 AM6/1/15
to gran...@googlegroups.com
good for you.. i feeling alone here) transferring project from BlazeDS to GraniteDS and it makes me feel sad(

Kris Hofmans

unread,
Jun 1, 2015, 9:49:15 AM6/1/15
to gran...@googlegroups.com
try making members Object and use your debugger to see what actual datatype it's returning.

Sort of seems like it points to the fact that members is not really an array.

Also, using a flex sdk, or apache sdk? The information you provide is a little limited, I've used the reflection api a lot in the past and it was working fine.

2015-06-01 15:44 GMT+02:00 Lasha K <kva...@gmail.com>:
good for you.. i feeling alone here) transferring project from BlazeDS to GraniteDS and it makes me feel sad(

--

---
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "Granite Data Services Forum".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse graniteds+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages