My Oracle Support Banner

Error: "String Index out of range: 159 ... Function getColor did not return a value" When Saving Project Dates in Instantis EnterpriseTrack (Doc ID 2447881.1)

Last updated on MARCH 15, 2019

Applies to:

Instantis EnterpriseTrack - Version 17.1 and later
Instantis EnterpriseTrack Cloud Service - Version 17.1 to 18.8 [Release 17.1 to 18.8]
Information in this document applies to any platform.

Symptoms

When attempting to save Project Dates, the application displays the following error:

"The form you submitted contains input errors.
Please review the errors shown, click the Back button below, and try again.
Evaluation exception during submission."

ViewDebugLog displays:

USER MISTAKE TRACE:
java.lang.reflect.InvocationTargetException
...
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: 159
at java.lang.String.substring(String.java:1963)
... 61 more
- Expr:  COLORS.substring( index * 8 , index * 8 + 7 )
- BPB:Body of function /report2/components/timeline/PageServer/getColor
- Function /report2/components/timeline/PageServer/getColor
- Expr: invoke("getColor", index)
- DCT:Body of function
/report2/components/timeline/PageServer/generateCDL_timeline
- Function /report2/components/timeline/PageServer/generateCDL_timeline
- Expr: cdlFile =
withOutputToFile(invoke('report2/components/timeline/pageserver/generateCDL_ti
meline',crntproj,'700','200','true','true','true','true'),
"text/escaped-unicode")
- DCT:DCT::projtimeline_page
>}
2018-07-03 11:44:06.465: RID=M32LL3TNLCH7D SiteWand Context:
  Expr:  COLORS.substring( index * 8 , index * 8 + 7 )
  BPB:Body of function /report2/components/timeline/PageServer/getColor
  Function /report2/components/timeline/PageServer/getColor
  Expr: invoke("getColor", index)
  DCT:Body of function
/report2/components/timeline/PageServer/generateCDL_timeline
  Function /report2/components/timeline/PageServer/generateCDL_timeline
  Expr: cdlFile =
withOutputToFile(invoke('report2/components/timeline/pageserver/generateCDL_ti
meline',crntproj,'700','200','true','true','true','true'),
"text/escaped-unicode")
  DCT:DCT::projtimeline_page
2018-07-03
11:44:06.465:ajp-nio-7711-exec-9:instantis/toshiba_8985:dct.DCT:USER MISTAKE
DETAILS: {<
USER MISTAKE TRACE:
Exception thrown during callout invocation of public java.lang.String
java.lang.String.substring(int,int):
java.lang.StringIndexOutOfBoundsException: String index out of range: 159 in
expression [ COLORS.substring( index * 8 , index * 8 + 7 )]
...
- BPB:Body of function /report2/components/timeline/PageServer/getColor
- Function /report2/components/timeline/PageServer/getColor
- Expr: invoke("getColor", index)
- DCT:Body of function
/report2/components/timeline/PageServer/generateCDL_timeline
- Function /report2/components/timeline/PageServer/generateCDL_timeline
- Expr: cdlFile =
withOutputToFile(invoke('report2/components/timeline/pageserver/generateCDL_ti
meline',crntproj,'700','200','true','true','true','true'),
"text/escaped-unicode")
- DCT:DCT::projtimeline_page
>}
2018-07-03
11:44:06.465:ajp-nio-7711-exec-9:instantis/toshiba_8985:dct.DCT:USER MISTAKE
DETAILS: {<
USER MISTAKE TRACE:
Function getColor did not return a value.
...
- Function /report2/components/timeline/PageServer/getColor
- Expr: invoke("getColor", index)
- DCT:Body of function
/report2/components/timeline/PageServer/generateCDL_timeline
- Function /report2/components/timeline/PageServer/generateCDL_timeline
- Expr: cdlFile =
withOutputToFile(invoke('report2/components/timeline/pageserver/generateCDL_ti
meline',crntproj,'700','200','true','true','true','true'),
"text/escaped-unicode")
- DCT:DCT::projtimeline_page
>}

STEPS TO REPRODUCE:

  1. Log in to the EnterpriseTrack application as sys_admin
  2. Navigate to project
  3. Attempt to Complete Project and receive "Phase (Realization) Start Date is mandatory" even though data patch was applied.
  4. Go to Edit > Dates > Project Dates
  5. Attempt to Save without making any changes
  6. Receive error: "The form you submitted contains input errors. Please review the errors shown, click the Back button below, and try again. Evaluation exception during submission."

EXPECTED OUTCOME:
The project dates should save without the input error, and then subsequently, the user should be able to Complete the project without the phase date error.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.