Skip to main content
Nov 3, 2015 11:55 AM UTC
Question

java.lang.NullPointerException while packaging

There was an error occurred while I had been packaging my APK.

My project is included an ANE. I rebuilt the ANE and the error occurred.

The error I got as below:

!ENTRY com.adobe.flexbuilder.project 4 43 2015-10-26 17:10:52.114

!MESSAGE Error

!STACK 0

java.lang.NullPointerException

at java.util.zip.ZipFile.getInputStream(Unknown Source)

at com.adobe.air.apk.APKPackager.processExtensions(APKPackager.java:276)

at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:65)

at com.adobe.flexbuilder.multisdk.apollo.export.AIRAPKPackager.createUsingPackager(AIRAPKPac kager.java:245)

at com.adobe.flexbuilder.multisdk.apollo.export.AIRAPKPackager.create(AIRAPKPackager.java:57 5)

at com.adobe.flexbuilder.multisdk.apollo.export.AIRAPKPackager.create(AIRAPKPackager.java:13 😎

at com.adobe.flexide.multiplatform.android.exportrelease.AndroidExportReleaseHandler.createP ackage(AndroidExportReleaseHandler.java:354)

at com.adobe.flexide.multiplatform.android.exportrelease.AndroidExportReleaseHandler.doPacka ge(AndroidExportReleaseHandler.java:258)

at com.adobe.flashbuilder.project.multiplatform.ui.exportrelease.MultiPlatformExportReleaseV ersionManager.doExport(MultiPlatformExportReleaseVersionManager.java:317)

at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard$1.run(Exp ortReleaseVersionWizard.java:221)

The ADT cmd as below:

"C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\17.0\bin\adt" -package -target ane speech.ane extension.xml -swc speech.swc -platform iPhone-ARM -C ios . -platform Android-ARM -C android . -platform default -C default .

By the way, I use above command built the ANE and packaged my APK correctly before.

Even I rebuilt the ANE use same command and  files before I had used, the error was still occurred.

Could anybody give me suggestions how could I debug the issue?

Jim

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

Adobe Employee
Nov 4, 2015 1:35 PM UTC

Hi,

It seems there is some issue with ZipFile API at java native side of ANE. It is not able to get the resource that you are passing as a parameter in getInputStream method. Could you please describe that,

     what kind of resource you are trying to pass?

     Is there any special character contains in the name of the resource file?

     Are you able to find the resource file after unzipping the ANE?

Thanks,

Adobe AIR Team

Translate
Nov 5, 2015 7:21 AM UTC

The problem is caused by the ANE I made. However it worked with same way before. Could you please give me an email that I can send my projects and files to you, hopefully you can find problem for me!

Best wishes,

Jim

Translate