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

AccessControlException thrown from Yoko calls to Class::getClassLoader #20020

Closed
ngmr opened this issue Feb 3, 2022 · 1 comment · Fixed by #20021
Closed

AccessControlException thrown from Yoko calls to Class::getClassLoader #20020

ngmr opened this issue Feb 3, 2022 · 1 comment · Fixed by #20021
Assignees
Labels
release bug This bug is present in a released version of Open Liberty release:22003

Comments

@ngmr
Copy link
Member

ngmr commented Feb 3, 2022

When running with Java 2 Security enabled, Yoko ORB initialization can cause AccessControlException to be thrown, such as:

java.security.AccessControlException: Access denied ("java.lang.RuntimePermission" "getClassLoader")java.base/java.security.AccessController.throwACE(AccessController.java:176)
java.base/java.security.AccessController.checkPermissionHelper(AccessController.java:238)
java.base/java.security.AccessController.checkPermission(AccessController.java:385)
java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
com.ibm.ws.kernel.launch.internal.MissingDoPrivDetectionSecurityManager.checkPermission(MissingDoPrivDetectionSecurityManager.java:45)
java.base/java.lang.Class.getClassLoader(Class.java:575)
org.apache.yoko.osgi.ProviderLocator.loadClass(ProviderLocator.java:76)
org.apache.yoko.orb.OB.PluginManager.initPlugin(PluginManager.java:133)
org.apache.yoko.orb.OBCORBA.ORB_impl.initialize(ORB_impl.java:343)
org.apache.yoko.orb.OBCORBA.ORB_impl.setParameters(ORB_impl.java:957)
org.apache.yoko.orb.OBCORBA.ORB_impl.set_parameters(ORB_impl.java:1299)
org.omg.CORBA.ORB.init(ORB.java:186)
@ngmr ngmr added the release bug This bug is present in a released version of Open Liberty label Feb 3, 2022
@ngmr ngmr self-assigned this Feb 3, 2022
@mbroz2
Copy link
Member

mbroz2 commented Mar 11, 2022

@ngmr All release bug issues must use the bug report template in the description/first comment.

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:22003
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants