java.util.regex.PatternSyntaxException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Dmitry Sklyut,
  • 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)
    via by Dmitry Sklyut,
  • Dangling meta character exception
    via by 420049,
  • Excel Input, Wildcard is specified as: .*.xls Show filenames... produces a list of two file names Preview rows though throws an exception: 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : org.apache.commons.vfs.FileSystemException: Could not find files in "file:///D:/Blackduck Info/New Reports/4.8.0-ni/Excel". 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.apache.commons.vfs.provider.AbstractFileObject.findFiles(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.apache.commons.vfs.provider.AbstractFileObject.findFiles(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.core.fileinput.FileInputList.createFileList(FileInputList.java:211) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.core.fileinput.FileInputList.createFilePathList(FileInputList.java:134) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.core.fileinput.FileInputList.createFilePathList(FileInputList.java:128) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.trans.steps.excelinput.ExcelInputMeta.getFilePaths(ExcelInputMeta.java:1255) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.trans.steps.excelinput.ExcelInputDialog.showFiles(ExcelInputDialog.java:1993) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.trans.steps.excelinput.ExcelInputDialog.access$1300(ExcelInputDialog.java:98) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.trans.steps.excelinput.ExcelInputDialog$14.widgetSelected(ExcelInputDialog.java:1084) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.trans.steps.excelinput.ExcelInputDialog.open(ExcelInputDialog.java:1184) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:136) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7754) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2756) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:705) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1183) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6966) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:567) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.lang.reflect.Method.invoke(Method.java:597) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : Caused by: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : *.xls 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : ^ 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.util.regex.Pattern.error(Pattern.java:1713) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.util.regex.Pattern.sequence(Pattern.java:1878) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.util.regex.Pattern.expr(Pattern.java:1752) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.util.regex.Pattern.compile(Pattern.java:1460) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.util.regex.Pattern.<init>(Pattern.java:1133) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.util.regex.Pattern.compile(Pattern.java:823) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at java.util.regex.Pattern.matches(Pattern.java:928) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.pentaho.di.core.fileinput.FileInputList$1.includeFile(FileInputList.java:233) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.apache.commons.vfs.provider.AbstractFileObject.traverse(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : at org.apache.commons.vfs.provider.AbstractFileObject.traverse(Unknown Source) 2012/09/24 08:09:53 - FileInputList - ERROR (version 4.3.0-GA, build 16753 from 2012-04-18 21.39.30 by buildguy) : ... 32 more Additionally, changing the expression to: .+.xls Which also shows the two files I'm interested in processing with Show filenames... doesn't make any difference to preview. Preview still shows the Dangling meta character '*' exception even though there's no longer an asterisk in the pattern. Indeed, saving the file, closing, and reloading doesn't change the exception. It still insists that I'm looking for a pattern starting with an asterisk.
    via by Marc Batchelor,
  • Error
    via GitHub by TurKurT656
    ,
  • java error for extraction
    via by deepika deepi,
    • 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)

    Users with the same issue

    osvzsosvzs
    12 times, last one,
    Andreas HäberAndreas Häber
    1 times, last one,
    olle.hallinolle.hallin
    1 times, last one,
    CasperCasper
    2 times, last one,
    DunmerDunmer
    14 times, last one,
    22 more bugmates