[ 
https://issues.apache.org/jira/browse/CXF-9081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897943#comment-17897943
 ] 

Tom Watson commented on CXF-9081:
---------------------------------

{quote}[~tjwatson] could you please help to share the steps how to reproduce 
the issue if possible? thank you.
{quote}
We have only seen this in our automated tests in Open Liberty which runs over 
100,000 tests where it is starting and stopping the framework over many 
iterations.  The scenario is where some async config event is being fired and 
then the framework begins to shutdown causing the bundles to be stopped.  On 
rare occasions we get this unexpected error logged.  Ultimately it doesn't 
cause any harm, it only causes our post test checks to fail because we look for 
unexpected errors in the logs. 

> 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.5.9, 3.6.4
>            Reporter: Tom Watson
>            Priority: Major
>             Fix For: 3.5.10, 3.6.5
>
>
> 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)

Reply via email to