It is a compilation error, and all the modules and the main program are compiled using the same mxmlc, since i use an ant build task to do that.
The indexOutOfBound appears from time to time, and occasionally, the "undeclared property" error of generated-as happened. It may be that the compilation from mxml to the immediate generated- as files have some errors, so what i do is to turn those related files to as directly manually. After doing that it seems the indexOutOfBound happen less. Before introducing mx:Modules, the situation didn't happened, so it seems it is quite risky, as I don't even know which mxml may trigger that error... Regards Dan --- In [email protected], "Gaurav. Jain" <[EMAIL PROTECTED]> wrote: > > So now you are getting compilation error or runtime error? > > If you are getting runtime error, can you make sure that modules and > main application are compiled using the same version? > > Thanks, > Gaurav > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Dan > Sent: Tuesday, March 11, 2008 4:12 AM > To: [email protected] > Subject: [flexcoders] Re: mxmlc java.lang.IndexOutOfBoundsException > > Thx Gaurav for your kindly response. > > I am using FLEX 2.0.1, and I find that when i try to split the > application into modules, some part of the programs occassionally > give out a generated-as binding error. In order to work arround > that, I change those part of mxml into .as directly, and seems > working, however, it is not a perfect solution, since i can't > convert all my mxml into .as, and also, not all compilations > everytime may report that. > > Thanks, > Daniel > > --- In [email protected], "Gaurav Jain" <gauravj@> wrote: > > > > Which version of flex are you using? There were some related fixes > in > > flex 3 beta 3. > > > > If you are seeing this with flex 3 beta 3, please log a bug at > > http://bugs.adobe.com/flex with the test case. > > > > Thanks, > > Gaurav > > > > --- In [email protected], "Dan" <yldleung@> wrote: > > > > > > Hi, > > > > > > I am getting the same error > > > > > > java.lang.IndexOutOfBoundsException > > > > > > So do you two find the solutions for that???? > > > > > > Regards, > > > Daniel > > > > > > --- In [email protected], "j_lentzz" <jelentz@> wrote: > > > > > > > > Hi, > > > > > > > > I'm trying to use the command line compiler for a set of > standalone > > > > apps. It used to work fine, but now I'm getting the following > > > error > > > > when I start up my make file: > > > > > > > > mxmlc -show-unused-type-selector-warnings=false -output > > > > bin/AddEditReviseProjectRequest.swf > > > AddEditReviseProjectRequest.mxml > > > > Loading configuration file C:\Program Files\Adobe\Flex Builder > 2 > > > \Flex > > > > SDK 2\frameworks\flex-config.xml > > > > Error: Index: 14, Size: 5 > > > > > > > > java.lang.IndexOutOfBoundsException: Index: 14, Size: 5 > > > > at java.util.ArrayList.RangeCheck(ArrayList.java:546) > > > > at java.util.ArrayList.get(ArrayList.java:321) > > > > ... > > > > > > > > > > > > Has anyone see this before or know what is causing it? It > used to > > > > compile just fine. I restructured some code, but I'm not doing > > > > anything new. > > > > > > > > Any help or ideas would be greatly appreciated. > > > > > > > > Thanks, > > > > > > > > John > > > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links >

