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

Jruby 9.2.7 with Java 11 is throwing "Native subprocess control requires open access to sun.nio.ch" warning #5736

Closed
twkatadin opened this issue May 17, 2019 · 2 comments

Comments

@twkatadin
Copy link

commented May 17, 2019

Environment

jruby 9.2.7.0 (2.5.3) 2019-04-09 8a269e3 OpenJDK 64-Bit Server VM 11+28 on 11+28 +jit
Windows 10

Expected Behavior

Should not receive warning about "Native subprocess control requires open access to sun.nio.ch" since this was supposed to have been addressed in #5642 which was included in 9.2.7

Actual Behavior

Even running simple tasks from the command line I get the following warnings:

$ jruby -version
jruby 9.2.7.0 (2.5.3) 2019-04-09 8a269e3 OpenJDK 64-Bit Server VM 11+28 on 11+28 +jit [mswin32-x86_64]
2019-05-15T10:00:45.880-10:00 [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
java.lang.IllegalCallerException: sun.nio.ch is not open to module org.jruby.dist
at java.base/java.lang.Module.addOpens(Module.java:763)
at org.jruby.dist/com.headius.backport9.modules.impl.Module9.addOpens(Module9.java:28)
at org.jruby.dist/com.headius.backport9.modules.Modules.addOpens(Modules.java:22)
at org.jruby.dist/org.jruby.util.io.FilenoUtil$ReflectiveAccess.(FilenoUtil.java:140)
at org.jruby.dist/org.jruby.util.io.FilenoUtil.getFilenoUsingReflection(FilenoUtil.java:111)
at org.jruby.dist/org.jruby.util.io.FilenoUtil.filenoFrom(FilenoUtil.java:107)
at org.jruby.dist/org.jruby.util.io.ChannelFD.initFileno(ChannelFD.java:42)
at org.jruby.dist/org.jruby.util.io.ChannelFD.(ChannelFD.java:32)
at org.jruby.dist/org.jruby.util.io.OpenFile.setChannel(OpenFile.java:196)
at org.jruby.dist/org.jruby.RubyIO.prepIO(RubyIO.java:261)
at org.jruby.dist/org.jruby.RubyIO.prepStdio(RubyIO.java:190)
at org.jruby.dist/org.jruby.RubyGlobal.initSTDIO(RubyGlobal.java:297)
at org.jruby.dist/org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:211)
at org.jruby.dist/org.jruby.Ruby.init(Ruby.java:1260)
at org.jruby.dist/org.jruby.Ruby.newInstance(Ruby.java:370)
at org.jruby.dist/org.jruby.Main.internalRun(Main.java:273)
at org.jruby.dist/org.jruby.Main.run(Main.java:234)
at org.jruby.dist/org.jruby.Main.main(Main.java:206)
NameError: undefined local variable or method `rsion' for main:Object

at -e:1

@twkatadin twkatadin changed the title Jruby 9.2.7 with Java 11 is throwing "Native subprocess control requires open access to sun.nio.ch" error Jruby 9.2.7 with Java 11 is throwing "Native subprocess control requires open access to sun.nio.ch" warning May 17, 2019

@headius

This comment has been minimized.

Copy link
Member

commented May 20, 2019

This is working properly for 9.2.8.0:

[] ~/projects/jruby $ jruby -v
jruby 9.2.8.0-SNAPSHOT (2.5.3) 2019-05-20 d79edcd OpenJDK 64-Bit Server VM 11.0.2+9 on 11.0.2+9 +jit [darwin-x86_64]

[] ~/projects/jruby $ 

I believe this was fixed along with #5642.

@headius headius closed this May 20, 2019

@headius headius added this to the JRuby 9.2.8.0 milestone May 20, 2019

PragTob added a commit to colszowka/simplecov that referenced this issue Jul 27, 2019

@PragTob PragTob referenced this issue Jul 27, 2019

Merged

Upgrade JRuby #738

@PragTob

This comment has been minimized.

Copy link

commented Jul 28, 2019

Any news on when we can get this release? I believe we're experiencing this in simplecov right now I'll try to pin the JDK and see how that goes.

PragTob added a commit to colszowka/simplecov that referenced this issue Jul 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.