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

Circularity error with custom security manager #4553

Closed
castortech opened this issue Oct 31, 2021 · 0 comments · Fixed by #4557
Closed

Circularity error with custom security manager #4553

castortech opened this issue Oct 31, 2021 · 0 comments · Fixed by #4557
Labels
bug Something isn't working

Comments

@castortech
Copy link

Describe the bug
Installed javaagent on my application and now getting java.lang.ClassCircularityError from custom security manager

Steps to reproduce
Hard to say, but this is an issue that seems to occur with some custom security managers.

What did you expect to see?
No error. Other than adding the javaagent, the current application setup has been running for the last couple of years.

What did you see instead?
!ENTRY org.eclipse.equinox.cm 4 0 2021-10-31 13:46:02.413
!MESSAGE java/lang/ClassLoader$1
!STACK 0
java.lang.ClassCircularityError: java/lang/ClassLoader$1
at io.oddsource.java.licensing.LicenseSecurityManager.checkPermission(LicenseSecurityManager.java:208)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.checkGetServicePermission(ServiceRegistry.java:1154)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:532)
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:652)
at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.getConfigAdmin(RegionConfigurationSupport.java:767)
at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.getConfigurationInfo(RegionConfigurationSupport.java:484)
at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:303)
at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:119)
at org.eclipse.equinox.internal.cm.EventDispatcher$1.run(EventDispatcher.java:92)
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:40)

What version are you using?
[otel.javaagent 2021-10-31 13:42:57:070 -0400] [main] INFO io.opentelemetry.javaagent.tooling.VersionLogger - opentelemetry-javaagent - version: 1.7.1

Environment
Compiler: AdoptOpenJDK 11.0.5.10
OS: Windows 10
Runtime: Eclipse Equinox (OSGi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant