Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-243

Properly escaping spaces of GORA_HOME in bin/gora

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.4
    • None
    • Mac OS X v.10.8.3
      Java v.1.7.0_17

    Description

      When executing bin/gora in a folder that contains space(s) it fails with the following exception:
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avro/Schema
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
      at java.lang.Class.getMethod0(Class.java:2694)
      at java.lang.Class.getMethod(Class.java:1622)
      at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
      at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
      Caused by: java.lang.ClassNotFoundException: org.apache.avro.Schema
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 6 more

      The problem is the mishandling of spaces when building the CLASSPATH in bin/gora.

      Attachments

        1. GORA-243.patch
          0.5 kB
          Apostolos Giannakidis

        Activity

          People

            ap.giannakidis Apostolos Giannakidis
            ap.giannakidis Apostolos Giannakidis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: