You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by Matt Keveney <ma...@nimblefish.com> on 2004/04/16 18:43:43 UTC
sporadic ArrayIndexOutOfBoundsException?
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: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org
Re: sporadic ArrayIndexOutOfBoundsException?
Posted by Jordi Salvat i Alabart <js...@atg.com>.
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: oro-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: oro-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org