Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

CRS java.lang.ArrayIndexOutOfBoundsException: 0 >= 0

Greetings,

I am facing a problem with a CRS script (this is IP IVR 5.0); I have created a subflow which in essence does 2 things:

1. Construct a valid DateTime value (e.g. 2012-08-09 14:15:16)

2. Write this DateTime value to an SQL 2000 database with 3 accompanying values 

When debugging the subflow itself, no problems occur.

When debugging the calling script, I continuously receive the error:

0 >= 0; nested exception is:

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0

I have narrowed this down to the DB Write step (e.g. skipping over the DB Write step with goto/label yields no errors at all).

I have created an ODBC source pointing to the database. I have created a database in the IVR web interface. Refresh Database Schema is successfull. Tables are viewable on the 2nd tab of the DB Write step.

Any help regarding this issue is greatly appreciated

Everyone's tags (4)
2 REPLIES

CRS java.lang.ArrayIndexOutOfBoundsException: 0 >= 0

Hi,

the exception implies you are trying to reference a value in a variable with an invalid index.

Can you please describe that DB Write step - a screenshot of it would be helpful, too.

G.

New Member

CRS java.lang.ArrayIndexOutOfBoundsException: 0 >= 0

Sorry, just found it.

I was updating a table with a SQL statement that also referenced the database. So instead of just:

"INSERT INTO tablename (datetime, bla) VALUES ($datetime, $bla)"

I was using:

"INSERT INTO database.dbo.tablename (datetime, bla) VALUES ($datetime, $bla)"

I changed it and now it works without errors.

971
Views
0
Helpful
2
Replies
CreatePlease to create content