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: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name null at org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:2650) at org.apache.catalina.core.StandardContext.addFilterMapBefore(StandardContext.java:2622) at org.apache.catalina.core.ApplicationFilterRegistration.addMappingForUrlPatterns(ApplicationFilterRegistration.java:102) at org.pidster.tomcat.test7.dyn.TestDynamicsListener.contextInitialized(TestDynamicsListener.java:105) p > filterMapInsertPoint + 1, > > ---> > System.arraycopy(filterMaps, filterMapInsertPoint, results, > filterMapInsertPoint + 1, > filterMaps.length - filterMapInsertPoint); > <--- > 2010/4/26 Giulio Quaresima <giulio.quares...@unipg.it> > >> You need more coffee ;) >> 100 - (10 + 1) is algebraically equivalent to 100 - 10 - 1 >> >> >> Tim Funk wrote: >> >>> <slap forehead='mine'>Got it</slap> >>> >>> thanks >>> >>> -Tim >>> >>> On 4/26/2010 6:36 AM, Mark Thomas wrote: >>> >>>> On 26/04/2010 11:33, Tim Funk wrote: >>>> >>>>> I'm feeling stupid at the moment. (Or need more coffee) But why do the >>>>> parenthesis make a difference? (Since only addition/subtraction is done >>>>> and no multiplication - I can't tell why this fixes it) >>>>> >>>> >>>> 100 - 10 + 1 = 91 >>>> 100 - (10 + 1) = 89 >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: dev-h...@tomcat.apache.org >>> >>> >>> >>> >> -- >> ************************************************* >> * Dott. Giulio Quaresima (Ph.D) * >> * * >> * Area Reti e Servizi Web * >> * Ripartizione Servizi Informatici e Statistici * >> * Università degli Studi di Perugia * >> * P.zza Università 1 - 06081 Perugia (PG) * >> * Tel. 075 585 5183 - 075 585 5172 * >> * Fax 075 585 5172 * >> * e-mail giulio.quares...@unipg.it * >> ************************************************* >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: dev-h...@tomcat.apache.org >> >> > >
signature.asc
Description: OpenPGP digital signature