Jetty Exceptions on bundle shutdown of Fuse

Solution Unverified - Updated -

Issue

We have jetty consumer endpoints (proxies) configured on different ports in different bundles. However on shutdown of one of the bundles, we always get "Failed to shutdown Jetty server on port " warnings. How do we fix them? Even on startup there are exceptions on jetty mbean

Shutdown:

2013-05-21 12:13:23,805 | INFO  | Timer-1          | OsgiBundleXmlApplicationContext  | 102 - org.springframework.context - 3.0.7.RELEASE | Closing OsgiBundleXmlApplicationContext(bundle=mam-services, config=osgibundle:/META-INF/spring/*
.xml): startup date [Mon May 20 09:57:01 EDT 2013]; root of context hierarchy
2013-05-21 12:13:23,806 | INFO  | Timer-1          | ContextHandler                   | 77 - org.eclipse.jetty.util - 7.5.4.v20111024 | stopped o.e.j.s.h.ContextHandler{/mamservices,null}
2013-05-21 12:13:23,807 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9499 because it is still in use
2013-05-21 12:13:23,807 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9299 because it is still in use
2013-05-21 12:13:23,807 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9999 because it is still in use
2013-05-21 12:13:23,887 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9199 because it is still in use
2013-05-21 12:13:23,887 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9499 because it is still in use
2013-05-21 12:13:23,887 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9299 because it is still in use
2013-05-21 12:13:23,887 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9999 because it is still in use
2013-05-21 12:13:23,887 | WARN  | Timer-1          | JettyHTTPServerEngine            | 175 - org.apache.cxf.bundle - 2.5.0.fuse-7-061 | Failed to shutdown Jetty server on port 9199 because it is still in use
2013-05-21 12:13:23,888 | INFO  | Timer-1          | DefaultListableBeanFactory       | 100 - org.springframework.beans - 3.0.7.RELEASE | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e5a31
1: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusEx
tensionPostProcessor,esbRestTemplate,assetBuilder,assetFilters,copyMaidHeaderStrategy,errorEnricher,idAggregationStrategy,typeDetailProvider,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframew
ork.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mam-services:beanPostProcesso
r,mam-services,tFactory,mamServiceEndpoint,routerEndpoint,idRegistryEndpoint,activemq,activemq-dur]; root of factory hierarchy

startup

2013-05-21 12:13:31,037 | INFO  | xtenderThread-34 | OsgiSpringCamelContext           | 138 - org.apache.camel.camel-core - 2.9.0.fuse-7-061 | Route: mamBusinessEventConsumerRoute started and consuming from: Endpoint[activemq-dur://topic
:com.example.abc.businessevent?clientId=mamintegration.nqcbusevent&durableSubscriptionName=MamServicesBusinessEventListener]
2013-05-21 12:13:31,068 | WARN  | xtenderThread-34 | MBeanContainer                   | 77 - org.eclipse.jetty.util - 7.5.4.v20111024 | bean: org.eclipse.jetty.server.Server@13adb66
javax.management.InstanceAlreadyExistsException: org.eclipse.jetty.server:type=server,id=0
        at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)[:1.6.0_13]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)[:1.6.0_13]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)[:1.6.0_13]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)[:1.6.0_13]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)[:1.6.0_13]
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)[:1.6.0_13]
        at org.eclipse.jetty.jmx.MBeanContainer.addBean(MBeanContainer.java:300)[76:org.eclipse.jetty.jmx:7.5.4.v20111024]
        at org.eclipse.jetty.jmx.MBeanContainer.add(MBeanContainer.java:141)[76:org.eclipse.jetty.jmx:7.5.4.v20111024]
        at org.eclipse.jetty.util.component.Container.add(Container.java:206)[77:org.eclipse.jetty.util:7.5.4.v20111024]
        at org.eclipse.jetty.util.component.Container.update(Container.java:164)[77:org.eclipse.jetty.util:7.5.4.v20111024]
        at org.eclipse.jetty.util.component.Container.update(Container.java:106)[77:org.eclipse.jetty.util:7.5.4.v20111024]
        at org.eclipse.jetty.server.Server.setConnectors(Server.java:184)[73:org.eclipse.jetty.server:7.5.4.v20111024]
        at org.eclipse.jetty.server.Server.addConnector(Server.java:158)[73:org.eclipse.jetty.server:7.5.4.v20111024]
        at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:301)[175:org.apache.cxf.bundle:2.5.0.fuse-7-061]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:171)[175:org.apache.cxf.bundle:2.5.0.fuse-7-061]
        at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)[175:org.apache.cxf.bundle:2.5.0.fuse-7-061]
        at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)[175:org.apache.cxf.bundle:2.5.0.fuse-7-061]
        at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:837)[175:org.apache.cxf.bundle:2.5.0.fuse-7-061]
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)[175:org.apache.cxf.bundle:2.5.0.fuse-7-061]
        at org.apache.camel.component.cxf.CxfConsumer.doStart(CxfConsumer.java:235)[181:org.apache.camel.camel-cxf:2.9.0.fuse-7-061]
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1703)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:1975)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:1930)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1858)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1642)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1531)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1413)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:181)[140:org.apache.camel.camel-spring:2.9.0.fuse-7-061]
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1381)[138:org.apache.camel.camel-core:2.9.0.fuse-7-061]
        at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:230)[140:org.apache.camel.camel-spring:2.9.0.fuse-7-061]
        at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)[140:org.apache.camel.camel-spring:2.9.0.fuse-7-061]
        at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:242)[140:org.apache.camel.camel-spring:2.9.0.fuse-7-061]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[102:org.springframework.context:3.0.7.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[102:org.springframework.context:3.0.7.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[102:org.springframework.context:3.0.7.RELEASE]
        at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[108:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[108:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[108:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[108:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[111:org.springframework.osgi.extender:1.2.1]
        at java.lang.Thread.run(Thread.java:619)[:1.6.0_13]

Environment

Fuse ESB Enterprise 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.