Skip to main content
December 16, 2011
Question

java.lang.NullPointerException is thrown when packaging Adobe AIR 3 application for iOS

  • December 16, 2011
  • 2 replies
  • 2743 views

I just update my AIR project for iOS from Adobe AIR 2.6 to Adobe AIR 3.1 (that comes with Flash Builder 4.6), than I always got an exception when packaging my application:

Error occurred while packaging the application:

    Exception in thread "main" java.lang.NullPointerException

        at adobe.abc.Nsset.match(Nsset.java:263)

        at adobe.abc.Name.match(Name.java:555)

        at adobe.abc.Symtab.getEntry(Symtab.java:37)

        at adobe.abc.Symtab.get(Symtab.java:55)

        at adobe.abc.Type.setNeedsArgumentsUpInheritanceHierarchy(Type.java:343)

        at adobe.abc.Type.setNeedsArgumentsUptoRoot(Type.java:269)

        at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:558)

        at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:448)

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

        at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)

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

    Compilation failed while executing : ADT

What is the cause of this error, so I can avoid it in my project before AIR team fix this?

Thank you.

This topic has been closed for replies.

2 replies

December 20, 2011

Hi Everyone,

I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go! 

Getting the same error.

Exception in thread "main" java.lang.NullPointerException

        at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)

        at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)

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

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

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

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

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

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

.java:472)

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

Compilation failed while executing : ADT

regards,

Keith

Participating Frequently
December 21, 2011

@kgmstone

You are hitting a bug in runtime. I request you to file it at http://bugbase.adobe.com with the sources of your application, so that we can start investigating it.

Thanks,

Sanika

December 21, 2011

Hi Sanika,

I'm unsure when you say runtime, its states it failed at compilation. I am not running the app, but building the ipa file. This only happens when I am building in standard mode and not fast of course. My source file is quite huge and consists of an additional project and a "code merged in" swf file which is my core library. Are there any rules regarding which libraries or swf files are to be linked in?

regards,

Keith

December 16, 2011

I just post this at Adobe BugBase too.

https://bugbase.adobe.com/index.cfm?event=bug&id=3071298

Participating Frequently
December 16, 2011

Hello champjss,

I'm afraid I don't have an answer to your question, but rather a question of my own. How much success are you having using Flash Builder to build an iOS app? Is this for the iPad? I have a fairly complex application that makes heavy use of web services, and I would love to re-use a lot of my AS3 code. But I had not much luck packaging my app for use on Android (on which Adobe AIR is supposed to work), so that gives me little confidence that I can make anything work on iPad.

Thanks

Kevin

December 16, 2011

Yes, I build an iOS app for iPad. With AIR 3.1, I don't ever success packaging my application. I always get that exception. However, with AIR 2.6, has no problem like this. I always can package my application with 2.6.

Oh, so there is so much problem about packaging for Android?