org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) stat unsupported or native support failed to load

Jenkins JIRA | Rafael Pestano | 8 months ago
  1. 0

    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

    Jenkins JIRA | 8 months ago | Rafael Pestano
    org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) stat unsupported or native support failed to load
  2. 0

    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

    Jenkins JIRA | 8 months ago | Rafael Pestano
    org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) stat unsupported or native support failed to load
  3. 0

    GitHub comment 442#200148915

    GitHub | 8 months ago | rmpestano
    org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) stat unsupported or native support failed to load
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 442#199777731

    GitHub | 8 months ago | rmpestano
    org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (EBADF) Bad file descriptor - asciidoctor: FAILED: C:/projetos/cukedoctor-jenkins-plugin/work/jobs/teste/workspace/living-documentation/documentation.adoc: Failed to load AsciiDoc document - Bad file descriptor - Bad file descriptor
  6. 0

    GitHub comment 402#153508539

    GitHub | 1 year ago | johncarl81
    org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.asciidoctor.internal.AsciidoctorCoreException

      org.jruby.exceptions.RaiseException: (NotImplementedError) stat unsupported or native support failed to load

      at org.asciidoctor.internal.JRubyAsciidoctor.renderFile()
    2. org.asciidoctor.internal
      JRubyAsciidoctor.convertFile
      1. org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:345)
      2. org.asciidoctor.internal.JRubyAsciidoctor.convertFile(JRubyAsciidoctor.java:549)
      2 frames
    3. com.github.cukedoctor
      CukedoctorPublisher.perform
      1. com.github.cukedoctor.jenkins.CukedoctorPublisher.execute(CukedoctorPublisher.java:189)
      2. com.github.cukedoctor.jenkins.CukedoctorPublisher.perform(CukedoctorPublisher.java:155)
      2 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      6. hudson.model.Run.execute(Run.java:1763)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:410)
      9 frames