1 Reply Latest reply: Jan 18, 2012 11:40 AM by NavPatel RSS

    Mapping Java errors to ActionScript errors

    Mike Tolan Community Member

      I see from the Reference Implementation and the Java API that it's possible to set Error Data on the license request using either the values defined in the com.adobe.flashaccess.sdk.protocol.AdobeErrorData class, or custom values using CustomErrorData.

       

      I want to create a test license server that can send specific error codes to the player, so that I can better test my player's responses to FAXS error codes.

       

      To properly do this, I need to understand how the errors described in the Java API map to the different ActionScript runtime error codes. Is there a document somewhere that relates the two? I would rather not issue each ErrorData object individually from my license server to see what Flash Player & the FAXS runtime do with it.

       

       

      Thanks,

      -Mike

        • 1. Re: Mapping Java errors to ActionScript errors
          NavPatel Employee Hosts

           

           

          Error codeAdobeErrorData fieldClient Error Mapping
          105REQ_UNSUPPORTED_VERSION3350
          110REQ_AUTH_TOKEN_INVALID_EXPIRED3301
          111REQ_MACHINE_TOKEN_INVALID_EXPIRED3324
          112REQ_DRM_CREDENTIAL_NEEDS_UPGRADE3335
          113REQ_RUNTIME_CREDENTIAL_NEEDS_UPGRADE3337
          114REQ_DRM_VERSION_NOT_SUPPORTED3334
          115REQ_RUNTIME_VERSION_NOT_SUPPORTED3336
          116REQ_UNSUPPORTED_VERSION_NEED_UPGRADE3335
          202AUTH_FAILED3301
          302LACQ_CONTENT_METADATA_INVALID3314
          303LACQ_CONTENT_POLICY_EXPIRED3303
          304LACQ_CONTENT_POLICY_REVOKED3303
          305LACQ_USER_NOT_AUTHORIZED3304
          306LACQ_AUTHENTICATION_REQUIRED3330
          307LACQ_TAMPERING_DETECTED3326
          311LACQ_DOMAIN_REGISTRATION_REQUIRED3360
          312LACQ_CONTENT_POLICY_NOT_YET_VALID3331
          313LACQ_DEVICE_CAPABILITIES_INSUFFICIENT3347
          501DOM_REG_DENIED3355
          502DOM_LIMIT_REACHED3355
          503DOM_AUTHENTICATION_REQUIRED3330

           

           

           

           

           

          Note:

           

          - Any error codes defined in AdobeErrorData which are not listed in the mapping above will result in 3328 on the client. The client suberror code will carry the error code sent by the server.

          - If the server defines custom error codes using CustomErrorData, this will result in 3329 on the client. The client suberror code will carry the error code sent by the server.

           

          Reference error code links:

          http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html

          http://help.adobe.com/en_US/flashaccess/3.0/javadocs/com/adobe/flashaccess/sdk/protocol/Ad obeErrorData.html