Skip to main content
Participating Frequently
May 6, 2013 7:10 AM UTC
Question

Entitlement block causing error: unexpected failure: null

I need to include the Entitlement block for my iOS app, however when I do this the packager complains:

unexpected failure: null

java.nio.BufferOverflowException

    at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:165)

    at java.nio.ByteBuffer.put(ByteBuffer.java:813)

    at com.adobe.air.ipa.MachoSigner.newEntitlementBlob(MachoSigner.java:427)

    at com.adobe.air.ipa.MachoSigner.sign(MachoSigner.java:241)

    at com.adobe.air.ipa.MachoSigner.sign(MachoSigner.java:98)

    at com.adobe.air.ipa.IPASigner.signMacho(IPASigner.java:107)

    at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:841)

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

    at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:257)

    at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)

    at com.adobe.air.ADT.run(ADT.java:419)

    at com.adobe.air.ADT.main(ADT.java:469)

My app descriptor Entitlement block looks like this:


<Entitlements>

<![CDATA[

<key>gett-task­-allow</key>

<true/>

<key>aps-­environment</key>

<string>development</string>

<key>application­-identifier</key>

<string>ACDE1234.asd.asd.asd</string>

<key>keychain-­access­-groups</key>

<array>

<string>ACDE1234.*</string>

</array>

]]>

</Entitlements>

My AIR version tag is the following:

<application xmlns="http://ns.adobe.com/air/application/3.5">

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

9 replies

Inspiring
Aug 23, 2013 3:35 PM UTC

this may not help, but I couldnt help but notice you wrote <key>gett-task­-allow</key>

should it be <key>get-task­-allow</key>?

Translate
Participating Frequently
Aug 24, 2013 10:13 AM UTC

Yes I put correctly <key>get-task­-allow</key> in my code but that still cause the problem.

Translate
Participating Frequently
Aug 29, 2013 8:17 AM UTC

Anyone from Adobe to help ???

Translate
Pahup
Adobe Employee
Adobe Employee
May 7, 2013 9:50 AM UTC

Hi Sebastian,

Thanks for reporting, could you please answer following questions.

  • Which AIR SDK version you're using? Has it ever worked with any other version of AIR SDK?
  • Could you please try it with latest AIR SDK released i.e. 3.7
  • If you remove the entitlement tag completely, does that get packaged sucessfully?
  • Are you using some tools or you're packaging on command line?
  • Could you please share the exact ADT command you're using.
  • Also, could you please share the entire application xml.

Thanks

-Pahup

Adobe AIR

Translate
Participating Frequently
Aug 20, 2013 10:07 AM UTC

Hi Pahup,

I have exactly the same behavior here (and same error message).

I tried with AIR 3.5, 3.7 and 3.8 but nothing works

If I remove the entitlement tag, it works.

I package using a batch file from command line.

The ADT command is

call adt -package -target ipa-debug %SIGNING_OPTIONS% %IPA_FILE% %APP_XML% %CACHE_DIR% %ICONS_DIR% config %SWF_FILE% -extdir %ANE_DIR%

My application XML:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<application xmlns="http://ns.adobe.com/air/application/3.8">

    <id>abc.abc.abc</id>

    <versionNumber>1.00</versionNumber>

     <filename>ABC</filename>

  <name>ABC</name>

  <initialWindow>

    <content>abc.swf</content>

    <visible>true</visible>

    <fullScreen>true</fullScreen>

    <aspectRatio>portrait</aspectRatio>

    <autoOrients>true</autoOrients>

    <systemChrome>standard</systemChrome>

    <transparent>false</transparent>

    <maximizable>true</maximizable>

    <minimizable>true</minimizable>

    <resizable>true</resizable>

  </initialWindow>

  <icon>

    <image29x29>icons/icon29.png</image29x29>

    <image48x48>icons/icon48.png</image48x48>

    <image57x57>icons/icon57.png</image57x57>

    <image72x72>icons/icon72.png</image72x72>

    <image512x512>icons/icon512.png</image512x512>

  </icon>

  <iPhone>

    <InfoAdditions><![CDATA[

      <key>UIDeviceFamily</key>

      <array><string>1</string><string>2</string></array>

    ]]>

</InfoAdditions>

    <Entitlements><![CDATA[

    <key>get­-task-­allow</key>

    <true/>

    <key>aps­-environment</key>

    <string>development</string>

    <key>application­-identifier</key>

    <string>0123456789.abc.abc.abc</string>

    <key>keychain­-access-­groups</key>

    <array><string>0123456789.*</string></array>

    ]]>

</Entitlements>

  </iPhone>

<extensions>

    <extensionID>com.distriqt.PushNotifications</extensionID>

    <extensionID>com.distriqt.NetworkInfo</extensionID>

  </extensions>  <customUpdateUI>false</customUpdateUI>

</application>

Thank you for any help you can provide,

Julien

Translate
Participating Frequently
Aug 23, 2013 8:09 AM UTC

Hi,

I noticed that this bug only occur when a "reserved keyword" is used within the entitlements block.

For example

<Entitlements><![CDATA[

    <key>get­-task-­allow</key>

    <true/>

</Entitlements>

bugs because get-task-allow is a reserved keyword for the iOS entitlements bu

<Entitlements><![CDATA[

    <key>get­-task-­allow2</key>

    <true/>

</Entitlements>

does not cause the bug because it does not recognize get­-task-­allow2 keyword.

Could you help me a little bit on the issue as this is quite critical and I am unable to find any workaround ?

Julien

Translate