Tom Watson created CXF-9081:
-------------------------------
Summary: Possible IllegalStateException from OSGi when bundle is
stopped
Key: CXF-9081
URL: https://issues.apache.org/jira/browse/CXF-9081
Project: CXF
Issue Type: Bug
Components: logging
Affects Versions: 3.6.4, 3.5.9
Reporter: Tom Watson
I am facing a possible IllegalStateException when the
cxf-rt-features-logging-3.5.5.jar bundle is stopped:
{{java.lang.IllegalStateException: BundleContext is no longer valid
com.ibm.ws.org.apache.cxf.cxf.rt.features.logging.3.2_1.0.96.202410301048
[231]}}
{{ at
org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:1031)}}
{{ at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:499)}}
{{ at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:519)}}
{{ at
org.apache.cxf.ext.logging.osgi.Activator$ConfigUpdater.updated(Activator.java:107)}}
{{I noticed the source has been removed as part of
https://issues.apache.org/jira/browse/CXF-8766 but still exists in the
3.5.x-fixes and 3.6.x-fixes branches:}}
{{[https://github.com/apache/cxf/blob/3.5.x-fixes/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/osgi/Activator.java]}}
{{I assume I would open a PR against one of these branches for a possible
because the source no longer exists in the main branch or in the 4.0.x-fixes
branch.}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)