Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF backend - (LoadError) Could not find 'thread_safe' (~> 0.3.5) #413

Closed
rmpestano opened this issue Dec 17, 2015 · 10 comments
Closed

PDF backend - (LoadError) Could not find 'thread_safe' (~> 0.3.5) #413

rmpestano opened this issue Dec 17, 2015 · 10 comments

Comments

@rmpestano
Copy link

Hi guys,

I am facing an issue with pdf backend which happens only on CI (jenkins - linux machine), here is the output:

[JENKINS] Archiving  javadoc
[INFO] 
[INFO] --- asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-html5) @ soews ---
asciidoctor: WARNING: _includes/_servicos/logon.adoc: line 91: no callouts refer to list item 4
[INFO] Rendered /var/procergs/build-tools/jenkins/workspace/acr-soews-docs/src/main/docs/soews.adoc
[INFO] 
[INFO] --- asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-pdf) @ soews ---
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.256 s
[INFO] Finished at: 2015-12-16T16:15:26-02:00
[INFO] Final Memory: 49M/860M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: (LoadError) Could not find 'thread_safe' (~> 0.3.5) - did find: [thread_safe-0.3.4-java] -> [Help 1]

Versions:
asciidoctor-maven-plugin: 1.5.2.1

asciidoctorJ-pdf: 1.5.0-alpha.10.1

Locally(windows machine) it woks.

full stacktrace is here:

[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: (LoadError) Could not find 'thread_safe' (~> 0.3.5) - did find: [thread_safe-0.3.4-java] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: (LoadError) Could not find 'thread_safe' (~> 0.3.5) - did find: [thread_safe-0.3.4-java]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
    at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:325)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: (LoadError) Could not find 'thread_safe' (~> 0.3.5) - did find: [thread_safe-0.3.4-java]
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 30 more
Caused by: org.jruby.exceptions.RaiseException: (LoadError) Could not find 'thread_safe' (~> 0.3.5) - did find: [thread_safe-0.3.4-java]
    at RUBY.to_specs(/var/procergs/build-tools/data/maven/repository/org/jruby/jruby-complete/1.7.17/jruby-complete-1.7.17.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/dependency.rb:298)
    at RUBY.activate_dependencies(/var/procergs/build-tools/data/maven/repository/org/jruby/jruby-complete/1.7.17/jruby-complete-1.7.17.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/specification.rb:1271)
    at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
    at RUBY.activate_dependencies(/var/procergs/build-tools/data/maven/repository/org/jruby/jruby-complete/1.7.17/jruby-complete-1.7.17.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/specification.rb:1260)
    at RUBY.activate(/var/procergs/build-tools/data/maven/repository/org/jruby/jruby-complete/1.7.17/jruby-complete-1.7.17.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/specification.rb:1242)
    at RUBY.try_activate(/var/procergs/build-tools/data/maven/repository/org/jruby/jruby-complete/1.7.17/jruby-complete-1.7.17.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems.rb:194)
    at RUBY.require(/var/procergs/build-tools/data/maven/repository/org/jruby/jruby-complete/1.7.17/jruby-complete-1.7.17.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:132)
    at RUBY.(root)(<script>:1)

Do I need to install something on CI machine?

@rmpestano
Copy link
Author

sorry, it is also not working locally with this constallation

@rmpestano
Copy link
Author

so here are the versions that are working locally and not working on CI:

maven-plugin: 1.5.2.1
asciidoctorJ-pdf: alpha.9

and here is the stacktrace:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.601 s
[INFO] Finished at: 2015-12-17T09:08:21-02:00
[INFO] Final Memory: 99M/1358M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: (NotImplementedError) fstat unimplemented unsupported or native support failed to load -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
    at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:325)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 30 more
Caused by: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.jruby.RubyFile.size(org/jruby/RubyFile.java:1108)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/pdf-core-0.4.0/lib/pdf/core/document_state.rb:69)
    at RUBY.each(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/pdf-core-0.4.0/lib/pdf/core/object_store.rb:70)
    at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
    at RUBY.each(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/pdf-core-0.4.0/lib/pdf/core/object_store.rb:69)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/pdf-core-0.4.0/lib/pdf/core/document_state.rb:68)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/pdf-core-0.4.0/lib/pdf/core/renderer.rb:192)
    at RUBY.render(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/pdf-core-0.4.0/lib/pdf/core/renderer.rb:157)
    at RUBY.render(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:356)
    at RUBY.render_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:364)
    at org.jruby.RubyIO.open(org/jruby/RubyIO.java:1181)
    at RUBY.render_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:364)
    at RUBY.write(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.9/asciidoctorj-pdf-1.5.0-alpha.9.jar!/gems/asciidoctor-pdf-1.5.0.alpha.9/lib/asciidoctor-pdf/converter.rb:2034)
    at RUBY.write(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.2/asciidoctorj-1.5.2.jar!/gems/asciidoctor-1.5.2/lib/asciidoctor/document.rb:1051)
    at RUBY.convert(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.2/asciidoctorj-1.5.2.jar!/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1504)
    at RUBY.convert_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.2/asciidoctorj-1.5.2.jar!/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1562)
    at RUBY.convertFile(<script>:68)
    at org.jruby.gen.InterfaceImpl385828008.convertFile(org/jruby/gen/InterfaceImpl385828008.gen:13)

@rmpestano
Copy link
Author

It is related with #402

@robertpanzer
Copy link
Member

Hi Rafael,

asciidoctor-pdf switched to thread-safe 0.3.5, I think from alpha.9 or so on.
But asciidoctor_J_ 1.5.2, which is brought by the maven plugin, brings thread-safe 0.3.4, so that asciidoctor-pdf is missing this gem in version 0.3.5.

asciidoctorj 1.5.3.2 brings the newer thread-safe 0.3.5 so that your build should run again if you add this dependency.
I think this should do the trick:

            <plugin>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctor-maven-plugin</artifactId>
                <version>1.5.2.1</version>
                <dependencies>
                    <dependency>
                        <groupId>org.asciidoctor</groupId>
                        <artifactId>asciidoctorj</artifactId>
                        <version>1.5.3.2</version>
                    </dependency>
                </dependencies>
            </plugin>

@rmpestano
Copy link
Author

what a timing I have just tried and it didin't worked:

[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc failed: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc failed: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
    at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:325)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc failed: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 30 more
Caused by: org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:345)
    at org.asciidoctor.maven.AsciidoctorMojo.renderFile(AsciidoctorMojo.java:270)
    at org.asciidoctor.maven.AsciidoctorMojo.execute(AsciidoctorMojo.java:166)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    ... 31 more
Caused by: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.jruby.RubyFile.size(org/jruby/RubyFile.java:1108)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/document_state.rb:69)
    at RUBY.each(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/object_store.rb:70)
    at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
    at RUBY.each(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/object_store.rb:69)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/document_state.rb:68)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/renderer.rb:192)
    at RUBY.render(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/renderer.rb:157)
    at RUBY.render(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:356)
    at RUBY.render_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:364)
    at org.jruby.RubyIO.open(org/jruby/RubyIO.java:1181)
    at RUBY.render_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:364)
    at RUBY.write(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/asciidoctor-pdf-1.5.0.alpha.10/lib/asciidoctor-pdf/converter.rb:2072)
    at RUBY.write(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.3.2/asciidoctorj-1.5.3.2.jar!/gems/asciidoctor-1.5.3/lib/asciidoctor/document.rb:1067)
    at RUBY.convert(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.3.2/asciidoctorj-1.5.3.2.jar!/gems/asciidoctor-1.5.3/lib/asciidoctor.rb:1519)
    at RUBY.convert_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.3.2/asciidoctorj-1.5.3.2.jar!/gems/asciidoctor-1.5.3/lib/asciidoctor.rb:1587)
    at RUBY.convertFile(<script>:68)
    at org.jruby.gen.InterfaceImpl1847734476.convertFile(org/jruby/gen/InterfaceImpl1847734476.gen:13)

here is my pom:

<groupId>org.asciidoctor</groupId>
                        <artifactId>asciidoctor-maven-plugin</artifactId>
                        <version>1.5.2</version>
...
    <dependencies>
                            <dependency>
                                <groupId>org.asciidoctor</groupId>
                                <artifactId>asciidoctorj-pdf</artifactId>
                                <version>1.5.0-alpha.10.1</version>
                            </dependency>
                            <dependency>
                                <groupId>org.asciidoctor</groupId>
                                <artifactId>asciidoctorj</artifactId>
                                <version>1.5.3.2</version>
                            </dependency>
                        </dependencies>

@rmpestano
Copy link
Author

forgot to update maven plugin to 1.5.2.1, will try it now

@rmpestano
Copy link
Author

Also didn't heped:

plugin:1.5.2.1:process-asciidoc failed: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (output-pdf) on project soews: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
    at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:325)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution output-pdf of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 30 more
Caused by: org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:345)
    at org.asciidoctor.maven.AsciidoctorMojo.renderFile(AsciidoctorMojo.java:292)
    at org.asciidoctor.maven.AsciidoctorMojo.execute(AsciidoctorMojo.java:188)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    ... 31 more
Caused by: org.jruby.exceptions.RaiseException: (NotImplementedError) fstat unimplemented unsupported or native support failed to load
    at org.jruby.RubyFile.size(org/jruby/RubyFile.java:1108)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/document_state.rb:69)
    at RUBY.each(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/object_store.rb:70)
    at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
    at RUBY.each(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/object_store.rb:69)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/document_state.rb:68)
    at RUBY.render_body(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/renderer.rb:192)
    at RUBY.render(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/pdf-core-0.4.0/lib/pdf/core/renderer.rb:157)
    at RUBY.render(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:356)
    at RUBY.render_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:364)
    at org.jruby.RubyIO.open(org/jruby/RubyIO.java:1181)
    at RUBY.render_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/prawn-1.3.0/lib/prawn/document.rb:364)
    at RUBY.write(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj-pdf/1.5.0-alpha.10.1/asciidoctorj-pdf-1.5.0-alpha.10.1.jar!/gems/asciidoctor-pdf-1.5.0.alpha.10/lib/asciidoctor-pdf/converter.rb:2072)
    at RUBY.write(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.3.2/asciidoctorj-1.5.3.2.jar!/gems/asciidoctor-1.5.3/lib/asciidoctor/document.rb:1067)
    at RUBY.convert(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.3.2/asciidoctorj-1.5.3.2.jar!/gems/asciidoctor-1.5.3/lib/asciidoctor.rb:1519)
    at RUBY.convert_file(/var/procergs/build-tools/data/maven/repository/org/asciidoctor/asciidoctorj/1.5.3.2/asciidoctorj-1.5.3.2.jar!/gems/asciidoctor-1.5.3/lib/asciidoctor.rb:1587)
    at RUBY.convertFile(<script>:68)
    at org.jruby.gen.InterfaceImpl1288406132.convertFile(org/jruby/gen/InterfaceImpl1288406132.gen:13)
[ERROR] 

@robertpanzer
Copy link
Member

Could this be related to this?
asciidoctor/asciidoctor-maven-plugin#164

Could you also try upgrading the JRuby dependency to 9.0.4.0?

            <plugin>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctor-maven-plugin</artifactId>
                <version>1.5.2.1</version>
                <dependencies>
                    <dependency>
                        <groupId>org.asciidoctor</groupId>
                        <artifactId>asciidoctorj</artifactId>
                        <version>1.5.3.2</version>
                    </dependency>
                    <dependency>
                        <groupId>org.jruby</groupId>
                        <artifactId>jruby-complete</artifactId>
                        <version>9.0.4.0</version>
                    </dependency>
                </dependencies>
            </plugin>

@rmpestano
Copy link
Author

yes! just worked, thank you @robertpanzer!

@robertpanzer
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants