Error while encrypting Cipher not initialized

Error:

I'm trying to upgrade from 6.0 to 6.1 B2Bi. I'm following your instructions, but what I'm getting is below.

Updating properties file
Error while updating file. Reason: Error while encrypting Error while encrypting Cipher not initialized
Attempting to rollback the file changes.
Error during patch operation: Reason:java.lang.Exception: Error while encrypting Error while encrypting Cipher not initialized
------------------------------------------
Error Stack Trace
------------------------------------------
java.lang.Exception: Error while updating files :Error while encrypting Error while encrypting Cipher not initialized
at com.adeptia.migration.RunMigration.invokePatchOperation(Unknown Source)
at com.adeptia.command.ExportImport.ExportImportCMDUtil.patchOperationFromXML(Unknown Source)
at com.adeptia.Main.main(Unknown Source)
Caused by: java.lang.Exception: Error while encrypting Error while encrypting Cipher not initialized
at com.adeptia.migration.DesEncrypter.encrypt(Unknown Source)
at com.adeptia.migration.MigrationUtil.updateQuatz(Unknown Source)
... 3 more
Caused by: java.lang.Exception: Error while encrypting Cipher not initialized
at com.adeptia.migration.AESEncrypter.encrypt(Unknown Source)
... 5 more
Caused by: java.lang.IllegalStateException: Cipher not initialized
at javax.crypto.Cipher.c(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
... 6 more

 

Cause: The installation directory path you have provided is incorrect

"/Apply-RecoverPatch.sh /usr/local/bin/AdeptiaSuite/AdeptiaSuite-5.3/AdeptiaServer/”

- Note the / at the end of the path

Solution:

Removed the */* after AdeptiaServer from the installation path.

"/Apply-RecoverPatch.sh /usr/local/bin/AdeptiaSuite/AdeptiaSuite-5.3/AdeptiaServer”

 

Note: This issue only occurs while upgrading to Adeptia Suite V6.1 through patch.

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    David Paras

    This also resolved the following error

    ERROR Please provide valid installation directory path.

     

Article is closed for comments.