Hello,
Sometimes my objects graphs being returned from a remote call can be quite deep and complex.?As you know, if you don't have an explicit reference to all of the object types being returned from a remote call, you get this error:
''ArgumentError: Error #2004: One of the parameters is invalid.''
So, I know what the problem is, but I often have a heck of a time figuring out -which- class/type it's choking on.?It usually involves a lengthy process of trial and error.
I was wondering if I'm overlooking the obvious or if someone has good a method for determing which class(es) it's choking on?
Thank you!
Any tips on resolving ''Error #2004: One...Usually, if you are using a debug build, you'll get a complete stack trace with line numbers. I find those very helpful.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui
Any tips on resolving ''Error #2004: One...Hmm.. I do get a stack trace... but nothing useful that I could find.?I'll run it again in a bit and post the stack trace here.
Scratch that.?You are right of course. I swear that I combed though that before and couldn't find anything useful.?Looking at it again, it doesn't tell me the problem class, but I do get the line # for the readObject() that it's failing on.?It's reading a collection of mixed types so I still don't know which one is the problem. But at least it's WAY narrowed down now.
Thanks!
No comments:
Post a Comment