java.util.regex.PatternSyntaxException: Regex should be formatted as regex:<regular-expression>:<parameterized-string> near index 0 regex:(.+)@test ^

james-server-dev | Apache Jenkins Server | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Build failed in Jenkins: james-server-trunk » Apache James :: Server :: Data :: HBase Persistence #4849

    james-server-dev | 2 years ago | Apache Jenkins Server
    java.util.regex.PatternSyntaxException: Regex should be formatted as regex:<regular-expression>:<parameterized-string> near index 0 regex:(.+)@test ^
  2. 0

    Build failed in Jenkins: james-server-trunk » Apache James :: Server :: Data :: HBase Persistence #4907

    james-server-dev | 2 years ago | Apache Jenkins Server
    java.util.regex.PatternSyntaxException: Regex should be formatted as regex:<regular-expression>:<parameterized-string> near index 0 regex:(.+)@test ^

    Root Cause Analysis

    1. java.util.regex.PatternSyntaxException

      Regex should be formatted as regex:<regular-expression>:<parameterized-string> near index 0 regex:(.+)@test ^

      at org.apache.james.rrt.lib.RecipientRewriteTableUtil.regexMap()
    2. org.apache.james
      AbstractRecipientRewriteTableTest.testStoreAndRetrieveRegexMapping
      1. org.apache.james.rrt.lib.RecipientRewriteTableUtil.regexMap(RecipientRewriteTableUtil.java:67)
      2. org.apache.james.rrt.lib.AbstractRecipientRewriteTable.getMappings(AbstractRecipientRewriteTable.java:137)
      3. org.apache.james.rrt.lib.AbstractRecipientRewriteTable.getMappings(AbstractRecipientRewriteTable.java:114)
      4. org.apache.james.rrt.lib.AbstractRecipientRewriteTableTest.testStoreAndRetrieveRegexMapping(AbstractRecipientRewriteTableTest.java:96)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      15. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      15 frames
    5. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    7. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
      2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:158)
      3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
      4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
      5 frames