org.asciidoctor.internal.AsciidoctorCoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 3#249610815
    via GitHub by robertpanzer
    ,
  • GitHub comment 402#153508539
    via GitHub by johncarl81
    ,
  • GitHub comment 442#200148915
    via GitHub by rmpestano
    ,
  • GitHub comment 442#199777731
    via GitHub by rmpestano
    ,
  • I am developing a plugin which uses [AsciidoctorJ|https://github.com/asciidoctor/asciidoctorj] (java bridge to Asciidoctor) which in turn uses JRuby. The issue I'm having only occours on *linux* and here is the stacktrace: {code:java} ERROR: Build step failed with exception org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) stat unsupported or native support failed to load at org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:345) at org.asciidoctor.internal.JRubyAsciidoctor.convertFile(JRubyAsciidoctor.java:549) at com.github.cukedoctor.jenkins.CukedoctorPublisher.execute(CukedoctorPublisher.java:189) at com.github.cukedoctor.jenkins.CukedoctorPublisher.perform(CukedoctorPublisher.java:155) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: org.jruby.exceptions.RaiseException: (NotImplementedError) stat unsupported or native support failed to load at org.jruby.RubyFile.mtime(org/jruby/RubyFile.java:457) at RUBY.load(/home/rmpestano/.m2/repository/org/asciidoctor/asciidoctorj/1.5.4/asciidoctorj-1.5.4.jar!/gems/asciidoctor-1.5.4/lib/asciidoctor.rb:1311) at RUBY.convert(/home/rmpestano/.m2/repository/org/asciidoctor/asciidoctorj/1.5.4/asciidoctorj-1.5.4.jar!/gems/asciidoctor-1.5.4/lib/asciidoctor.rb:1462) at RUBY.convert_file(/home/rmpestano/.m2/repository/org/asciidoctor/asciidoctorj/1.5.4/asciidoctorj-1.5.4.jar!/gems/asciidoctor-1.5.4/lib/asciidoctor.rb:1576) at RUBY.convertFile(<script>:68) at org.jruby.gen.InterfaceImpl1484502153.convertFile(org/jruby/gen/InterfaceImpl1484502153.gen:13) Build step 'Living documentation' marked build as failure {code} The error is raised when plugin tries [convert a file using asciidoctorj|https://github.com/rmpestano/living-documentation-plugin/blob/master/src/main/java/com/github/cukedoctor/jenkins/CukedoctorPublisher.java#L189]: {code:java} asciidoctor.convertFile(adocFile, OptionsBuilder.options().backend(attrs.getBackend()).safe(SafeMode.UNSAFE).asMap()); {code} AsciidoctorJ code can be found here: https://github.com/asciidoctor/asciidoctorj Plugin sources are located here: https://github.com/rmpestano/living-documentation-plugin The plugin binary can be found here (too big to attach here): https://drive.google.com/file/d/0B5AI4e8AUgGOQzdWMEd6bXJJY00/view?usp=sharing
    via by Rafael Pestano,
  • GitHub comment 404#223565014
    via GitHub by ysb33r
    ,
    • org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (RuntimeError) asciidoctor: FAILED: required gem 'rouge' is not installed. Processing aborted. at org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:345) at org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:434) at org.asciidoctor.internal.JRubyAsciidoctor.convertFile(JRubyAsciidoctor.java:554)
    No Bugmate found.