Fail to start TRA hawkagent after install Hawk 6.2.1

Fail to start TRA hawkagent after install Hawk 6.2.1

book

Article ID: KB0071846

calendar_today

Updated On:

Products Versions
TIBCO Hawk 6.2.1

Description

After install full version of Hawk 6.2.1 on top of TRA 5.12, EMS based domain hawkagent fails to start with the error below:

COM.TIBCO.hawk.util.security.HawkSecurityException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
        at COM.TIBCO.hawk.util.security.ObfuscationEngine.decrypt(ObfuscationEngine.java:58)
        at COM.TIBCO.hawk.util.security.PasswordObfuscation.decrypt(PasswordObfuscation.java:147)
        at COM.TIBCO.hawk.util.tibems.TransportFactory.createTibrvJMSTransport(TransportFactory.java:110)
......
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
......
        at COM.TIBCO.hawk.util.security.ObfuscationEngine.decrypt(ObfuscationEngine.java:55)
        ... 10 more

OR        
        
COM.TIBCO.hawk.util.security.HawkSecurityException: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
        at COM.TIBCO.hawk.util.security.ObfuscationEngine.decrypt(ObfuscationEngine.java:58)
        at COM.TIBCO.hawk.util.security.PasswordObfuscation.decrypt(PasswordObfuscation.java:147)
        at COM.TIBCO.hawk.util.tibems.TransportFactory.createTibrvJMSTransport(TransportFactory.java:110)
......
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
......
        at COM.TIBCO.hawk.util.security.ObfuscationEngine.decrypt(ObfuscationEngine.java:55)
        ... 16 more    

Environment

All

Resolution

This issue is caused by the incompatible library between full version of Hawk 6.2.1 and TRA 5.12. We are working on a fix for this issue.

Please apply the workaround below before we have a fix for this issue:
-. Generate a new encrypted EMS password with tibhawkpassword from cfgmgmt/hawk/bin directory of Hawk 6.2.1, and replace the EMS password for "-ems_transport" in tra/domain/<domainName>/hawkagent.cfg.

For other working machine, please don't install full version of Hawk 6.2.1 in the same TIBCO_HOME of TRA 5.12 till we have a fix for issue. In case features from full version of Hawk is needed, you can install Hawk 6.2.1 in a different TIBCO_HOME. 

Issue/Introduction

Fail to start TRA hawkagent after install Hawk 6.2.1

Additional Information

HK-10129