Skip to main content

Unable to generate system ID with "java.lang.StringIndexOutOfBoundsException: String index out of range: -5”

  • December 3, 2021
  • 0 replies
  • 316 views

Sami
StreamSets Employee
  • StreamSets Employee

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. 

  1. 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>
  1. 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.

Did this topic help you find an answer to your question?
This topic has been closed for comments