Error "Unable to decrypt property lisa.http.user.encrypted: Odd number of characters" While playing back a virtual service

Document ID : KB000047130
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue/Problem/Symptoms:

- Virtualised a Web Service over https. Deployed the VS and during play back, it failed throwing the warning below in the workstation.log

WARN com.itko.lisa.test.TestExec - Unable to decrypt property lisa.http.user.encrypted: Odd number of characters. 
org.apache.commons.codec.DecoderException: Odd number of characters. 
at org.apache.commons.codec.binary.Hex.decodeHex(Hex.java:82) 
at com.itko.util.AESCrypto.decrypt(AESCrypto.java:36) 
at com.itko.lisa.test.TestExec.decryptValue(TestExec.java:1470) 
at com.itko.lisa.test.TestExec.getStateObject(TestExec.java:1445) 
at com.itko.lisa.test.TestExec.getStateObject(TestExec.java:1364) 
at com.itko.lisa.test.TestExec.getStateObject(TestExec.java:1381) 

Environment:

- DevTest 9.1

Cause:

- The properties “lisa.http.user” and “lisa.http.password” have been supplied with incorrect credentials.

- This can also happen if the user name or password has an extra space or a typo causing invalid length for the encrypted string

Resolution/Workaround:

 

- Check all the DevTest property files and the custom code (if any) to verify where these properties are supplied and ensure the username and password provided is correct without any typos of spaces. Ensure to check the above on all the machines where DevTest is distributed on.