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
RxJavaPlugins.java should not be reading all system properties #5819
Comments
It was a long time ago and I'm not sure we know what keys to look for, hence the full enumeration. Besides, v1 is nearly EOL so please consider upgrading to RxJava 2 which shouldn't have this problem. |
It came to my thought that but we are not using rxjava dependency directly. This is being referenced as a compile dependency from spring-cloud-starter-hystrix jar. If rxjava 2.x is backward compatible, i can use it. But it looks like there are quite a few enhancements |
Workaround posted in #5820. I assume the exception happens in the |
No, they actually happen in the following methods of RxJavaPlugins getErrorHandler() These methods are being currently called as default implementations if custom handlers/hooks are not available. These methods search for "all system properties" first to look for implementation class defined in system property instead of looking for certain system properties. |
Please post the full stacktrace of the exception you are getting. |
|
Updated the PR. |
Thank you so much for your quick response and fix |
Closing via #5820. |
Hi,
I am working on 1.3.4 version of Rxjava jar and there are certain methods where RxJavaPlugins.java is trying to read all the system properties while getting hooks. Not all companies give access to their system properties on server. For example, we use tomcat and have catalina policy which restricts to properties mentioned there. Due to this, i am getting access denied exceptions.
I propose 2 solutions:
I am okay with either solution. Please help
The text was updated successfully, but these errors were encountered: