-
Notifications
You must be signed in to change notification settings - Fork 121
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
FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem #553
Comments
It's a known thing in Asciidoctorj asciidoctor/asciidoctorj#1035 but builds work (at least for 16), so priority is not high . |
Thanks for the pointer, if/when I have some time left I could certainly try to look into it ;) |
Stumbled upon the same WARNing:
Environment: |
Thanks for the reminder, now that Java 17 is out we definetly need to have a look at at it. |
Current environment:
|
Any updates on this? I have the same issue :) |
Not yet, given it's a warning (for now) it's not been prioritized. |
Just an update, it all points to not being possible to do anything in our side, in AsciidoctorJ and Gradle plugins the solutions are to add required flags to the environment. |
What is current state? I'm still getting this warning in maven output
I tried to read all linked issued in asciidoctor jruby etc. and not sure about the current state. I saw some merged commits in asciidoctor but it was in some txt file for linux? So still no solution? |
I assume you mean the fixes in the AsciidoctorJ cli. We added the configuration to add the warning suppressions, but that cannot be applied here since we don't control the OS process launching the maven plugin.
Simply, there's no solution to apply. JRuby needs certain components of the JDK that are considered "internal" and the Java runtime warns about that. You can read more here jruby/jruby#6721. |
So based on the original dependencies of the plugin in version 2.2.4 using the following: <plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>2.2.4</version>
<dependencies>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
<version>9.4.5.0</version>
</dependency>
... fixed the issue. If you use version |
Thanks @khmarbaise ! I confirmed it, I'll bump version here and in AsciidoctorJ today 🎉 |
It seems as if there was no release since 2.2.4 on 2023-05-29. The JRuby dependency bump suggested by @khmarbaise works, but it would be nice to get rid of it in favour of a new maintenance release. This issue has been open for 2.5 years. Thank you. |
Warning "Native subprocess control requires open access to the JDK IO subsystem" can be avoided by upgrading JRuby, see asciidoctor/asciidoctor-maven-plugin#553. Signed-off-by: Alexander Kriegisch <[email protected]>
Great idea! I should have some time between today and tomorrow. |
Warning "Native subprocess control requires open access to the JDK IO subsystem" can be avoided by upgrading JRuby, see asciidoctor/asciidoctor-maven-plugin#553. Signed-off-by: Alexander Kriegisch <[email protected]>
Warning "Native subprocess control requires open access to the JDK IO subsystem" can be avoided by upgrading JRuby, see asciidoctor/asciidoctor-maven-plugin#553. Signed-off-by: Alexander Kriegisch <[email protected]>
Warning "Native subprocess control requires open access to the JDK IO subsystem" can be avoided by upgrading JRuby, see asciidoctor/asciidoctor-maven-plugin#553. Signed-off-by: Alexander Kriegisch <[email protected]>
All is ready, tomorrow I'll do 2.2.5 release. |
Thank you so much. I see, that a couple of hours ago you added a release to GitHub, but on Maven Central it has not surfaced yet, which is unusual. https://repo1.maven.org/maven2/org/asciidoctor/asciidoctor-maven-plugin/2.2.5/ yields 404. Normally, it appears in a matter of minutes. Or did you forget to deploy or promote the deployment? |
Forgot one last button, thanks! That's why I want to automate this and get releases more often. |
Looking good in 2.2.5, the warnings are gone. Thank you very much. 😊🎈 |
getting rid of JRuby dependency workaround for asciidoctor/asciidoctor-maven-plugin#553 Signed-off-by: Alexander Kriegisch <[email protected]>
What is this issue about?
Description
When I invoke maven asciidoctor with Java 16 or Java 17 then I get the output
WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
;Environment information
The text was updated successfully, but these errors were encountered: