[jboss-osgi-issues] [JBoss JIRA] (JBOSGI-618) Bundle refresh or re-install may lead to DuplicateServiceException
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Thu Nov 22 03:18:21 EST 2012
Thomas Diesler created JBOSGI-618:
-------------------------------------
Summary: Bundle refresh or re-install may lead to DuplicateServiceException
Key: JBOSGI-618
URL: https://issues.jboss.org/browse/JBOSGI-618
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Core Framework
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBossOSGi 1.2.0
Currently, the ModuleIdentifier is derived from the BundleRevision only without taking subsequent resolve actions into account. On bundle refresh we set the bundle's module service to REMOVE. It is an async operation for the service to actually get removed. If a subsequent resolve creates a new module service, we see
{code}
09:08:54,454 ERROR [org.jboss.osgi.framework] (OSGi PackageAdmin refresh Thread) JBOSGI011026: Framework Error: org.jboss.msc.service.DuplicateServiceException: Service jbosgi.internal.module."jbosgi.Exporter"."1.0.0" is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154)
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227)
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560)
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201)
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228)
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307)
at org.jboss.osgi.framework.internal.DefaultModuleLoaderPlugin.createModuleService(DefaultModuleLoaderPlugin.java:201)
at org.jboss.osgi.framework.internal.ResolverPlugin.createModuleServices(ResolverPlugin.java:347)
at org.jboss.osgi.framework.internal.ResolverPlugin.applyResolverResults(ResolverPlugin.java:278)
at org.jboss.osgi.framework.internal.ResolverPlugin.resolveAndApply(ResolverPlugin.java:155)
at org.jboss.osgi.framework.internal.ResolverPlugin.resolveAndApply(ResolverPlugin.java:169)
at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:593)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-osgi-issues
mailing list