The EncodeURLTransformer was modified to use java.util.regexp instead of Apache regexp. Tests showed it is significantly faster and I was experiencing extremely deep stacks on calls to matchNodes (although I never actually got a StackOverflow). Although you have bypassed the problem it probably would make sense to modify the matcher as well.

Ralph

Christian Schlichtherle wrote:
Hi,
I am trying to use the regexp matcher in a sitemap to match an optional file
name extension like this:
<map:match type="regexp" pattern="(.*)(\..*)">
   <!-- ... -->
</map:match>

But all I get is a stack overflow:
java.lang.StackOverflowError
  org.apache.regexp.RE.matchNodes(Unknown Source)
  org.apache.regexp.RE.matchNodes(Unknown Source)
  ...

Same applies to:

<map:match type="regexp" pattern="com/bets4all/(.+)(\..*)?">

If I rewrite the pattern to:

<map:match type="regexp" pattern="(.+)(\..+)">

I get this:

java.lang.StackOverflowError
  java.util.HashMap.getEntry(HashMap.java:344)
  java.util.HashMap.containsKey(HashMap.java:335)
org.apache.cocoon.environment.wrapper.RequestParameters.getParameterValues(R
equestParameters.java:144)
org.apache.cocoon.environment.wrapper.RequestWrapper.getParameterValues(Requ
estWrapper.java:161)
org.apache.cocoon.environment.wrapper.RequestWrapper.getParameterValues(Requ
estWrapper.java:162)
org.apache.cocoon.environment.wrapper.RequestWrapper.getParameterValues(Requ
estWrapper.java:162)
  ...

Is this a bug or am I doing something wrong?
Kind regards,
Christian Schlichtherle


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to