Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3173

Local OBR install failes when there is a space in the full path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • maven-bundle-plugin-2.3.6
    • Maven Bundle Plugin
    • None

    Description

      Testing with the 2.4.0-SNAPSHOT, 2.4.0-20111017.223737-10 to be exact, I get the following error. Seems the local OBR install fails because it does not like the space in the path.

      [WARNING] Exception while updating local OBR: java.net.URISyntaxException: Illegal character in path at index 21: file:/C:/bramk/Apache Maven/local-repository/o
      rg/amdatu/core/org.amdatu.core.tenant/0.2.1-SNAPSHOT/org.amdatu.core.tenant-0.2.1-SNAPSHOT.jar
      java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 21: file:/C:/bramk/Apache Maven/local-repository/org/amdatu/core/org
      .amdatu.core.tenant/0.2.1-SNAPSHOT/org.amdatu.core.tenant-0.2.1-SNAPSHOT.jar
              at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.createResource(DataModelHelperImpl.java:486)
              at org.apache.felix.obrplugin.ObrUpdate.updateRepository(ObrUpdate.java:195)
              at org.apache.felix.obrplugin.ObrInstall.updateLocalBundleMetadata(ObrInstall.java:184)
              at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:143)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
              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)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 21: file:/C:/bramk/Apache Maven/local-repository/org/amdatu/core/org.amdatu.core.tena
      nt/0.2.1-SNAPSHOT/org.amdatu.core.tenant-0.2.1-SNAPSHOT.jar
              at java.net.URI$Parser.fail(URI.java:2809)
              at java.net.URI$Parser.checkChars(URI.java:2982)
              at java.net.URI$Parser.parseHierarchical(URI.java:3066)
              at java.net.URI$Parser.parse(URI.java:3014)
              at java.net.URI.<init>(URI.java:578)
              at java.net.URL.toURI(URL.java:918)
              at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.createResource(DataModelHelperImpl.java:483)
              ... 22 more
      

      Attachments

        Activity

          People

            mcculls Stuart McCulloch
            bramk Bram de Kruijff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: