You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by "Sinha, Sahasrangshu(Anshinsoft)" <sa...@anshinsoft.com> on 2007/01/18 15:43:32 UTC

Stack Overflow Error while parsing a long String

Hi,
  We use regexp package in our application. We have encountered an error
while parsing a long string (with over than 8000 characters) as a value
of a tag during SWIFT processing.

encountered exception
java.lang.StackOverflowError
 at org.apache.regexp.StringCharacterIterator.charAt(Unknown Source)
 at org.apache.regexp.RE.matchNodes(Unknown Source)

Is there any environmental remedy required (i.e. increasing Stack size of
JVM) or is it incapability of regexp to parse long string?

Thanks in advance for your valuable comments or suggestion.

Best Regards,
Sahasrangshu


---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Re: Stack Overflow Error while parsing a long String

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Sinha, Sahasrangshu(Anshinsoft) wrote:
> Hi,
>   We use regexp package in our application. We have encountered an error
> while parsing a long string (with over than 8000 characters) as a value
> of a tag during SWIFT processing.
> 
> encountered exception
> java.lang.StackOverflowError
>  at org.apache.regexp.StringCharacterIterator.charAt(Unknown Source)
>  at org.apache.regexp.RE.matchNodes(Unknown Source)
> 
> Is there any environmental remedy required (i.e. increasing Stack size of
> JVM) or is it incapability of regexp to parse long string?

Yes.

> Thanks in advance for your valuable comments or suggestion.

That is a well known issue, details are in Bug #764 [1]

Vadim

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=764


---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org