Product : Control Hub On prem
Question:
When trying to run Control Hub On-Prem commands to generate the system ID from the CLI, one might receive a “java.lang.StringIndexOutOfBoundsException: String index out of range: -5” error.
Answer:
There are two reasons one might receive this error.
- Missing Environment Variables
The DPM environment variables may not have been initialized. Check to see if your $DPM_HOME and $DPM_CONF have been configured by running “echo DPM_< insert variable>”.
If the variables have not been configured, one can set the variables by running the sample command below mentioned below:
- export DPM_CONF=<configuration directory>
- export DPM_HOME=<home directory>
- Error in the database connection string
The database connection strings or credentials in either the security-app.properties or common-to-all-app.properties may be incorrect. Check the database by using the credentials and connection strings to see if one is able to connect.