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

MetricsInterceptor is doing reflection without privileged blocks #62

Open
jmartisk opened this issue Jan 10, 2019 · 0 comments
Open

MetricsInterceptor is doing reflection without privileged blocks #62

jmartisk opened this issue Jan 10, 2019 · 0 comments

Comments

@jmartisk
Copy link
Member

... causing issues with metric annotation scanning when SR Metrics is running with security manager enabled

2019-01-10 13:32:29,976 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
	at java.security.AccessController.checkPermission(AccessController.java:884)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at java.lang.Class.checkMemberAccess(Class.java:2348)
	at java.lang.Class.getDeclaredMethods(Class.java:1974)
	at io.smallrye.metrics.interceptors.MetricsInterceptor.metrics(MetricsInterceptor.java:66)
(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant