cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Waldvogel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-6734) javax.management.InstanceNotFoundException on Spring shutdown: Unregistering ManagedEndpoint failed
Date Wed, 06 Jan 2016 10:00:49 GMT

     [ https://issues.apache.org/jira/browse/CXF-6734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Waldvogel updated CXF-6734:
------------------------------------
    Summary: javax.management.InstanceNotFoundException on Spring shutdown: Unregistering
ManagedEndpoint failed  (was: javax.management.InstanceNotFoundException on Spring shutdown:
Unregistering ManagedEndpoint failed: )

> javax.management.InstanceNotFoundException on Spring shutdown: Unregistering ManagedEndpoint
failed
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CXF-6734
>                 URL: https://issues.apache.org/jira/browse/CXF-6734
>             Project: CXF
>          Issue Type: Bug
>          Components: Management
>    Affects Versions: 2.7.18
>         Environment: Tomcat 8.0.30 / Spring 4.1.9 / Java 1.8.0_66
>            Reporter: Benedikt Waldvogel
>            Priority: Minor
>
> I’ve registered an {{InstrumentationManager}} in my Spring context:
> {code:java}
> @Bean
> public InstrumentationManager instrumentationManager(Bus cxfBus) {
>     InstrumentationManagerImpl instrumentationManager = new InstrumentationManagerImpl();
>     instrumentationManager.setBus(cxfBus);
>     instrumentationManager.setEnabled(true);
>     instrumentationManager.setUsePlatformMBeanServer(true);
>     return instrumentationManager;
> }
> {code}
> CXF logs the following warning when Tomcat is shutting down and the Spring context is
closed:
> {noformat}
> WARN  org.apache.cxf.endpoint.ServerImpl:185 - ## Unregistering ManagedEndpoint failed.
> javax.management.InstanceNotFoundException: org.apache.cxf:bus.id=cxf470511424,type=Bus.Service.Endpoint,service="…",port="…",instance.id=532971570
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
~[na:1.8.0_66]
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427)
~[na:1.8.0_66]
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)
~[na:1.8.0_66]
>         at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546)
~[na:1.8.0_66]
>         at org.apache.cxf.management.jmx.InstrumentationManagerImpl.unregister(InstrumentationManagerImpl.java:263)
~[cxf-rt-management-2.7.18.jar:2.7.18]
>         at org.apache.cxf.management.jmx.InstrumentationManagerImpl.unregister(InstrumentationManagerImpl.java:254)
~[cxf-rt-management-2.7.18.jar:2.7.18]
>         at org.apache.cxf.endpoint.ServerImpl.destroy(ServerImpl.java:183) ~[cxf-api-2.7.18.jar:2.7.18]
>         at org.apache.cxf.bus.managers.ServerRegistryImpl.preShutdown(ServerRegistryImpl.java:90)
[cxf-rt-core-2.7.18.jar:2.7.18]
>         at org.apache.cxf.bus.managers.CXFBusLifeCycleManager.preShutdown(CXFBusLifeCycleManager.java:95)
[cxf-rt-core-2.7.18.jar:2.7.18]
>         at org.apache.cxf.bus.CXFBusImpl.shutdown(CXFBusImpl.java:249) [cxf-rt-core-2.7.18.jar:2.7.18]
>         at org.apache.cxf.bus.CXFBusImpl.shutdown(CXFBusImpl.java:236) [cxf-rt-core-2.7.18.jar:2.7.18]
>         at org.apache.cxf.bus.spring.SpringBus.onApplicationEvent(SpringBus.java:114)
[cxf-rt-core-2.7.18.jar:2.7.18]
>         at org.apache.cxf.bus.spring.SpringBus$1.onApplicationEvent(SpringBus.java:63)
[cxf-rt-core-2.7.18.jar:2.7.18]
>         at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
>         at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
>         at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
>         at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:876)
[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
>         at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:843)
[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
>         at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:578)
[spring-web-4.1.9.RELEASE.jar:4.1.9.RELEASE]
>         at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)
[spring-web-4.1.9.RELEASE.jar:4.1.9.RELEASE]
>         at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
[catalina.jar:8.0.30]
>         at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
[catalina.jar:8.0.30]
>         at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [catalina.jar:8.0.30]
>         at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
[catalina.jar:8.0.30]
>         at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1413)
[catalina.jar:8.0.30]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_66]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_66]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message