Instead, I get java.lang.ArrayIndexOutOfBoundsException.
I was testing this on 9.2.3.
Also a side question, is there a way to rewrite this query so not all DBs are locked? I get lock: global. I would like to lock only DBs that start with 'index-prompt-'