Skip to main content
Known Participant
December 12, 2009
解決済み

command line error with large codebase?

  • December 12, 2009
  • 返信数 1.
  • 958 ビュー

any idea?

if i change the source to go down the code tree to say

-s "D:/wrk_gapp-i17/gariffCode/src/tinylion/gariff"

then all is fine

but all of the following give the same error

-s "D:/wrk_gapp-i17/gariffCode/src/tinylion/gariff"

-s "D:/wrk_gapp-i17/gariffCode/src/tinylion/"

-s "D:/wrk_gapp-i17/gariffCode/src/"

is it the amount of files?

any source  that goes deeper is fine;

-s "D:/wrk_gapp-i17/gariffCode/src/tinylion/gariff/views"

-s "D:/wrk_gapp-i17/gariffCode/src/tinylion/library"

etc

as you can see ive tried uping the memory (same what ever value i use)

using latest version as far as i know

$ java -Xmx1024 -jar "A:/_tools/flexPMD/flex-pmd-command-line-1.0.jar" -s "D:/wrk_gapp-i17/gariffCode/" -o "D:/wrk_gapp-i17/gariffCode/_pmdOut/all_flex/" -r "A:/_tools/flexPMD/all_flex.xml"

12-Dec-2009 21:34:09 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

INFO: Ruleset: A:\_tools\flexPMD\all_flex.xml

12-Dec-2009 21:34:09 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

INFO: Rules number in the ruleSet: 82

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

        at java.util.ArrayList.RangeCheck(Unknown Source)

        at java.util.ArrayList.set(Unknown Source)

        at com.adobe.ac.pmd.files.impl.MxmlFile.copyScriptLinesKeepingOriginalLineIndices(MxmlFile.java:131)

        at com.adobe.ac.pmd.files.impl.MxmlFile.extractScriptBlock(MxmlFile.java:162)

        at com.adobe.ac.pmd.files.impl.MxmlFile.<init>(MxmlFile.java:55)

        at com.adobe.ac.pmd.files.impl.FileUtils.create(FileUtils.java:83)

        at com.adobe.ac.pmd.files.impl.FileUtils.computeFilesList(FileUtils.java:58)

        at com.adobe.ac.pmd.FlexPmdViolations.computeFiles(FlexPmdViolations.java:131)

        at com.adobe.ac.pmd.FlexPmdViolations.computeViolations(FlexPmdViolations.java:94)

        at com.adobe.ac.pmd.engines.AbstractFlexPmdEngine.computeViolations(AbstractFlexPmdEngine.java:156)

        at com.adobe.ac.pmd.engines.AbstractFlexPmdEngine.executeReport(AbstractFlexPmdEngine.java:138)

        at com.adobe.ac.pmd.commandline.FlexPMD.startFlexPMD(FlexPMD.java:115)

        at com.adobe.ac.pmd.commandline.FlexPMD.main(FlexPMD.java:69)

このトピックへの返信は締め切られました。
解決に役立った回答 Xavier Agnetti

You have somewhere in your code base, a MXML file which leads to this exception. It would great if you could try to identify this one.

You would then be able to add to the test suite to avoid regressions.

Xavier

返信数 1

Inspiring
December 14, 2009

From your stacktrace, it is not related to the size of the project.

Can you open a bug in JIRA with the stacktrace, please?

Thanks

Xavier

Inspiring
December 14, 2009

You have somewhere in your code base, a MXML file which leads to this exception. It would great if you could try to identify this one.

You would then be able to add to the test suite to avoid regressions.

Xavier

tinylion_uk作成者
Known Participant
December 14, 2009

Hi again

now I know where to start looking I'm positive i can track this one down for yo9u this evening.

i'll get back to you later

cheers