Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10290 New Publication Model for Solr Reference Guide
  3. SOLR-10355

ref-guide "ant build-pdf" fails with jdk9 due to jigsaw blocking jruby

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • documentation

    Description

      on the jira/solr-10290 branch ant build-pdf fails with jdk9...

      build-nav-data-files:
           [java] Building up tree of all known pages
           [java] Exception in thread "main" org.jruby.exceptions.RaiseException: (LoadError) load error: jruby/java/java_ext/java.lang -- java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not "opens java.lang" to unnamed module @47e4d9d0
           [java] 	at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
           [java] 	at RUBY.(root)(file:/home/hossman/.ivy2/cache/org.asciidoctor/asciidoctor-ant/jars/asciidoctor-ant-1.5.3.jar!/jruby/java/java_ext.rb:3)
           [java] 	at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
      ...
           [java] 	at org.jruby.Ruby.init(Ruby.java:1258)
           [java] 	at org.jruby.Ruby.newInstance(Ruby.java:334)
           [java] 	at org.jruby.javasupport.JavaEmbedUtils.initialize(JavaEmbedUtils.java:94)
           [java] 	at org.asciidoctor.internal.JRubyAsciidoctor.createJRubyAsciidoctorInstance(JRubyAsciidoctor.java:126)
           [java] 	at org.asciidoctor.internal.JRubyAsciidoctor.create(JRubyAsciidoctor.java:57)
           [java] 	at org.asciidoctor.Asciidoctor$Factory.create(Asciidoctor.java:668)
           [java] 	at BuildNavAndPDFBody.main(BuildNavAndPDFBody.java:33)
      

      ...it's possible that this is already fixed in current versions of jruby, but not in the version shadded by the asciidoctor-ant-1.5.3.jar we are using

      Attachments

        Activity

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: