When you reuse a variable in a template (e.g.
router.attach("/{p1}/{p1}/foo",MyResource.class);), you get this exception
when you try to GET the URI:
java.util.regex.PatternSyntaxException: Illegal octal escape sequence near
index 90
/((?:[a-zA-Z0-9\-\.\_\~]|\ [ -- stuff deleted --] +\,\;\=]|\:|\@)+)/\0/foo
^
Apparently, util.regex doesn't like the '\0' you're adding to the regexp when
a variable is reused.
-Vincent.

