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

(SystemCallError) Unknown error 123 - FindFirstFile with AsciidoctorJ-PDF on Win10 #4745

dzwicker opened this issue Aug 20, 2017 · 2 comments


Copy link


Win 10, Java 1.8.0_141, JRuby
AsciidoctorJ 1.5.6, asciidoctorj-pdf 1.5.0-alpha.16

Expected Behavior

When trying to render this document AsciidoctorJ should produce a PDF document and it does on OSX.

Actual Behavior

On Win10 this fails with this exception:

Caused by: org.jruby.exceptions.RaiseException: (SystemCallError) Unknown error (SystemCallError) 123 - FindFirstFile
        at RUBY.symlink?(uri:classloader:/jruby/kernel/file.rb:141)
        at RUBY.<module:Prawn>(uri:classloader:/gems/prawn-2.2.2/lib/prawn.rb:11)
        at RUBY.<main>(uri:classloader:/gems/prawn-2.2.2/lib/prawn.rb:9)
        at org.jruby.RubyKernel.require(org/jruby/
        at RUBY.(root)(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
        at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54)
        at org.jruby.RubyKernel.require(org/jruby/
        at RUBY.(root)(uri:classloader:/gems/asciidoctor-pdf-1.5.0.alpha.16/lib/asciidoctor-pdf/converter.rb:3)
        at RUBY.<main>(uri:classloader:/jruby/kernel/kernel.rb:1)
        at org.jruby.RubyKernel.require(org/jruby/
        at RUBY.require_relative(uri:classloader:/jruby/kernel/kernel.rb:13)
        at RUBY.<main>(uri:classloader:/gems/asciidoctor-pdf-1.5.0.alpha.16/lib/asciidoctor-pdf.rb:3)
Copy link

@enebo i created a new issu as you suggested in #3957

@enebo enebo added this to the JRuby milestone Aug 21, 2017
enebo added a commit that referenced this issue Aug 30, 2017
… AsciidoctorJ-PDF on Win10

doh... was the first version to actually start calling this .symlink? impl
and it does not work with uris.  A comedy of errors I think ended up masking this
implementation out in

This rolls with the original patch @headius made but I moved some stuff around a
tiny bit.
@enebo enebo closed this as completed in fd5e414 Aug 30, 2017
Copy link

enebo commented Aug 30, 2017

See commit for details but tl;dr was we wallpapered over our windows File.symlink? until 9.1.9 so it was never actually defined (thus never failed with uris).

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

No branches or pull requests

2 participants