Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1

run.sh does not correctly handle pathnames containing " " characters

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • 0.4.0
    • None
    • adsal
    • None
    • Operating System: Mac OS
      Platform: PC

    • 3

    Description

      If somewhere in the full path for the location where you are trying to run your controller, you have a path segment with a space, for example:

      /tmp/Development Stuff/distribution.opendaylight-0.1.0-SNAPSHOT-osgipackage/opendaylight

      (note the " " in "Development Stuff" above)

      When you try to execute run.sh, it will fail with the message:

      usage: dirname path
      Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/equinox/launcher/Main
      Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.launcher.Main
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      This failure is occurring due to mishandling of the space in "Development Stuff"

      Still working on fixing... but wanted folks to know ASAP that the workaround is
      to simply do something like

      mv /tmp/Development\ Stuff/ /tmp/DevelopmentStuff

      in other words, kill the space in the path segment.

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            vbhamidipati@ebaysf.com Venkata Siva Vijayendra Bhamidipati
            hagbard Ed Warnicke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: