Re: sporadic ArrayIndexOutOfBoundsException?
Jordi Salvat i Alabart <[email protected]> Fri, 16 Apr 2004 19:28:37 +0200
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Organization | Art Technology Group |
| Message-ID | <[email protected]> |
Did you use READ_ONLY_MASK when compiling the pattern? Not using it is a frequent source of problems in multi-threaded usage. -- Salut, Jordi. Matt Keveney wrote: > All, > > Using Oro 2.0.3, we're occasionally seeing an > ArrayIndexOutOfBoundsException emanating from > > Perl5Matcher.__match(Perl5Matcher.java:859) > > Or occasionally > > Perl5Matcher.__repeat(Perl5Matcher.java:762) > > This happens only under heavy load & may be related to a threading > issue... my research is very preliminary at this point. > > Before I dive in, has anyone seen this one before? ...I didn't see > anything in release notes or Bugzilla. > > I'm using a static instance of PatternCacheLRU, shared among different > threads... which, I suppose, means that the Patterns that it returns are > potentially shared too. Does anyone know whether these objects are > thread-safe when used in this way? > > -Matt > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >