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.
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+$");
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.