-
Notifications
You must be signed in to change notification settings - Fork 66
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
OSGi core R9 will remove ISE on some methods for Bundle, BundleContext, ServiceObjects and ServiceRegistration #172
Comments
osgi/osgi#476 also needs to be covered. BundleContext.createFilter (I submitted osgi/osgi#524.) |
Thanks, I didn't remember us agreeing to remove ISE from these, but I do agree that it would be best if we did here also. |
This issue has been inactive for 180 days and is therefore labeled as stale. |
The tests do a stop server before updating the config. This stops the WAB io.openliberty.microprofile.openapi.2.0.internal.servlet. But sometimes it throws ISE: BundleContext is no longer valid, intermittently when ungetting the service because the service is chenged and the service tracker tries to unget the service and notices that the bundle context was closed and invalid. Updated Equinox would no longer throw exceptions on invalid context when ungetService is called. For reference: eclipse-equinox/equinox#172
The tests do a stop server before updating the config. This stops the WAB io.openliberty.microprofile.openapi.2.0.internal.servlet. But sometimes it throws ISE: BundleContext is no longer valid, intermittently when ungetting the service because the service is chenged and the service tracker tries to unget the service and notices that the bundle context was closed and invalid. Updated Equinox would no longer throw exceptions on invalid context when ungetService is called. For reference: eclipse-equinox/equinox#172
The tests do a stop server before updating the config. This stops the WAB io.openliberty.microprofile.openapi.2.0.internal.servlet. But sometimes it throws ISE: BundleContext is no longer valid, intermittently when ungetting the service because the service is chenged and the service tracker tries to unget the service and notices that the bundle context was closed and invalid. Updated Equinox would no longer throw exceptions on invalid context when ungetService is called. For reference: eclipse-equinox/equinox#172
This issue has been inactive for 180 days and is therefore labeled as stale. |
I think this is still an issue. |
See:
osgi/osgi#454
osgi/osgi#462
And
osgi/osgi#486
osgi/osgi#522
The following methods are removing the ISE to improve usability.
Bundle.uninstall
BundleContext.createFilter
BundleContext.getBundle
BundleContext.getProperty
BundleContext.removeServiceListener
BundleContext.removeBundleListener
BundleContext.removeFrameworkListener
BundleContext.ungetService
ServiceObjects.ungetService
ServiceRegistration.unregister
I think we can safely remove these now, even in our R8 implementation.
The text was updated successfully, but these errors were encountered: