On 28/04/2010 10:03, Konstantin Kolinko wrote:
> 2010/4/28 Pid <p...@pidster.com>:
>> On 28/04/2010 03:29, Ivan wrote:
>>> I still get the java.lang.ArrayIndexOutOfBoundsException, i think that it
>>> should be
>>
>> What causes the ArrayIndexOutOfBoundsException?  I was testing
>> dynamically adding a Filter after that change, (inside a
>> ServletContextListener.contextInitialized() method), and it was working,
>> but throwing a different exception when a second filter is added before
>> hand:
>>
> 
> Should be fixed in r938814
> 
> Ivan is right.
> 
> filterMaps.length - (filterMapInsertPoint + 1)  is essentially the
> count of characters, but we need a position in that argument.
> 
> 
>> java.lang.IllegalArgumentException: Filter mapping specifies an unknown
>> filter name null
>>        at
>> org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:2650)
> 
> validateFilterMap() is called before any manipulations with the
> filters array, so you have no chance of seeing that AIOOB exception
> until you pass this one.

Ahh, yes. Got it.

Patch submitted to fix the exception I mentioned above.


p



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to