Bug 17221 - Internal error in RECompiler
Summary: Internal error in RECompiler
Status: CLOSED WORKSFORME
Alias: None
Product: Regexp
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other AIX
: P3 critical (vote)
Target Milestone: ---
Assignee: Jakarta Notifications Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 21:15 UTC by Chris
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2003-02-19 21:15:10 UTC
Am using RE to do some sipmle edits in an EJB running under WAS 3.5.4 on AIX 
4.3.3,  JDK version is 1.2.2.  The regular expression that I am using is ^\d+$  
The code creating it is straight forward, RE re = new RE("^\d+$");  This is the 
excpetion that i am getting

An error occurred while processing your request : Unknown error:
Internal error! : java.lang.Error: Internal error!
02-19-2003 14:38:50.752 : ERROR : Internal error!
java.lang.Error: Internal error!
    at org.apache.regexp.RECompiler.internalError(RECompiler.java:244)
    at org.apache.regexp.RECompiler.atom(RECompiler.java(Compiled Code))
    at org.apache.regexp.RECompiler.terminal(RECompiler.java(Compiled Code))
    at org.apache.regexp.RECompiler.closure(RECompiler.java(Compiled Code))
    at org.apache.regexp.RECompiler.branch(RECompiler.java(Compiled Code))
    at org.apache.regexp.RECompiler.expr(RECompiler.java(Compiled Code))
    at org.apache.regexp.RECompiler.compile(RECompiler.java:1281)
    at org.apache.regexp.RE.<init>(RE.java:495)
    at org.apache.regexp.RE.<init>(RE.java:480)

The weird thing is that it usually runs for awhile just fine.  After running 
for a period of time, a couple of hours or so, this exception starts popping 
up.  Once i get this error, it occurs everytime i try to create this regular 
expression.  I stop and restart my application server hosting my EJB and it 
starts working again.  A few hours pass, and this exception starts again.
Comment 1 Chris 2003-02-19 21:21:24 UTC
One correction to my bug description, the regular expression is being loaded 
from a property file.  The regular expression is ^\d+$, but would be different 
in code statement, RE re = new RE("^\\d+$");  
Comment 2 Vadim Gritsenko 2003-08-27 14:26:23 UTC
RECompiler was modified since release 1.2. Please download CVS version and test
against it.

It would also help immensely if you can create standalone unit test reproducing
the issue. As you described your situation, bug cannot be reproduced, and thus,
fixed, so I'll mark it as WORKSFORME for now.