8 Replies Latest reply on Dec 8, 2014 1:52 AM by azizrahman

    error -402 upon installing an extension via Command Line

    Eldorana Level 1

      When I try to install my extension via command line, i receive the following error message:

      "Failed to install, status = -402!"

       

      What does this error code -402 mean?

       

      I found someone with a similar problem in the forums: Re: Extension Manager CC failed to install extension

      He/She had file names containing non-ASCII characters. But i couldn't find any non-ASCII characters in my project or extension.

       

      Thanks in advance,

       

      Andreas

        • 1. Re: error -402 upon installing an extension via Command Line
          Carl Sun Level 4

          -402 means signature validation failed. During signature validation, Extension Manager has to connect to server to check CRL, timestamp, etc. The failure might be caused by the firewall or the intermittent Internet connection failure. Please click "Tools"->"Preferences" menu item in Extension Manager, uncheck "Allow Extension Manager to access Internet", then install the extension again. This way these checks will be skipped.

          • 2. Re: Re: error -402 upon installing an extension via Command Line
            Eldorana Level 1

            Hi Carl,

             

            unfortunately unchecking the option did not work. This is what I found in the logs:

             

            ExManCoreLibrary.log:

            [Debug] Thu Oct 09 09:01:03.891 2014 (SignatureValidator.cpp, 48) -CSignatureValidator::verifySignature: Begin to validate signature /var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa

            [Debug] Thu Oct 09 09:01:03.924 2014 (SignatureValidator.cpp, 68) -CSignatureValidator::verifySignature: End to validate signature /var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa

            [Error] Thu Oct 09 09:01:03.924 2014 (SignatureValidator.cpp, 105) -CSignatureValidator::verifySignature: ZXPSign_verify() failed for "/var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa", sign_status is 50!

            [Error] Thu Oct 09 09:01:03.924 2014 (ExtensionBase.cpp, 170) -CExtensionManager::validateExtension: CSignatureValidator::verifySignature() failed for "/var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa", status is -402!

            [Error] Thu Oct 09 09:01:03.924 2014 (ExtensionBase.cpp, 607) -CExtensionBase::install: validateExtension() failed for zxp /Users/******/Desktop/plugin.zxp, status = -402!

            log0.log:

            10/9/2014 09:01:03.622 [INFO] com.adobe.exman.controller.InstallExtensionCommand execute(), InstallExtensionCommand is executed.

            10/9/2014 09:01:03.624 [INFO] com.adobe.exman.controller.session.composite.CompositeUpdateSession initiate()

            10/9/2014 09:01:03.624 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.

            10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,29,install,1,0

            10/9/2014 09:01:03.625 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_ACTION_BEGIN

            notification body: [object ActionBeginParameter]

            10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

            10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_ACTION_BEGIN

            10/9/2014 09:01:03.625 [INFO] com.adobe.exman.ExManGUI canAcceptUIInput(), set to: false

            10/9/2014 09:01:03.626 [INFO] com.adobe.exman.controller.AppWinOperationCommand execute(), AppWinOperationCommand is executed. notification=APPWIN_MODALDIALOG_POPUP

            10/9/2014 09:01:03.626 [INFO] com.adobe.exman.controller.gateway.ExternalGateway ###appWinOperate(), sessionId: 30, opCode=10, mouseX=0, mouseY=0

            10/9/2014 09:01:03.626 [DEBUG] com.adobe.exman.controller.session.composite.CompositeRollBackSession CompositeRollBackSession: executeNextSession()+++

            10/9/2014 09:01:03.627 [DEBUG] com.adobe.exman.controller.session.composite.CompositeRollBackSession CompositeRollBackSession: supper.executeNextSession

            10/9/2014 09:01:03.627 [DEBUG] com.adobe.exman.controller.session.composite.CompositeSession executeNextSession: run a frontend session

            10/9/2014 09:01:03.628 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession initiate()

            10/9/2014 09:01:03.628 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.

            10/9/2014 09:01:03.628 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,31,install,1,0

            10/9/2014 09:01:03.629 [INFO] com.adobe.exman.controller.session.composite.CompositeRollBackSession onChildSessionProgress() session total: 1 session lenght: 0 progress: 0 calculatedProgress: 0

            10/9/2014 09:01:03.629 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_PROGRESS

            notification body: 0

            10/9/2014 09:01:03.629 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

            10/9/2014 09:01:03.629 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_PROGRESS

            10/9/2014 09:01:03.629 [INFO] com.adobe.exman.view.ExManApp app got progress: 0

            10/9/2014 09:01:03.633 [DEBUG] com.adobe.exman.controller.session.backend.InstallExtensionSession initiate

            10/9/2014 09:01:03.633 [INFO] com.adobe.exman.controller.gateway.ExternalGateway installExtension(), the params to external install: sessionid=28, sourcepath= /Users/*******/Desktop/plugin.zxp

            10/9/2014 09:01:03.633 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr externalInstallExtension,28,/Users/*******/Desktop/plugin.zxp

            10/9/2014 09:01:03.634 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

            10/9/2014 09:01:03.644 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_RESET_SEARCH_BOX

            10/9/2014 09:01:03.890 [INFO] com.adobe.exman.controller.gateway.Application ###Receive airCallBack Message28,9,30

            10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.gateway.ExternalGateway handleResponse(), parameters of handleResponse:

            sessionId= 28

            responseType= 9

            responseBody=30

            10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.backend.BackendSession com.adobe.exman.controller.session.backend::InstallExtensionSession got parameters in handleResponse:

            responseType= 9

            10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 0 :30

            10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession onBackendSessionProgress(), 30

            10/9/2014 09:01:03.892 [INFO] com.adobe.exman.controller.session.composite.CompositeRollBackSession onChildSessionProgress() session total: 1 session lenght: 0 progress: 30 calculatedProgress: 30

            10/9/2014 09:01:03.892 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_PROGRESS

            notification body: 30

            10/9/2014 09:01:03.892 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

            10/9/2014 09:01:03.892 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_PROGRESS

            10/9/2014 09:01:03.892 [INFO] com.adobe.exman.view.ExManApp app got progress: 30

            10/9/2014 09:01:03.933 [INFO] com.adobe.exman.controller.gateway.Application ###Receive airCallBack Message28,1,-402,com.crossmedia_solutions.assetInformation

            10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.gateway.ExternalGateway handleResponse(), parameters of handleResponse:

            sessionId= 28

            responseType= 1

            responseBody=-402,com.crossmedia_solutions.assetInformation

            10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession com.adobe.exman.controller.session.backend::InstallExtensionSession got parameters in handleResponse:

            responseType= 1

            10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 0 :-402

            10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 1 :com.crossmedia_solutions.assetInformation

            10/9/2014 09:01:03.937 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession onBackendSessionFail()

            10/9/2014 09:01:03.938 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.

            10/9/2014 09:01:03.938 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,32,install,0,0

            10/9/2014 09:01:03.938 [DEBUG] com.adobe.exman.controller.session.composite.CompositeSession notifySuperSessionFail: set LASTSESSION FAILED

            10/9/2014 09:01:03.938 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_ACTION_FAIL_WITH_PARENT_SESSION

            notification body: [object SessionCompleteParameter]

            10/9/2014 09:01:03.939 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

            10/9/2014 09:01:03.939 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_ACTION_FAIL_WITH_PARENT_SESSION

            10/9/2014 09:01:03.939 [ERROR] com.adobe.exman.view.ExManApp null extension!

            10/9/2014 09:01:03.939 [INFO] com.adobe.exman.view.ExManApp onSessionCompleteFail()

            10/9/2014 09:01:03.940 [INFO] com.adobe.exman.view.ExManApp onActionFailHelper()

            10/9/2014 09:01:03.940 [INFO] com.adobe.exman.ExManGUI canAcceptUIInput(), set to: false

            10/9/2014 09:01:03.940 [INFO] com.adobe.exman.controller.AppWinOperationCommand execute(), AppWinOperationCommand is executed. notification=APPWIN_MODALDIALOG_POPUP

            10/9/2014 09:01:03.941 [INFO] com.adobe.exman.controller.gateway.ExternalGateway ###appWinOperate(), sessionId: 33, opCode=10, mouseX=0, mouseY=0

            • 3. Re: error -402 upon installing an extension via Command Line
              fgregor Adobe Employee

              Hi Andreas,

               

              Could you please email your problematic ZXP file to fgregor@adobe.com? This way I will be able to quickly take a look and find out exactly why it's being rejected.

               

              Thanks for your patience with this.

               

              Best regards,

              Fraser

              • 4. Re: error -402 upon installing an extension via Command Line
                Eldorana Level 1

                Hi Fraser,

                 

                I've sent an E-Mail with the ZXP file to you on 10/15/2014. I just want to ask if you found some time to look at that file.

                 

                Thanks,

                Andreas

                • 5. Re: error -402 upon installing an extension via Command Line
                  fgregor Adobe Employee

                  Hi Andreas,

                   

                  Apologies for the delay - your email was sitting in quarantine because of its attachment and I hadn't noticed it. I'll investigate and get back to you as soon as I can (likely to be Monday).

                   

                  In the meantime, can you let me know whether your ZXP is installable with Extension Manager CC? And when you say you fail to install it via the command line, do you mean using ExManCmd? Can you let me know the command you were using?

                   

                  Thanks for your patience.

                   

                  Best regards,

                  Fraser

                  • 6. Re: error -402 upon installing an extension via Command Line
                    Eldorana Level 1

                    Hi,

                     

                    No, I was not able to install it with Extension Manager CC.

                    And that's the command i used: ./ExManCmd --install "/path/to/extensionFile.zxp"

                     

                    I hope that's enough information

                    • 7. Re: error -402 upon installing an extension via Command Line
                      fgregor Adobe Employee

                      Hi Andreas,

                       

                      I've inspected your ZXP file, and although its signature appears to be valid and correct, it is not timestamped. This means that when the signing certificate expires (which is in less than 3 years), your ZXP's signature will cease to be valid and your extension will not be able to be loaded. I think this is the reason for the signature validation issues.

                       

                      Can you please try re-signing your ZXP by appending " -tsa https://timestamp.geotrust.com/tsa" to your signing command?

                       

                      e.g.

                      ZXPSignCmd -sign my_product my_product.zxp cert.p12 password -tsa https://timestamp.geotrust.com/tsa

                       

                      (This should be possible with either ZXPSignCmd for CC+ or UCF.jar for CS6+)

                       

                      Your product also appears to be a hybrid extension - with a ZXP packaged inside another ZXP. Therefore please make sure that the enclosed internal ZXP is also signed and timestamped in this way.

                       

                      If this doesn't resolve the problem, please share your timestamped ZXP and I will take another look.

                       

                      Best regards,

                      Fraser

                      • 8. Re: error -402 upon installing an extension via Command Line
                        azizrahman Level 1

                        I'm having the same problem with installing Fast Fractions CC for InDesign, although I'm not using a command line.