14 Replies Latest reply: Oct 17, 2014 9:44 PM by www.123bee.com RSS

    Compilation failed while executing: ADT

    John R Nyquist Community Member

      I have a project that I've been successfully compiling for iOS in Flash Professional 5.5, with uses AIR 2.6. I decided to try compiling in Flash Builder 4.6 using AIR 3.1. It runs fine on the desktop, no errors or warnings. When I try to do an Ad Hoc release build, it fails with java.lang.NullPointerException at java.util.TreeMap.getEntry(TreeMap.java:324), (The Export Release Build dialog does not let me select the text, otherwise I'd paste the stack here)starting at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82) and saying  "Compilation failed while executing: ADT"

       

      Any suggestions would be appreciated!

       

      Regards,

      John

        • 1. Re: Compilation failed while executing: ADT
          panicolai Community Member

          I am having the same exact problem right now, and as far as I can tell, this post is the only example of it on the internet, and it has no replies.. Did you ever figure out what was happening?

          • 2. Re: Compilation failed while executing: ADT
            Pahup Adobe Employee

            Hi John,

             

            Could you please try packaging it on command line using ADT (available @ C:\Program Files\Adobe\Adobe Flash Builder 4.x\sdks\4.x\bin)

             

            # adt -package -target ipa-ad-hoc -provisioning-profile <path to mobileprovision> -storetype pkcs12 -keystore <path to p12> -storepass <password> hellworld.ipa hellworld-app.xml hellworld.swf

             

            Is it specific to ipa-ad-hoc target only? Could you try it with other targets like ipa-app-store or ipa-test-interpreter

             

            Please share the adt version by executing following command.

            # adt -version

             

             

             

            -Thanks

            Pahup

            • 3. Re: Compilation failed while executing: ADT
              panicolai Community Member

              I'm not John, but I have the exact same issue, same traceback. I'm compiling on the commandline with adt version 3.1.0.4880, but it also happens with sdk versions 3.2 and 3.3. If I compile the SWF using -debug, the problem doesn't occur - only with the release build. It also occurs with the ipa-app-store target, but not with ipa-test-interpreter (not too surprising, given the error traceback).

              • 4. Re: Compilation failed while executing: ADT
                panicolai Community Member

                Oh, and here's the complete traceback:

                 

                Exception in thread "main" java.lang.NullPointerException

                        at java.util.TreeMap.getEntry(Unknown Source)

                        at java.util.TreeMap.get(Unknown Source)

                        at adobe.abc.Algorithms$SetMap.get(Algorithms.java:223)

                        at adobe.abc.Algorithms.addUses(Algorithms.java:166)

                        at adobe.abc.Algorithms.findUses(Algorithms.java:186)

                        at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4626)

                        at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)

                        at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)

                        at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:527)

                        at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:337)

                        at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler

                .java:510)

                        at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:80)

                Compilation failed while executing : ADT

                • 5. Re: Compilation failed while executing: ADT
                  panicolai Community Member

                  FWIW, the problem also occurs with -target ipa-test.

                  • 6. Re: Compilation failed while executing: ADT
                    Pahup Adobe Employee

                    Thanks for your reply, please raise the bug @ https://bugbase.adobe.com/ request you to attach relevant sources/swf/xml, so that we could investigate the issue at our end.

                     

                    -Pahup

                    • 7. Re: Compilation failed while executing: ADT
                      grosssmutttr Community Member

                      Hi there,

                       

                      we also receive the error message "Compilation failed while executing: ADT".

                      So we can't update our app and this is really urgent. We have over 500 000 users and we have to fix a major bug.

                       

                      We tried to compile the App with the current Beta AIR 14 version and we tried to build it with AIR 13.

                      We are using Adobe Flash Builder 4.7.

                      If we compile to Android everything works fine.

                      iOS won't work and the error message appears.

                       

                      If we debug the app via "fast build" it works.

                       

                      We already changed this line in the jvm.config:

                      java.args=-Xmx384m -Dsun.io.useCanonCaches=false

                       

                      We tried -Xmx512m and 1024 but unfortunately it still doen't work.

                       

                      We can compile the other apps, but one of our best performing app is dead at the moment!

                       

                      Any ideas what can solve the problem?

                      • 9. Re: Compilation failed while executing: ADT
                        grosssmutttr Community Member

                        When we use the adt command line:

                        adt -package -target ipa-app-store -storetype pkcs12 -keystore test/cert.p12 -provisioning-profile test/name_Distribution.mobileprovision t

                        est/myApp.ipa TurmbauBabel-app.xml -extdir extensionsDir TurmbauBabel.swf assets

                        /appIcon32x32.png assets/appIcon152x152.png assets/appIcon29x29.png assets/appIc

                        on58x58.png  assets/appIcon16x16.png assets/appIcon40x40.png assets/appIcon144x1

                        44.png  assets/appIcon57x57.png assets/appIcon128x128.png  assets/appIcon114x114

                        .png assets/appIcon80x80.png assets/appIcon50x50.png assets/appIcon60x60.png ***

                        ets/appIcon100x100.png assets/appIcon76x76.png  assets/appIcon72x72.png assets/a

                        ppIcon48x48.png assets/appIcon96x96.png assets/appIcon36x36.png assets/appIcon12

                        0x120.png

                        password:

                        Compilation failed while executing : ADT

                         

                        No additional errors ...

                        • 10. Re: Compilation failed while executing: ADT
                          grosssmutttr Community Member

                          We found the solution.

                           

                          There were over 60 if-clauses in our class.

                          We changed the if-clauses to else if and now it works.

                           

                          Didn't know that this could have such a massive impact...

                          • 11. Re: Compilation failed while executing: ADT
                            pbalogh Community Member

                            Is this a known constraint -- that you can't use if-clauses more than 60 times in a class unless some of them are followed by else-if statements?

                            • 12. Re: Compilation failed while executing: ADT
                              grosssmutttr Community Member

                              I don't think so. This problem only exists on iOS and isn't a problem when you compile to Android...

                              • 13. Re: Compilation failed while executing: ADT
                                www.123bee.com Community Member

                                i also getting same error

                                 

                                compilation failed while executing:Compile-abc

                                • 14. Re: Compilation failed while executing: ADT
                                  www.123bee.com Community Member

                                  could you tell me how to solve this problem . I am using flash cs6 and AIR15.0.0