Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BEDFF74D0 for ; Tue, 15 Nov 2011 15:55:16 +0000 (UTC) Received: (qmail 1421 invoked by uid 500); 15 Nov 2011 15:55:16 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 1391 invoked by uid 500); 15 Nov 2011 15:55:16 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 1383 invoked by uid 99); 15 Nov 2011 15:55:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 15:55:16 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 15:55:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 05B4A85697 for ; Tue, 15 Nov 2011 15:54:52 +0000 (UTC) Date: Tue, 15 Nov 2011 15:54:52 +0000 (UTC) From: "Alexey Markevich (Created) (JIRA)" To: issues@cxf.apache.org Message-ID: <1313740042.31229.1321372492024.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CXF-3915) [OSGi] Redeploy bundle with shared bus cause warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [OSGi] Redeploy bundle with shared bus cause warning ---------------------------------------------------- Key: CXF-3915 URL: https://issues.apache.org/jira/browse/CXF-3915 Project: CXF Issue Type: Wish Components: Management Affects Versions: 2.5 Reporter: Alexey Markevich Priority: Minor My bundle contains spring configuration with following declaration: During redeployment in OSGi container there is warning: 11:41:42,927 | WARN | xtenderThread-12 | f.workqueue.WorkQueueManagerImpl 169 | - - | org.apache.cxf:bus.id=Shared,type=WorkQueues,name=default javax.management.InstanceAlreadyExistsException: org.apache.cxf:bus.id=Shared,type=WorkQueues,name=default at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)[:1.6.0_25] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)[:1.6.0_25] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)[:1.6.0_25] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)[:1.6.0_25] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)[:1.6.0_25] at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)[:1.6.0_25] at org.apache.cxf.management.jmx.InstrumentationManagerImpl.registerMBeanWithServer(InstrumentationManagerImpl.java:303)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.management.jmx.InstrumentationManagerImpl.register(InstrumentationManagerImpl.java:296)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.management.jmx.InstrumentationManagerImpl.register(InstrumentationManagerImpl.java:209)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.management.jmx.InstrumentationManagerImpl.register(InstrumentationManagerImpl.java:221)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.management.jmx.InstrumentationManagerImpl.register(InstrumentationManagerImpl.java:214)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.workqueue.WorkQueueManagerImpl.addNamedWorkQueue(WorkQueueManagerImpl.java:167)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.bus.osgi.OSGiExtensionLocator$OSGIBusListener.initComplete(OSGiExtensionLocator.java:222)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.buslifecycle.CXFBusLifeCycleManager.initComplete(CXFBusLifeCycleManager.java:74)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:169)[141:org.apache.cxf.bundle:2.5.0] at org.apache.cxf.bus.spring.SpringBus.onApplicationEvent(SpringBus.java:92)[141:org.apache.cxf.bundle:2.5.0] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[99:org.springframework.context:3.0.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[99:org.springframework.context:3.0.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[99:org.springframework.context:3.0.6.RELEASE] at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[103:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[103:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[103:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[103:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[104:org.springframework.osgi.extender:1.2.1] at java.lang.Thread.run(Thread.java:662)[:1.6.0_25] Can shared object registered once to avoid this exception? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira