ArrayIndexOOB with long first query line
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
If the first line of an XQuery query exceeds 100
characters, or contains an unbroken string of more than
100 characters with no intervening whitespace, an
ArrayIndexOutOfBounds exception occurs.
(This is happening while Saxon's pre-scanner searches
for the XQuery encoding declaration, which needs to be
located before parsing proper can start.)
Circumvention: include some whitespace in the first 100
characters of the query.
Michael Kay
http://www.saxonica.com/