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

Bug Report: "add-opens=java.base/java.io" is missing in Micro 6.2023.9/ FISH-7817 #6406

Closed
Herr-Sepp opened this issue Sep 14, 2023 · 1 comment · Fixed by #6424
Closed
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect

Comments

@Herr-Sepp
Copy link

Brief Summary

Your fix #6371 does not work for Payara Micro.
You need to add it into MANIFEST.MF too.

This is what MANIFEST.MF in Micro 6.2023.9 looks like:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.10.12
Created-By: 11.0.14.1+1-LTS (Azul Systems, Inc.)
Bundle-SymbolicName: fish.payara.micro
Main-Class: fish.payara.micro.PayaraMicro
Start-Class: fish.payara.micro.impl.PayaraMicroImpl
Add-Exports: java.base/jdk.internal.ref jdk.naming.dns/com.sun.jndi.dn
 s java.naming/com.sun.jndi.ldap
Add-Opens: java.base/jdk.internal.loader java.base/java.lang java.base
 /java.net java.base/java.nio java.base/java.util java.base/sun.nio.ch
  java.management/sun.management jdk.management/com.sun.management.int
 ernal java.base/sun.net.www.protocol.jrt java.base/sun.net.www.protoc
 ol.jar java.naming/javax.naming.spi java.rmi/sun.rmi.transport java.l
 ogging/java.util.logging

the "Add-Opens" sections is missing java.base/java.io

Expected Outcome

Start Payara Micro successfull

Current Outcome

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private static java.lang.ClassLoader java.io.ObjectInputStream.latestUserDefinedLoader() accessible: module java.base does not "opens java.io" to unnamed module @4bbfd6a

Reproducer

--

Operating System

--

JDK Version

17

Payara Distribution

Payara Micro

@Herr-Sepp Herr-Sepp added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Sep 14, 2023
@kalinchan
Copy link
Member

Hi @Herr-Sepp,

I have been able to reproduce this issue and have raised FISH-7817.

@kalinchan kalinchan changed the title Bug Report: "add-opens=java.base/java.io" is missing in Micro 6.2023.9 Bug Report: "add-opens=java.base/java.io" is missing in Micro 6.2023.9/ FISH-7817 Sep 20, 2023
@kalinchan kalinchan added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants