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

Unable to make field long java.nio.Buffer.address accessible when using Java 17 #25479

Closed
tspewak opened this issue Jun 13, 2023 · 0 comments · Fixed by #25480
Closed

Unable to make field long java.nio.Buffer.address accessible when using Java 17 #25479

tspewak opened this issue Jun 13, 2023 · 0 comments · Fixed by #25480
Labels
release bug This bug is present in a released version of Open Liberty release:23007

Comments

@tspewak
Copy link
Member

tspewak commented Jun 13, 2023

Describe the bug
During server start with com.ibm.ws.tcpchannel.useZosAio=true specified, a ffdc is created when running with java 17 on z/OS.

Exception = java.lang.RuntimeException
Source = com.ibm.ws.tcpchannel.internal.NBAcceptChannelSelector
probeid = 254
Stack Dump = java.lang.RuntimeException: java.lang.NoClassDefFoundError: com.ibm.io.async.AbstractAsyncChannel (initialization failure)
Caused by: java.lang.NoClassDefFoundError: com.ibm.io.async.AbstractAsyncChannel (initialization failure)
Caused by: java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException: Unable to make field long java.nio.Buffer.address accessible: module java.base does not "opens java.nio" to unnamed module @299d0dca
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field long java.nio.Buffer.address accessible: module java.base does not "opens java.nio" to unnamed module @299d0dca

Steps to Reproduce
Start the angle and server with com.ibm.ws.tcpchannel.useZosAio=true and Java 17 on z/OS.

Expected behavior
Server starts without getting a ffdc.

Diagnostic information:

  • OpenLiberty Version: 23.0.0.5
  • Java Version: Java 17

Additional context
I think it is necessary to add this to the java9.options starting with java 17.
--add-opens
java.base/java.nio=ALL-UNNAMED

@tspewak tspewak added the release bug This bug is present in a released version of Open Liberty label Jun 13, 2023
tspewak added a commit to tspewak/open-liberty that referenced this issue Jun 13, 2023
tspewak added a commit that referenced this issue Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release bug This bug is present in a released version of Open Liberty release:23007
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants