Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13415

java -jar post.jar fails under JDK 11 on master

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: master (9.0)
    • Fix Version/s: master (9.0)
    • Component/s: examples
    • Labels:
      None

      Description

      Most every attempt to use post.jar fails, but the simplest is:

      java -jar post.jar -help
      

      This gives the response:

      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/solr/util/CLIO
          at org.apache.solr.util.SimplePostTool.info(SimplePostTool.java:735)
          at org.apache.solr.util.SimplePostTool.main(SimplePostTool.java:167)
      Caused by: java.lang.ClassNotFoundException: org.apache.solr.util.CLIO
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
          ... 2 more
      

      This is true even though:

      jar -tvf solr-core-9.0.0-SNAPSHOT.jar | grep CLIO
         747 Fri Apr 19 10:40:04 PDT 2019 org/apache/solr/util/CLIO.class
      

      Using

      openjdk version "11.0.2" 2019-01-15
      

        Attachments

        1. SOLR-13415.patch
          0.5 kB
          Uwe Schindler

          Issue Links

            Activity

              People

              • Assignee:
                uschindler Uwe Schindler
                Reporter:
                erickerickson Erick Erickson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: