java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^

SpringSource Issue Tracker | Dmitry Sklyut | 7 years ago
  1. 0

    Example: Excluded-Imports: ${bundle.namespace}.internal Where bundle.namespace is defined as a property in a manven pom for example. Right now this declarations fails with : [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^ [INFO] ------------------------------------------------------------------------ [INFO] Trace java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^ at java.util.regex.Pattern.error(Pattern.java:1713) at java.util.regex.Pattern.closure(Pattern.java:2775) at java.util.regex.Pattern.sequence(Pattern.java:1889) at java.util.regex.Pattern.expr(Pattern.java:1752) at java.util.regex.Pattern.compile(Pattern.java:1460) at java.util.regex.Pattern.<init>(Pattern.java:1133) at java.util.regex.Pattern.compile(Pattern.java:823) at java.util.regex.Pattern.matches(Pattern.java:928) at com.springsource.bundlor.support.MatchUtils.matches(MatchUtils.java:83) at com.springsource.bundlor.support.PartialManifestResolver.isExcluded(PartialManifestResolver.java:156) at com.springsource.bundlor.support.StandardBundleTransformer.removeExcludedPackages(StandardBundleTransformer.java:282) at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:209) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:207) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

    SpringSource Issue Tracker | 7 years ago | Dmitry Sklyut
    java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^
  2. 0

    Example: Excluded-Imports: ${bundle.namespace}.internal Where bundle.namespace is defined as a property in a manven pom for example. Right now this declarations fails with : [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^ [INFO] ------------------------------------------------------------------------ [INFO] Trace java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^ at java.util.regex.Pattern.error(Pattern.java:1713) at java.util.regex.Pattern.closure(Pattern.java:2775) at java.util.regex.Pattern.sequence(Pattern.java:1889) at java.util.regex.Pattern.expr(Pattern.java:1752) at java.util.regex.Pattern.compile(Pattern.java:1460) at java.util.regex.Pattern.<init>(Pattern.java:1133) at java.util.regex.Pattern.compile(Pattern.java:823) at java.util.regex.Pattern.matches(Pattern.java:928) at com.springsource.bundlor.support.MatchUtils.matches(MatchUtils.java:83) at com.springsource.bundlor.support.PartialManifestResolver.isExcluded(PartialManifestResolver.java:156) at com.springsource.bundlor.support.StandardBundleTransformer.removeExcludedPackages(StandardBundleTransformer.java:282) at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:209) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:207) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

    SpringSource Issue Tracker | 7 years ago | Dmitry Sklyut
    java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^
  3. 0

    Hi, I've setup a list of blacklist addresses in JEMH under a profile. One of them were *@emeraldtc.com. This created an error however which I included below. The other problem is that JEMH gave no notification in Auditing except telling me mails were still being processed! Did I lose any mails? How do I rerun the mails? The error: PatternSyntaxException: Dangling meta character '*' near index 0 *@emeraldtc.com ^: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 *@emeraldtc.com ^ at java.util.regex.Pattern.error(Pattern.java:1713) at java.util.regex.Pattern.sequence(Pattern.java:1878) at java.util.regex.Pattern.expr(Pattern.java:1752) at java.util.regex.Pattern.compile(Pattern.java:1460) at java.util.regex.Pattern.(Pattern.java:1133) at java.util.regex.Pattern.compile(Pattern.java:823) at java.util.regex.Pattern.matches(Pattern.java:928) at com.javahollic.jira.emh.engine.support.RegexUtil.isRegexpMatch(RegexUtil.java:27) at com.javahollic.jira.emh.module.msgfilter.WhiteGreyBlackListingFilter.checkBlackAndWhitelisting(WhiteGreyBlackListingFilter.java:290) at com.javahollic.jira.emh.module.msgfilter.WhiteGreyBlackListingFilter.filter(WhiteGreyBlackListingFilter.java:74) at com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:67) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:850)

    JIRA | 3 years ago | Danie Jordaan
    java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 *@emeraldtc.com ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Dangling meta character exception

    Oracle Community | 1 decade ago | 420049
    java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 +20019G KRUEGER RENATE.* ^
  6. 0

    [Neo4j] bdb-index

    Google Groups | 5 years ago | Niels Hoogeveen
    java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${bundle\.namespace}\.impl\..*|${bundle\.namespace}\.impl ^

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.regex.PatternSyntaxException

      Illegal repetition near index 0 ${bundle\.namespace}\.internal(\.)?(.*)? ^

      at java.util.regex.Pattern.error()
    2. Java RT
      Pattern.matches
      1. java.util.regex.Pattern.error(Pattern.java:1713)
      2. java.util.regex.Pattern.closure(Pattern.java:2775)
      3. java.util.regex.Pattern.sequence(Pattern.java:1889)
      4. java.util.regex.Pattern.expr(Pattern.java:1752)
      5. java.util.regex.Pattern.compile(Pattern.java:1460)
      6. java.util.regex.Pattern.<init>(Pattern.java:1133)
      7. java.util.regex.Pattern.compile(Pattern.java:823)
      8. java.util.regex.Pattern.matches(Pattern.java:928)
      8 frames
    3. com.springsource.bundlor
      AbstractBundlorMojo.execute
      1. com.springsource.bundlor.support.MatchUtils.matches(MatchUtils.java:83)
      2. com.springsource.bundlor.support.PartialManifestResolver.isExcluded(PartialManifestResolver.java:156)
      3. com.springsource.bundlor.support.StandardBundleTransformer.removeExcludedPackages(StandardBundleTransformer.java:282)
      4. com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:209)
      5. com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:207)
      5 frames
    4. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
      1 frame
    5. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
      8 frames
    6. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      1 frame
    7. org.apache.maven
      CompatibleMain.main
      1. org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames