Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3.1, 4.4, 6.0
    • Component/s: scripts and tools
    • Labels:
      None

      Description

      On a system with GNU java installed the fact that zkcli.sh doesn't honor JAVA_HOME could lead to hard to diagnose failure:

      Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.solr.cloud.ZkCLI
         at gnu.java.lang.MainThread.run(libgcj.so.7rh)
      Caused by: java.lang.ClassNotFoundException: org.apache.solr.cloud.ZkCLI not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
         at java.net.URLClassLoader.findClass(libgcj.so.7rh)
         at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
         at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
         at gnu.java.lang.MainThread.run(libgcj.so.7rh)
      
      
      1. SOLR-4796.patch.txt
        0.5 kB
        Roman Shaposhnik

        Activity

        Hide
        Roman Shaposhnik added a comment -

        Tiny, trivial patch attached.

        Show
        Roman Shaposhnik added a comment - Tiny, trivial patch attached.
        Hide
        Mark Miller added a comment -

        I've tested this - seems to work as expected with or without a JAVA_HOME env variable set. I'll commit shortly.

        Show
        Mark Miller added a comment - I've tested this - seems to work as expected with or without a JAVA_HOME env variable set. I'll commit shortly.
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] markrmiller
        http://svn.apache.org/viewvc?view=revision&revision=1481753

        SOLR-4796: zkcli.sh should honor JAVA_HOME

        Show
        Commit Tag Bot added a comment - [trunk commit] markrmiller http://svn.apache.org/viewvc?view=revision&revision=1481753 SOLR-4796 : zkcli.sh should honor JAVA_HOME
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] markrmiller
        http://svn.apache.org/viewvc?view=revision&revision=1481757

        SOLR-4796: zkcli.sh should honor JAVA_HOME

        Show
        Commit Tag Bot added a comment - [branch_4x commit] markrmiller http://svn.apache.org/viewvc?view=revision&revision=1481757 SOLR-4796 : zkcli.sh should honor JAVA_HOME
        Hide
        Mark Miller added a comment -

        Thanks Roman!

        Show
        Mark Miller added a comment - Thanks Roman!
        Hide
        Shalin Shekhar Mangar added a comment -

        I'll backport this to 4.3.1 if there are no objections.

        Show
        Shalin Shekhar Mangar added a comment - I'll backport this to 4.3.1 if there are no objections.
        Hide
        Shalin Shekhar Mangar added a comment -

        Backported to 4.3.1 r1483666.

        Show
        Shalin Shekhar Mangar added a comment - Backported to 4.3.1 r1483666.
        Hide
        Shalin Shekhar Mangar added a comment -

        Bulk close after 4.3.1 release

        Show
        Shalin Shekhar Mangar added a comment - Bulk close after 4.3.1 release

          People

          • Assignee:
            Mark Miller
            Reporter:
            Roman Shaposhnik
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development