String index out of range: 3
search cancel

String index out of range: 3

book

Article ID: 195080

calendar_today

Updated On: 10-19-2020

Products

iDash Workload Automation for CA 7

Issue/Introduction

Started receiving error 'String index out of range: 3'. After the bounce of idash the dashboard showed no SLA's. When going to the Catalog -> SLA Management receive error 'There was an error processing your request, please contact your administrator and have them verify the logs. 

20-07-07 17.36.02 [ERROR] sla:com.ca.idash.core.sla.SLAD: String index out of range: 3
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.substring(String.java:2715)
at com.ca.idash.core.sla.SLAWindowDefinition.parseTime(SLAWindowDefinition.java:140)
at com.ca.idash.core.sla.SLAWindowDefinition.<init>(SLAWindowDefinition.java:110)
at com.ca.idash.core.sla.SLAWindowDefinition.getInstance(SLAWindowDefinition.java:69)
at com.ca.idash.core.sla.SLAJobDefinition.<init>(SLAJobDefinition.java:167)
at com.ca.idash.core.sla.SLAD.loadSLADefinitions(SLAD.java:169)
at com.ca.idash.core.sla.SLAD.oneIteration(SLAD.java:216)
at com.ca.idash.core.server.BaseThread.run(BaseThread.java:159)

Environment

Release : 12.1

Component : CA WORKLOAD AUTOMATION iDASH FOR CA 7

Cause

SLA definition contained an incorrect format hh:m for the end deadline. Should be in hh:mm.

10.100.100.10 sla JWMXGRPC_GRSUAT2^CA73A idashAdm idash.sla.1.end.deadline 40:2 1593320600 0 NULL

10.100.100.10 sla JWMXGRPC_GRSUAT2^CA73A idashAdm idash.sla.1.end.deadline 40:20 1593320600 0 NULL

Resolution

Required backend update and idash restart.

update idash_config

SET value = '40:20'

where id = 'JWMXGRPC_GRSUAT2^CA73A'

and tag = 'idash.sla.1.end.deadline'

and deleted = '0'