You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-user@jakarta.apache.org by Celestino Bellone <ce...@sda.it> on 2003/06/23 15:30:56 UTC
problem with massive use
Hi everybody
I've developed (with my colleagues) a RE-based java class (named
CalcoloCodice) that evaluates a string and returns a "code" strictly
dependentent on the string.
The class contains different static String arrays (the expressions) that,
via a static initializer, are converted into RE arrays.
At runtime, the application calls a CalcoloCodice's static method that calls
the match() method for every regexp until a code is found (and exits if
anything is found) returning the result code.
Occasionally (with no apparent reason), when there are a lot of users that
uses the application, the following exception are trown by RE class:
java.lang.StringIndexOutOfBoundsException: String index out of range: 7
at java.lang.String.charAt(String.java:516)
at
org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.jav
a:90)
at org.apache.regexp.RE.matchNodes(RE.java:1209)
at org.apache.regexp.RE.matchAt(RE.java:1448)
at org.apache.regexp.RE.match(RE.java:1498)
at org.apache.regexp.RE.match(RE.java:1468)
at org.apache.regexp.RE.match(RE.java:1561)
There are some people that can help me?
Thanks a lot in advance
Celestino
P.S.: excuse me for my poor English... ;-)
---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org