search cancel

CA TDM Portal 4.9.432 Receiving Error Generating Password Using EncryptionUtil.bat

book

Article ID: 243405

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

CA TDM Portal 4.9.432: Received the following error trying to generate password using EncryptionUtil.bat. Ran as administrator from command line. 

X:\Program Files\CA\CA Test Data Manager Portal\service\bin>.\EncryptionUtil.bat -p
8 was unexpected at this time.

X:\Program Files\CA\CA Test Data Manager Portal\service\bin>.\EncryptionUtil.bat 
8 was unexpected at this time.

Cause

JAVA installed on TDM server was uninstalled due to security reasons but the registry entry for JAVA is still pointing to that uninstalled folder/version.

Environment

Release : 4.9.1

Component : Test Data Manager - Other

Resolution

It was a problem with the machine and with corrupted Java installation in particular - missing registry key. So its required to use Portal JRE for example with these commands:

cd "X:\\Program Files\\CA\\CA Test Data Manager Portal\\service\\bin"

..\\..\\jre\\bin\\java -classpath ../lib/* com.ca.tdm.security.EncryptionUtil -p

The other option is to look in your registry for JAVA and modify the entries to point to the JRE being used.

However, this is fixed as part of updated EncryptionUtil for future builds from 6/8/2022.