2014-07-11 1:05 GMT+04:00 Violeta Georgieva <[email protected]>:
> Hi,
>
> I'm receiving the following exception:
>
> [exec] [junit] Jul 10, 2014 11:33:16 PM
> org.apache.coyote.http11.AbstractHttp11Processor process
> [exec] [junit] SEVERE: Error processing request
> [exec] [junit] java.lang.ArrayIndexOutOfBoundsException: -1
> [exec] [junit] at
> org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:785)
The line Mapper.java:785 in 7.0.x is
"contextVersion = contextVersions[versionCount - 1];"
so "versionCount" which is equal to "contextVersions.length" is 0.
Actually I supposed that contextVersions array always has at least one element.
There is a bug in Mapper.removeContextVersion().
326: if (context.versions.length == 0) {
The line was supposed to be "if (newContextVersions.length == 0)".
This explains the zero-length array.
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]