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

ArrayIndexOutOfBoundsException when launching a script

I've written my own CRS script, deployed it and called the trigger. I get the usual technical error so debugging is needed. However, it appears the error is so deep that it won't even trigger the breakpoint I have on the first line.

So I figured I'd try to get at least to the accept step by doing some client side debugging (open script, set breakpoint, press F5 to go). Now here's what happens:

A window with title "Exception" and text "-1; nexted exception is: java.lang.ArrayIndexOutOfBoundsException: -1" comes up.

Now I'm wondering how the heck I can figure out what is going wrong. Is there any way to see under the hood to see what causes the problem (the script validates just fine and since I never get into the flow I figure it has to be a variable thing.


Re: ArrayIndexOutOfBoundsException when launching a script

After a long phase of trial and error I finally figured it out: my variable mapping from a subflow call was incorrect. How hard would it be to have the validate function also check for a valid mapping?

CreatePlease to create content