I am getting this error when I attempt to read from my database
Expand|Select|Wrap|Line Numbers
- Wrapped java.lang.ArrayIndexOutOfBoundsException: -1
Expand|Select|Wrap|Line Numbers
- if (rst.EOF == true) { blnExists = false; } else { blnExists = true; }
- 108: //If Patient is in Temp Locate table and if TL account is an SDC account
- 109: //Need to use a nested if to avoid an error if patient isn't in the database
- 110: logger.error("TEST AWARE ORU: blnExists = " + blnExists);
- 111: if (blnExists == true) {
- 112: logger.error("TEST AWARE ORU : " + rst.getString('PtAcct'));
- 113: if (rst.getString("PtAcct").charAt(0) == "A") {
- 114: msg['PID']['PID.18']['PID.18.1'].toString() == rst.getString('PtAcct');
- 115: }
- 116: }
- LINE NUMBER: 112
- DETAILS: Wrapped java.lang.ArrayIndexOutOfBoundsException: -1
Can anyone help? I've been working on this for a day and a half with no luck.